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.



11275
11276
11277
# File 'lib/google/apis/content_v2_1/classes.rb', line 11275

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)


11256
11257
11258
# File 'lib/google/apis/content_v2_1/classes.rb', line 11256

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



11261
11262
11263
# File 'lib/google/apis/content_v2_1/classes.rb', line 11261

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)


11268
11269
11270
# File 'lib/google/apis/content_v2_1/classes.rb', line 11268

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



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