Class: Google::Apis::ClouddeployV1::Strategy

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

Strategy contains deployment strategy information.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Strategy

Returns a new instance of Strategy.



3000
3001
3002
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3000

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

Instance Attribute Details

#canaryGoogle::Apis::ClouddeployV1::Canary

Canary represents the canary deployment strategy. Corresponds to the JSON property canary



2993
2994
2995
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2993

def canary
  @canary
end

#standardGoogle::Apis::ClouddeployV1::Standard

Standard represents the standard deployment strategy. Corresponds to the JSON property standard



2998
2999
3000
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2998

def standard
  @standard
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3005
3006
3007
3008
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3005

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