Class: Google::Apis::ClouddeployV1::RepairMode

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

Configuration of the repair action.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RepairMode

Returns a new instance of RepairMode.



3464
3465
3466
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3464

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

Instance Attribute Details

#retryGoogle::Apis::ClouddeployV1::Retry

Retries the failed job. Corresponds to the JSON property retry



3457
3458
3459
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3457

def retry
  @retry
end

#rollbackGoogle::Apis::ClouddeployV1::Rollback

Rolls back a Rollout. Corresponds to the JSON property rollback



3462
3463
3464
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3462

def rollback
  @rollback
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3469
3470
3471
3472
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3469

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