Class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaRemoveLocalInventoriesRequest
- Inherits:
-
Object
- Object
- Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaRemoveLocalInventoriesRequest
- 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 ProductService.RemoveLocalInventories method.
Instance Attribute Summary collapse
-
#allow_missing ⇒ Boolean
(also: #allow_missing?)
If set to true, and the Product is not found, the local inventory removal request will still be processed and retained for at most 1 day and processed once the Product is created.
-
#place_ids ⇒ Array<String>
Required.
-
#remove_time ⇒ String
The time when the inventory deletions are issued.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRetailV2alphaRemoveLocalInventoriesRequest
constructor
A new instance of GoogleCloudRetailV2alphaRemoveLocalInventoriesRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRetailV2alphaRemoveLocalInventoriesRequest
Returns a new instance of GoogleCloudRetailV2alphaRemoveLocalInventoriesRequest.
5953 5954 5955 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 5953 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 removal
request 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
5937 5938 5939 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 5937 def allow_missing @allow_missing end |
#place_ids ⇒ Array<String>
Required. A list of place IDs to have their inventory deleted. At most 3000
place IDs are allowed per request.
Corresponds to the JSON property placeIds
5944 5945 5946 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 5944 def place_ids @place_ids end |
#remove_time ⇒ String
The time when the inventory deletions are issued. Used to prevent out-of-order
updates and deletions on local inventory fields. If not provided, the internal
system time will be used.
Corresponds to the JSON property removeTime
5951 5952 5953 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 5951 def remove_time @remove_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5958 5959 5960 5961 5962 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 5958 def update!(**args) @allow_missing = args[:allow_missing] if args.key?(:allow_missing) @place_ids = args[:place_ids] if args.key?(:place_ids) @remove_time = args[:remove_time] if args.key?(:remove_time) end |