Class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSetInventoryRequest
- Inherits:
-
Object
- Object
- Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSetInventoryRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/retail_v2beta/classes.rb,
lib/google/apis/retail_v2beta/representations.rb,
lib/google/apis/retail_v2beta/representations.rb
Overview
Request message for SetInventory method.
Instance Attribute Summary collapse
-
#allow_missing ⇒ Boolean
(also: #allow_missing?)
If set to true, and the Product with name Product.name is not found, the inventory update will still be processed and retained for at most 1 day until the Product is created.
-
#inventory ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaProduct
Product captures all metadata information of items to be recommended or searched.
-
#set_mask ⇒ String
Indicates which inventory fields in the provided Product to update.
-
#set_time ⇒ String
The time when the request is issued, used to prevent out-of-order updates on inventory fields with the last update time recorded.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRetailV2betaSetInventoryRequest
constructor
A new instance of GoogleCloudRetailV2betaSetInventoryRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRetailV2betaSetInventoryRequest
Returns a new instance of GoogleCloudRetailV2betaSetInventoryRequest.
3995 3996 3997 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 3995 def initialize(**args) update!(**args) end |
Instance Attribute Details
#allow_missing ⇒ Boolean Also known as: allow_missing?
If set to true, and the Product with name Product.name is not found, the
inventory update will still be processed and retained for at most 1 day until
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
3971 3972 3973 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 3971 def allow_missing @allow_missing end |
#inventory ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaProduct
Product captures all metadata information of items to be recommended or
searched.
Corresponds to the JSON property inventory
3978 3979 3980 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 3978 def inventory @inventory end |
#set_mask ⇒ String
Indicates which inventory fields in the provided Product to update. If not set
or set with empty paths, all inventory fields will be updated. If an
unsupported or unknown field is provided, an INVALID_ARGUMENT error is
returned and the entire update will be ignored.
Corresponds to the JSON property setMask
3986 3987 3988 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 3986 def set_mask @set_mask end |
#set_time ⇒ String
The time when the request is issued, used to prevent out-of-order updates on
inventory fields with the last update time recorded. If not provided, the
internal system time will be used.
Corresponds to the JSON property setTime
3993 3994 3995 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 3993 def set_time @set_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4000 4001 4002 4003 4004 4005 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 4000 def update!(**args) @allow_missing = args[:allow_missing] if args.key?(:allow_missing) @inventory = args[:inventory] if args.key?(:inventory) @set_mask = args[:set_mask] if args.key?(:set_mask) @set_time = args[:set_time] if args.key?(:set_time) end |