Class: Google::Apis::ClouddeployV1::CanaryDeployment

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

CanaryDeployment represents the canary deployment configuration

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#percentagesArray<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

Returns:

  • (Array<Fixnum>)


392
393
394
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 392

def percentages
  @percentages
end

#verifyBoolean Also known as: verify?

Whether to run verify tests after each percentage deployment. Corresponds to the JSON property verify

Returns:

  • (Boolean)


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