Class: Google::Apis::ClouddeployV1::RepairPhase

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

RepairPhase tracks the repair attempts that have been made for each RepairPhaseConfig specified in the Automation resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RepairPhase

Returns a new instance of RepairPhase.



3914
3915
3916
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3914

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

Instance Attribute Details

#retryGoogle::Apis::ClouddeployV1::RetryPhase

RetryPhase contains the retry attempts and the metadata for initiating a new attempt. Corresponds to the JSON property retry



3907
3908
3909
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3907

def retry
  @retry
end

#rollbackGoogle::Apis::ClouddeployV1::RollbackAttempt

RollbackAttempt represents an action of rolling back a Cloud Deploy 'Target'. Corresponds to the JSON property rollback



3912
3913
3914
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3912

def rollback
  @rollback
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3919
3920
3921
3922
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3919

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