Class: Google::Apis::ClouddeployV1::Strategy
- Inherits:
-
Object
- Object
- Google::Apis::ClouddeployV1::Strategy
- 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
-
#canary ⇒ Google::Apis::ClouddeployV1::Canary
Canary represents the canary deployment strategy.
-
#standard ⇒ Google::Apis::ClouddeployV1::Standard
Standard represents the standard deployment strategy.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Strategy
constructor
A new instance of Strategy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Strategy
Returns a new instance of Strategy.
5735 5736 5737 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 5735 def initialize(**args) update!(**args) end |
Instance Attribute Details
#canary ⇒ Google::Apis::ClouddeployV1::Canary
Canary represents the canary deployment strategy.
Corresponds to the JSON property canary
5728 5729 5730 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 5728 def canary @canary end |
#standard ⇒ Google::Apis::ClouddeployV1::Standard
Standard represents the standard deployment strategy.
Corresponds to the JSON property standard
5733 5734 5735 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 5733 def standard @standard end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5740 5741 5742 5743 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 5740 def update!(**args) @canary = args[:canary] if args.key?(:canary) @standard = args[:standard] if args.key?(:standard) end |