Class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaLocalInventory
- Inherits:
-
Object
- Object
- Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaLocalInventory
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/retail_v2alpha/classes.rb,
lib/google/apis/retail_v2alpha/representations.rb,
lib/google/apis/retail_v2alpha/representations.rb
Overview
The inventory information at a place (e.g. a store) identified by a place ID.
Instance Attribute Summary collapse
-
#attributes ⇒ Hash<String,Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCustomAttribute>
Additional local inventory attributes, for example, store name, promotion tags, etc.
-
#place_id ⇒ String
The place ID for the current set of inventory information.
-
#price_info ⇒ Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaPriceInfo
The price information of a Product.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRetailV2alphaLocalInventory
constructor
A new instance of GoogleCloudRetailV2alphaLocalInventory.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRetailV2alphaLocalInventory
Returns a new instance of GoogleCloudRetailV2alphaLocalInventory.
1801 1802 1803 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 1801 def initialize(**args) update!(**args) end |
Instance Attribute Details
#attributes ⇒ Hash<String,Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCustomAttribute>
Additional local inventory attributes, for example, store name, promotion tags,
etc. * At most 5 values are allowed. Otherwise, an INVALID_ARGUMENT error is
returned. * The key must be a UTF-8 encoded string with a length limit of 10
characters. * The key must match the pattern: a-zA-Z0-9*. For example,
key0LikeThis or KEY_1_LIKE_THIS. * The attribute values must be of the same
type (text or number). * The max number of values per attribute is 10. * For
text values, the length limit is 10 UTF-8 characters. * The attribute does not
support search. The searchable field should be unset or set to false.
Corresponds to the JSON property attributes
1789 1790 1791 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 1789 def attributes @attributes end |
#place_id ⇒ String
The place ID for the current set of inventory information.
Corresponds to the JSON property placeId
1794 1795 1796 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 1794 def place_id @place_id end |
#price_info ⇒ Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaPriceInfo
The price information of a Product.
Corresponds to the JSON property priceInfo
1799 1800 1801 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 1799 def price_info @price_info end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1806 1807 1808 1809 1810 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 1806 def update!(**args) @attributes = args[:attributes] if args.key?(:attributes) @place_id = args[:place_id] if args.key?(:place_id) @price_info = args[:price_info] if args.key?(:price_info) end |