Class: Google::Apis::ClouddeployV1::AdvanceRolloutOperation

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

Contains the information of an automated advance-rollout operation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AdvanceRolloutOperation

Returns a new instance of AdvanceRolloutOperation.



116
117
118
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 116

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

Instance Attribute Details

#destination_phaseString

Output only. The phase the rollout will be advanced to. Corresponds to the JSON property destinationPhase

Returns:

  • (String)


99
100
101
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 99

def destination_phase
  @destination_phase
end

#rolloutString

Output only. The name of the rollout that initiates the AutomationRun. Corresponds to the JSON property rollout

Returns:

  • (String)


104
105
106
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 104

def rollout
  @rollout
end

#source_phaseString

Output only. The phase of a deployment that initiated the operation. Corresponds to the JSON property sourcePhase

Returns:

  • (String)


109
110
111
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 109

def source_phase
  @source_phase
end

#waitString

Output only. How long the operation will be paused. Corresponds to the JSON property wait

Returns:

  • (String)


114
115
116
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 114

def wait
  @wait
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



121
122
123
124
125
126
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 121

def update!(**args)
  @destination_phase = args[:destination_phase] if args.key?(:destination_phase)
  @rollout = args[:rollout] if args.key?(:rollout)
  @source_phase = args[:source_phase] if args.key?(:source_phase)
  @wait = args[:wait] if args.key?(:wait)
end