Class: Google::Apis::ClouddeployV1::PromoteReleaseOperation

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 promote-release operation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PromoteReleaseOperation

Returns a new instance of PromoteReleaseOperation.



3092
3093
3094
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3092

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

Instance Attribute Details

#phaseString

Output only. The starting phase of the rollout created by this operation. Corresponds to the JSON property phase

Returns:

  • (String)


3073
3074
3075
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3073

def phase
  @phase
end

#rolloutString

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

Returns:

  • (String)


3078
3079
3080
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3078

def rollout
  @rollout
end

#target_idString

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

Returns:

  • (String)


3085
3086
3087
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3085

def target_id
  @target_id
end

#waitString

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

Returns:

  • (String)


3090
3091
3092
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3090

def wait
  @wait
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3097
3098
3099
3100
3101
3102
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3097

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