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.



959
960
961
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 959

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 <

  1. If the GatewayServiceMesh is configured for Kubernetes, then the range for n is 0 <= n <= 100. Corresponds to the JSON property percentages

Returns:

  • (Array<Fixnum>)


941
942
943
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 941

def percentages
  @percentages
end

#postdeployGoogle::Apis::ClouddeployV1::Postdeploy

Postdeploy contains the postdeploy job configuration information. Corresponds to the JSON property postdeploy



946
947
948
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 946

def postdeploy
  @postdeploy
end

#predeployGoogle::Apis::ClouddeployV1::Predeploy

Predeploy contains the predeploy job configuration information. Corresponds to the JSON property predeploy



951
952
953
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 951

def predeploy
  @predeploy
end

#verifyBoolean Also known as: verify?

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

Returns:

  • (Boolean)


956
957
958
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 956

def verify
  @verify
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



964
965
966
967
968
969
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 964

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