Class: Google::Apis::MerchantapiDatasourcesV1beta::ListDataSourcesResponse

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/merchantapi_datasources_v1beta/classes.rb,
lib/google/apis/merchantapi_datasources_v1beta/representations.rb,
lib/google/apis/merchantapi_datasources_v1beta/representations.rb

Overview

Response message for the ListDataSources method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ListDataSourcesResponse

Returns a new instance of ListDataSourcesResponse.



258
259
260
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 258

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#data_sourcesArray<Google::Apis::MerchantapiDatasourcesV1beta::DataSource>

The data sources from the specified account. Corresponds to the JSON property dataSources



250
251
252
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 250

def data_sources
  @data_sources
end

#next_page_tokenString

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


256
257
258
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 256

def next_page_token
  @next_page_token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



263
264
265
266
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 263

def update!(**args)
  @data_sources = args[:data_sources] if args.key?(:data_sources)
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end