Class: Google::Apis::ContentV2_1::PromotionPromotionStatus
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::PromotionPromotionStatus
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/content_v2_1/classes.rb,
lib/google/apis/content_v2_1/representations.rb,
lib/google/apis/content_v2_1/representations.rb
Overview
The status of the promotion.
Instance Attribute Summary collapse
-
#creation_date ⇒ String
Date on which the promotion has been created in ISO 8601 format: Date, time, and offset, for example "2020-01-02T09: 00:00+01:00" or "2020-01-02T09:00:00Z" Corresponds to the JSON property
creationDate
. -
#destination_statuses ⇒ Array<Google::Apis::ContentV2_1::PromotionPromotionStatusDestinationStatus>
The intended destinations for the promotion.
-
#last_update_date ⇒ String
Date on which the promotion status has been last updated in ISO 8601 format: Date, time, and offset, for example " 2020-01-02T09:00:00+01:00" or "2020-01-02T09:00:00Z" Corresponds to the JSON property
lastUpdateDate
. -
#promotion_issue ⇒ Array<Google::Apis::ContentV2_1::PromotionPromotionStatusPromotionIssue>
A list of issues associated with the promotion.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PromotionPromotionStatus
constructor
A new instance of PromotionPromotionStatus.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PromotionPromotionStatus
Returns a new instance of PromotionPromotionStatus.
11275 11276 11277 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 11275 def initialize(**args) update!(**args) end |
Instance Attribute Details
#creation_date ⇒ String
Date on which the promotion has been created in ISO 8601 format: Date, time, and offset, for example "2020-01-02T09:
00:00+01:00" or "2020-01-02T09:00:00Z"
Corresponds to the JSON property creationDate
11256 11257 11258 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 11256 def creation_date @creation_date end |
#destination_statuses ⇒ Array<Google::Apis::ContentV2_1::PromotionPromotionStatusDestinationStatus>
The intended destinations for the promotion.
Corresponds to the JSON property destinationStatuses
11261 11262 11263 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 11261 def destination_statuses @destination_statuses end |
#last_update_date ⇒ String
Date on which the promotion status has been last updated in ISO 8601 format: Date, time, and offset, for example "
2020-01-02T09:00:00+01:00" or "2020-01-02T09:00:00Z"
Corresponds to the JSON property lastUpdateDate
11268 11269 11270 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 11268 def last_update_date @last_update_date end |
#promotion_issue ⇒ Array<Google::Apis::ContentV2_1::PromotionPromotionStatusPromotionIssue>
A list of issues associated with the promotion.
Corresponds to the JSON property promotionIssue
11273 11274 11275 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 11273 def promotion_issue @promotion_issue end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
11280 11281 11282 11283 11284 11285 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 11280 def update!(**args) @creation_date = args[:creation_date] if args.key?(:creation_date) @destination_statuses = args[:destination_statuses] if args.key?(:destination_statuses) @last_update_date = args[:last_update_date] if args.key?(:last_update_date) @promotion_issue = args[:promotion_issue] if args.key?(:promotion_issue) end |