Class: Google::Apis::ClouddeployV1::CanaryDeployment
- Inherits:
-
Object
- Object
- Google::Apis::ClouddeployV1::CanaryDeployment
- 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
CanaryDeployment represents the canary deployment configuration
Instance Attribute Summary collapse
-
#percentages ⇒ Array<Fixnum>
Required.
-
#verify ⇒ Boolean
(also: #verify?)
Whether to run verify tests after each percentage deployment.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CanaryDeployment
constructor
A new instance of CanaryDeployment.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CanaryDeployment
Returns a new instance of CanaryDeployment.
400 401 402 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 400 def initialize(**args) update!(**args) end |
Instance Attribute Details
#percentages ⇒ Array<Fixnum>
Required. The percentage based deployments that will occur as a part of a
Rollout. List is expected in ascending order and each integer n is 0 <= n <
100.
Corresponds to the JSON property percentages
392 393 394 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 392 def percentages @percentages end |
#verify ⇒ Boolean Also known as: verify?
Whether to run verify tests after each percentage deployment.
Corresponds to the JSON property verify
397 398 399 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 397 def verify @verify end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
405 406 407 408 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 405 def update!(**args) @percentages = args[:percentages] if args.key?(:percentages) @verify = args[:verify] if args.key?(:verify) end |