Class: Google::Apis::ClouddeployV1::PromoteReleaseOperation
- Inherits:
-
Object
- Object
- Google::Apis::ClouddeployV1::PromoteReleaseOperation
- 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 promote-release operation.
Instance Attribute Summary collapse
-
#phase ⇒ String
Output only.
-
#rollout ⇒ String
Output only.
-
#target_id ⇒ String
Output only.
-
#wait ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PromoteReleaseOperation
constructor
A new instance of PromoteReleaseOperation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PromoteReleaseOperation
Returns a new instance of PromoteReleaseOperation.
4009 4010 4011 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4009 def initialize(**args) update!(**args) end |
Instance Attribute Details
#phase ⇒ String
Output only. The starting phase of the rollout created by this operation.
Corresponds to the JSON property phase
3990 3991 3992 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3990 def phase @phase end |
#rollout ⇒ String
Output only. The name of the rollout that initiates the AutomationRun
.
Corresponds to the JSON property rollout
3995 3996 3997 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3995 def rollout @rollout end |
#target_id ⇒ String
Output only. The ID of the target that represents the promotion stage to which
the release will be promoted. The value of this field is the last segment of a
target name.
Corresponds to the JSON property targetId
4002 4003 4004 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4002 def target_id @target_id end |
#wait ⇒ String
Output only. How long the operation will be paused.
Corresponds to the JSON property wait
4007 4008 4009 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4007 def wait @wait end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4014 4015 4016 4017 4018 4019 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4014 def update!(**args) @phase = args[:phase] if args.key?(:phase) @rollout = args[:rollout] if args.key?(:rollout) @target_id = args[:target_id] if args.key?(:target_id) @wait = args[:wait] if args.key?(:wait) end |