Class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaPromotion
- Inherits:
-
Object
- Object
- Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaPromotion
- 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
Promotion specification.
Instance Attribute Summary collapse
-
#promotion_id ⇒ String
Promotion identifier, which is the final component of name.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRetailV2alphaPromotion
constructor
A new instance of GoogleCloudRetailV2alphaPromotion.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRetailV2alphaPromotion
Returns a new instance of GoogleCloudRetailV2alphaPromotion.
5458 5459 5460 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 5458 def initialize(**args) update!(**args) end |
Instance Attribute Details
#promotion_id ⇒ String
Promotion identifier, which is the final component of name. For example, this
field is "free_gift", if name is projects/*/locations/global/catalogs/
default_catalog/promotions/free_gift
. The value must be a UTF-8 encoded
string with a length limit of 128 characters, and match the pattern: a-zA-Z*
.
For example, id0LikeThis or ID_1_LIKE_THIS. Otherwise, an INVALID_ARGUMENT
error is returned. Corresponds to Google Merchant Center property
promotion_id.
Corresponds to the JSON property promotionId
5456 5457 5458 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 5456 def promotion_id @promotion_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5463 5464 5465 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 5463 def update!(**args) @promotion_id = args[:promotion_id] if args.key?(:promotion_id) end |