Class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaRemoveFulfillmentPlacesRequest
- Inherits:
-
Object
- Object
- Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaRemoveFulfillmentPlacesRequest
- 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.RemoveFulfillmentPlaces method.
Instance Attribute Summary collapse
-
#allow_missing ⇒ Boolean
(also: #allow_missing?)
If set to true, and the Product is not found, the fulfillment information 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 fulfillment updates are issued, used to prevent out-of-order updates on fulfillment information.
-
#type ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRetailV2alphaRemoveFulfillmentPlacesRequest
constructor
A new instance of GoogleCloudRetailV2alphaRemoveFulfillmentPlacesRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRetailV2alphaRemoveFulfillmentPlacesRequest
Returns a new instance of GoogleCloudRetailV2alphaRemoveFulfillmentPlacesRequest.
6204 6205 6206 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 6204 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 fulfillment information 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
6173 6174 6175 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 6173 def allow_missing @allow_missing end |
#place_ids ⇒ Array<String>
Required. The IDs for this type, such as the store IDs for "pickup-in-store"
or the region IDs for "same-day-delivery", to be removed for this type. At
least 1 value is required, and a maximum of 2000 values are allowed. Each
value must be a string with a length limit of 10 characters, matching the
pattern [a-zA-Z0-9_-]+
, such as "store1" or "REGION-2". Otherwise, an
INVALID_ARGUMENT error is returned.
Corresponds to the JSON property placeIds
6184 6185 6186 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 6184 def place_ids @place_ids end |
#remove_time ⇒ String
The time when the fulfillment updates are issued, used to prevent out-of-order
updates on fulfillment information. If not provided, the internal system time
will be used.
Corresponds to the JSON property removeTime
6191 6192 6193 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 6191 def remove_time @remove_time end |
#type ⇒ String
Required. The fulfillment type, including commonly used types (such as pickup
in store and same day delivery), and custom types. Supported values: * "pickup-
in-store" * "ship-to-store" * "same-day-delivery" * "next-day-delivery" * "
custom-type-1" * "custom-type-2" * "custom-type-3" * "custom-type-4" * "custom-
type-5" If this field is set to an invalid value other than these, an
INVALID_ARGUMENT error is returned. This field directly corresponds to Product.
fulfillment_info.type.
Corresponds to the JSON property type
6202 6203 6204 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 6202 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6209 6210 6211 6212 6213 6214 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 6209 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) @type = args[:type] if args.key?(:type) end |