Class: Google::Apis::RetailV2::GoogleCloudRetailV2Promotion
- Inherits:
-
Object
- Object
- Google::Apis::RetailV2::GoogleCloudRetailV2Promotion
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/retail_v2/classes.rb,
lib/google/apis/retail_v2/representations.rb,
lib/google/apis/retail_v2/representations.rb
Overview
Promotion information.
Instance Attribute Summary collapse
-
#promotion_id ⇒ String
ID of the promotion.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRetailV2Promotion
constructor
A new instance of GoogleCloudRetailV2Promotion.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRetailV2Promotion
Returns a new instance of GoogleCloudRetailV2Promotion.
2006 2007 2008 |
# File 'lib/google/apis/retail_v2/classes.rb', line 2006 def initialize(**args) update!(**args) end |
Instance Attribute Details
#promotion_id ⇒ String
ID of the promotion. For example, "free gift". The value 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. Google Merchant Center property promotion.
Corresponds to the JSON property promotionId
2004 2005 2006 |
# File 'lib/google/apis/retail_v2/classes.rb', line 2004 def promotion_id @promotion_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2011 2012 2013 |
# File 'lib/google/apis/retail_v2/classes.rb', line 2011 def update!(**args) @promotion_id = args[:promotion_id] if args.key?(:promotion_id) end |