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.



454
455
456
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 454

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



446
447
448
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 446

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)


452
453
454
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 452

def next_page_token
  @next_page_token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



459
460
461
462
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 459

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