Class: Google::Apis::MerchantapiProductsV1beta::ListProductsResponse
- Inherits:
-
Object
- Object
- Google::Apis::MerchantapiProductsV1beta::ListProductsResponse
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/merchantapi_products_v1beta/classes.rb,
lib/google/apis/merchantapi_products_v1beta/representations.rb,
lib/google/apis/merchantapi_products_v1beta/representations.rb
Overview
Response message for the ListProducts method.
Instance Attribute Summary collapse
-
#next_page_token ⇒ String
A token, which can be sent as
page_token
to retrieve the next page. -
#products ⇒ Array<Google::Apis::MerchantapiProductsV1beta::Product>
The processed products from the specified account.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ListProductsResponse
constructor
A new instance of ListProductsResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ListProductsResponse
Returns a new instance of ListProductsResponse.
1016 1017 1018 |
# File 'lib/google/apis/merchantapi_products_v1beta/classes.rb', line 1016 def initialize(**args) update!(**args) end |
Instance Attribute Details
#next_page_token ⇒ String
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
1008 1009 1010 |
# File 'lib/google/apis/merchantapi_products_v1beta/classes.rb', line 1008 def next_page_token @next_page_token end |
#products ⇒ Array<Google::Apis::MerchantapiProductsV1beta::Product>
The processed products from the specified account. These are your processed
products after applying rules and supplemental data sources.
Corresponds to the JSON property products
1014 1015 1016 |
# File 'lib/google/apis/merchantapi_products_v1beta/classes.rb', line 1014 def products @products end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1021 1022 1023 1024 |
# File 'lib/google/apis/merchantapi_products_v1beta/classes.rb', line 1021 def update!(**args) @next_page_token = args[:next_page_token] if args.key?(:next_page_token) @products = args[:products] if args.key?(:products) end |