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.



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

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



953
954
955
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 953

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



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

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



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

def runtime_config
  @runtime_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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