Class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaRemoveLocalInventoriesRequest

Inherits:
Object
  • Object
show all
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 RemoveLocalInventories method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRetailV2alphaRemoveLocalInventoriesRequest

Returns a new instance of GoogleCloudRetailV2alphaRemoveLocalInventoriesRequest.



2990
2991
2992
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 2990

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

Instance Attribute Details

#allow_missingBoolean 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

Returns:

  • (Boolean)


2974
2975
2976
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 2974

def allow_missing
  @allow_missing
end

#place_idsArray<String>

Required. A list of place IDs to have their inventory deleted. At most 1000 place IDs are allowed per request. Corresponds to the JSON property placeIds

Returns:

  • (Array<String>)


2981
2982
2983
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 2981

def place_ids
  @place_ids
end

#remove_timeString

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

Returns:

  • (String)


2988
2989
2990
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 2988

def remove_time
  @remove_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2995
2996
2997
2998
2999
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 2995

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