Class: Google::Apis::ClouddeployV1::Canary

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

Canary represents the canary deployment strategy.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Canary

Returns a new instance of Canary.



985
986
987
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 985

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#canary_deploymentGoogle::Apis::ClouddeployV1::CanaryDeployment

CanaryDeployment represents the canary deployment configuration Corresponds to the JSON property canaryDeployment



972
973
974
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 972

def canary_deployment
  @canary_deployment
end

#custom_canary_deploymentGoogle::Apis::ClouddeployV1::CustomCanaryDeployment

CustomCanaryDeployment represents the custom canary deployment configuration. Corresponds to the JSON property customCanaryDeployment



977
978
979
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 977

def custom_canary_deployment
  @custom_canary_deployment
end

#runtime_configGoogle::Apis::ClouddeployV1::RuntimeConfig

RuntimeConfig contains the runtime specific configurations for a deployment strategy. Corresponds to the JSON property runtimeConfig



983
984
985
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 983

def runtime_config
  @runtime_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



990
991
992
993
994
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 990

def update!(**args)
  @canary_deployment = args[:canary_deployment] if args.key?(:canary_deployment)
  @custom_canary_deployment = args[:custom_canary_deployment] if args.key?(:custom_canary_deployment)
  @runtime_config = args[:runtime_config] if args.key?(:runtime_config)
end