Class: Google::Apis::ContentV2_1::PromotionPromotionStatus

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PromotionPromotionStatus

Returns a new instance of PromotionPromotionStatus.



11266
11267
11268
# File 'lib/google/apis/content_v2_1/classes.rb', line 11266

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#creation_dateString

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

Returns:

  • (String)


11247
11248
11249
# File 'lib/google/apis/content_v2_1/classes.rb', line 11247

def creation_date
  @creation_date
end

#destination_statusesArray<Google::Apis::ContentV2_1::PromotionPromotionStatusDestinationStatus>

The intended destinations for the promotion. Corresponds to the JSON property destinationStatuses



11252
11253
11254
# File 'lib/google/apis/content_v2_1/classes.rb', line 11252

def destination_statuses
  @destination_statuses
end

#last_update_dateString

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

Returns:

  • (String)


11259
11260
11261
# File 'lib/google/apis/content_v2_1/classes.rb', line 11259

def last_update_date
  @last_update_date
end

#promotion_issueArray<Google::Apis::ContentV2_1::PromotionPromotionStatusPromotionIssue>

A list of issues associated with the promotion. Corresponds to the JSON property promotionIssue



11264
11265
11266
# File 'lib/google/apis/content_v2_1/classes.rb', line 11264

def promotion_issue
  @promotion_issue
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11271
11272
11273
11274
11275
11276
# File 'lib/google/apis/content_v2_1/classes.rb', line 11271

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