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.
-
#postdeploy ⇒ Google::Apis::ClouddeployV1::Postdeploy
Postdeploy contains the postdeploy job configuration information.
-
#predeploy ⇒ Google::Apis::ClouddeployV1::Predeploy
Predeploy contains the predeploy job configuration information.
-
#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.
506 507 508 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 506 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
488 489 490 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 488 def percentages @percentages end |
#postdeploy ⇒ Google::Apis::ClouddeployV1::Postdeploy
Postdeploy contains the postdeploy job configuration information.
Corresponds to the JSON property postdeploy
493 494 495 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 493 def postdeploy @postdeploy end |
#predeploy ⇒ Google::Apis::ClouddeployV1::Predeploy
Predeploy contains the predeploy job configuration information.
Corresponds to the JSON property predeploy
498 499 500 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 498 def predeploy @predeploy end |
#verify ⇒ Boolean Also known as: verify?
Whether to run verify tests after each percentage deployment.
Corresponds to the JSON property verify
503 504 505 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 503 def verify @verify end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
511 512 513 514 515 516 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 511 def update!(**args) @percentages = args[:percentages] if args.key?(:percentages) @postdeploy = args[:postdeploy] if args.key?(:postdeploy) @predeploy = args[:predeploy] if args.key?(:predeploy) @verify = args[:verify] if args.key?(:verify) end |