Class: Google::Apis::MerchantapiInventoriesV1beta::ListRegionalInventoriesResponse

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

Overview

Response message for the ListRegionalInventories method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ListRegionalInventoriesResponse

Returns a new instance of ListRegionalInventoriesResponse.



148
149
150
# File 'lib/google/apis/merchantapi_inventories_v1beta/classes.rb', line 148

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

Instance Attribute Details

#next_page_tokenString

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

Returns:

  • (String)


140
141
142
# File 'lib/google/apis/merchantapi_inventories_v1beta/classes.rb', line 140

def next_page_token
  @next_page_token
end

#regional_inventoriesArray<Google::Apis::MerchantapiInventoriesV1beta::RegionalInventory>

The RegionalInventory resources for the given product from the specified account. Corresponds to the JSON property regionalInventories



146
147
148
# File 'lib/google/apis/merchantapi_inventories_v1beta/classes.rb', line 146

def regional_inventories
  @regional_inventories
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



153
154
155
156
# File 'lib/google/apis/merchantapi_inventories_v1beta/classes.rb', line 153

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