Class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSetLocalInventoriesRequest
- Inherits:
-
Object
- Object
- Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSetLocalInventoriesRequest
- 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
Request message for SetLocalInventories method.
Instance Attribute Summary collapse
-
#allow_missing ⇒ Boolean
(also: #allow_missing?)
If set to true, and the Product is not found, the local inventory will still be processed and retained for at most 1 day and processed once the Product is created.
-
#local_inventories ⇒ Array<Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaLocalInventory>
A list of inventory information at difference places.
-
#set_time ⇒ String
The time when the inventory updates are issued.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRetailV2alphaSetLocalInventoriesRequest
constructor
A new instance of GoogleCloudRetailV2alphaSetLocalInventoriesRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRetailV2alphaSetLocalInventoriesRequest
Returns a new instance of GoogleCloudRetailV2alphaSetLocalInventoriesRequest.
3871 3872 3873 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 3871 def initialize(**args) update!(**args) end |
Instance Attribute Details
#allow_missing ⇒ Boolean Also known as: allow_missing?
If set to true, and the Product is not found, the local inventory will still
be processed and retained for at most 1 day and processed once the Product is
created. If set to false, a NOT_FOUND error is returned if the Product is not
found.
Corresponds to the JSON property allowMissing
3852 3853 3854 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 3852 def allow_missing @allow_missing end |
#local_inventories ⇒ Array<Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaLocalInventory>
A list of inventory information at difference places. Each place is identified
by its place ID. For example, if place1 and place2 are stored, and this
list is [place1, place3] with a fresher set timestamp, then the stored
places will become place1 and place3. An empty list removes all existing
places with staler fields. At most 3000 inventories are allowed per request.
Corresponds to the JSON property localInventories
3862 3863 3864 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 3862 def local_inventories @local_inventories end |
#set_time ⇒ String
The time when the inventory updates are issued. Used to prevent out-of-order
updates on local inventory fields. If not provided, the internal system time
will be used.
Corresponds to the JSON property setTime
3869 3870 3871 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 3869 def set_time @set_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3876 3877 3878 3879 3880 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 3876 def update!(**args) @allow_missing = args[:allow_missing] if args.key?(:allow_missing) @local_inventories = args[:local_inventories] if args.key?(:local_inventories) @set_time = args[:set_time] if args.key?(:set_time) end |