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.
11313 11314 11315 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 11313 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
11294 11295 11296 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 11294 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
11299 11300 11301 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 11299 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
11306 11307 11308 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 11306 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
11311 11312 11313 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 11311 def promotion_issue @promotion_issue end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
11318 11319 11320 11321 11322 11323 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 11318 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 |