# Google Cloud Deploy V1 API - Class Google::Cloud::Deploy::V1::Canary (v2.5.0)

2.5.0 (latest) 2.4.1 2.3.0 2.2.0 2.1.1 2.0.2 1.6.0 1.5.0 1.4.0 1.3.0 1.2.2 1.1.0 1.0.0 0.20.0 0.19.1 0.18.0 0.17.2 0.16.0 0.15.0 0.14.0 0.13.0 0.12.0 0.11.0 0.10.0 0.9.0 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.3 Reference documentation and code samples for the Google Cloud Deploy V1 API class Google::Cloud::Deploy::V1::Canary.

Canary represents the canary deployment strategy.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #canary_deployment

    def canary_deployment() -> ::Google::Cloud::Deploy::V1::CanaryDeployment

**Returns**

- ([::Google::Cloud::Deploy::V1::CanaryDeployment](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-deploy-v1/latest/Google-Cloud-Deploy-V1-CanaryDeployment)) --- Optional. Configures the progressive based deployment for a Target.


  Note: The following fields are mutually exclusive: `canary_deployment`, `custom_canary_deployment`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #canary_deployment=

    def canary_deployment=(value) -> ::Google::Cloud::Deploy::V1::CanaryDeployment

**Parameter**

- **value** ([::Google::Cloud::Deploy::V1::CanaryDeployment](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-deploy-v1/latest/Google-Cloud-Deploy-V1-CanaryDeployment)) --- Optional. Configures the progressive based deployment for a Target.


  Note: The following fields are mutually exclusive: `canary_deployment`, `custom_canary_deployment`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Deploy::V1::CanaryDeployment](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-deploy-v1/latest/Google-Cloud-Deploy-V1-CanaryDeployment)) --- Optional. Configures the progressive based deployment for a Target.


  Note: The following fields are mutually exclusive: `canary_deployment`, `custom_canary_deployment`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #custom_canary_deployment

    def custom_canary_deployment() -> ::Google::Cloud::Deploy::V1::CustomCanaryDeployment

**Returns**

- ([::Google::Cloud::Deploy::V1::CustomCanaryDeployment](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-deploy-v1/latest/Google-Cloud-Deploy-V1-CustomCanaryDeployment)) --- Optional. Configures the progressive based deployment for a Target, but allows customizing at the phase level where a phase represents each of the percentage deployments.


  Note: The following fields are mutually exclusive: `custom_canary_deployment`, `canary_deployment`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #custom_canary_deployment=

    def custom_canary_deployment=(value) -> ::Google::Cloud::Deploy::V1::CustomCanaryDeployment

**Parameter**

- **value** ([::Google::Cloud::Deploy::V1::CustomCanaryDeployment](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-deploy-v1/latest/Google-Cloud-Deploy-V1-CustomCanaryDeployment)) --- Optional. Configures the progressive based deployment for a Target, but allows customizing at the phase level where a phase represents each of the percentage deployments.


  Note: The following fields are mutually exclusive: `custom_canary_deployment`, `canary_deployment`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Deploy::V1::CustomCanaryDeployment](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-deploy-v1/latest/Google-Cloud-Deploy-V1-CustomCanaryDeployment)) --- Optional. Configures the progressive based deployment for a Target, but allows customizing at the phase level where a phase represents each of the percentage deployments.


  Note: The following fields are mutually exclusive: `custom_canary_deployment`, `canary_deployment`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #runtime_config

    def runtime_config() -> ::Google::Cloud::Deploy::V1::RuntimeConfig

**Returns**

- ([::Google::Cloud::Deploy::V1::RuntimeConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-deploy-v1/latest/Google-Cloud-Deploy-V1-RuntimeConfig)) --- Optional. Runtime specific configurations for the deployment strategy. The runtime configuration is used to determine how Cloud Deploy will split traffic to enable a progressive deployment.

### #runtime_config=

    def runtime_config=(value) -> ::Google::Cloud::Deploy::V1::RuntimeConfig

**Parameter**

- **value** ([::Google::Cloud::Deploy::V1::RuntimeConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-deploy-v1/latest/Google-Cloud-Deploy-V1-RuntimeConfig)) --- Optional. Runtime specific configurations for the deployment strategy. The runtime configuration is used to determine how Cloud Deploy will split traffic to enable a progressive deployment.
**Returns**

- ([::Google::Cloud::Deploy::V1::RuntimeConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-deploy-v1/latest/Google-Cloud-Deploy-V1-RuntimeConfig)) --- Optional. Runtime specific configurations for the deployment strategy. The runtime configuration is used to determine how Cloud Deploy will split traffic to enable a progressive deployment.