# Google Cloud Deploy V1 API - Class Google::Cloud::Deploy::V1::CanaryDeployment (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::CanaryDeployment.

CanaryDeployment represents the canary deployment configuration

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #percentages

    def percentages() -> ::Array<::Integer>

**Returns**

- (::Array\<::Integer\>) --- 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. If the GatewayServiceMesh is configured for Kubernetes, then the range for n is 0 \<= n \<= 100.

### #percentages=

    def percentages=(value) -> ::Array<::Integer>

**Parameter**

- **value** (::Array\<::Integer\>) --- 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. If the GatewayServiceMesh is configured for Kubernetes, then the range for n is 0 \<= n \<= 100.
**Returns**

- (::Array\<::Integer\>) --- 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. If the GatewayServiceMesh is configured for Kubernetes, then the range for n is 0 \<= n \<= 100.

### #postdeploy

    def postdeploy() -> ::Google::Cloud::Deploy::V1::Postdeploy

**Returns**

- ([::Google::Cloud::Deploy::V1::Postdeploy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-deploy-v1/latest/Google-Cloud-Deploy-V1-Postdeploy)) --- Optional. Configuration for the postdeploy job of the last phase. If this is not configured, there will be no postdeploy job for this phase.

### #postdeploy=

    def postdeploy=(value) -> ::Google::Cloud::Deploy::V1::Postdeploy

**Parameter**

- **value** ([::Google::Cloud::Deploy::V1::Postdeploy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-deploy-v1/latest/Google-Cloud-Deploy-V1-Postdeploy)) --- Optional. Configuration for the postdeploy job of the last phase. If this is not configured, there will be no postdeploy job for this phase.
**Returns**

- ([::Google::Cloud::Deploy::V1::Postdeploy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-deploy-v1/latest/Google-Cloud-Deploy-V1-Postdeploy)) --- Optional. Configuration for the postdeploy job of the last phase. If this is not configured, there will be no postdeploy job for this phase.

### #predeploy

    def predeploy() -> ::Google::Cloud::Deploy::V1::Predeploy

**Returns**

- ([::Google::Cloud::Deploy::V1::Predeploy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-deploy-v1/latest/Google-Cloud-Deploy-V1-Predeploy)) --- Optional. Configuration for the predeploy job of the first phase. If this is not configured, there will be no predeploy job for this phase.

### #predeploy=

    def predeploy=(value) -> ::Google::Cloud::Deploy::V1::Predeploy

**Parameter**

- **value** ([::Google::Cloud::Deploy::V1::Predeploy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-deploy-v1/latest/Google-Cloud-Deploy-V1-Predeploy)) --- Optional. Configuration for the predeploy job of the first phase. If this is not configured, there will be no predeploy job for this phase.
**Returns**

- ([::Google::Cloud::Deploy::V1::Predeploy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-deploy-v1/latest/Google-Cloud-Deploy-V1-Predeploy)) --- Optional. Configuration for the predeploy job of the first phase. If this is not configured, there will be no predeploy job for this phase.

### #verify

    def verify() -> ::Boolean

**Returns**

- (::Boolean) --- Optional. Whether to run verify tests after each percentage deployment via `skaffold verify`.

### #verify=

    def verify=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- Optional. Whether to run verify tests after each percentage deployment via `skaffold verify`.
**Returns**

- (::Boolean) --- Optional. Whether to run verify tests after each percentage deployment via `skaffold verify`.