Class: Google::Apis::ClouddeployV1::TimedPromoteReleaseCondition

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/clouddeploy_v1/classes.rb,
lib/google/apis/clouddeploy_v1/representations.rb,
lib/google/apis/clouddeploy_v1/representations.rb

Overview

TimedPromoteReleaseCondition contains conditions specific to an Automation with a Timed Promote Release rule defined.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TimedPromoteReleaseCondition

Returns a new instance of TimedPromoteReleaseCondition.



6368
6369
6370
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 6368

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

Instance Attribute Details

#next_promotion_timeString

Output only. When the next scheduled promotion(s) will occur. Corresponds to the JSON property nextPromotionTime

Returns:

  • (String)


6361
6362
6363
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 6361

def next_promotion_time
  @next_promotion_time
end

#targets_listArray<Google::Apis::ClouddeployV1::Targets>

Output only. A list of targets involved in the upcoming timed promotion(s). Corresponds to the JSON property targetsList



6366
6367
6368
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 6366

def targets_list
  @targets_list
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6373
6374
6375
6376
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 6373

def update!(**args)
  @next_promotion_time = args[:next_promotion_time] if args.key?(:next_promotion_time)
  @targets_list = args[:targets_list] if args.key?(:targets_list)
end