# Google Cloud Deploy V1 Client - Class ExecutionConfig (2.0.0)

2.0.0 (latest) 1.6.3 1.5.7 1.4.0 1.3.0 1.2.0 1.1.1 1.0.0 0.19.1 0.18.1 0.17.0 0.16.0 0.15.0 0.14.0 0.13.1 0.12.1 0.11.1 0.10.0 0.9.0 0.8.0 0.7.0 0.6.0 0.5.0 0.4.1 0.3.4 Reference documentation and code samples for the Google Cloud Deploy V1 Client class ExecutionConfig.

Configuration of the environment to use when calling Skaffold.

Generated from protobuf message `google.cloud.deploy.v1.ExecutionConfig`

## Namespace

Google \\ Cloud \\ Deploy \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ usages` | `array` Required. Usages when this configuration should be applied. |
| `↳ default_pool` | `https://docs.cloud.google.com/php/docs/reference/cloud-deploy/latest/V1.DefaultPool` Optional. Use default Cloud Build pool. |
| `↳ private_pool` | `https://docs.cloud.google.com/php/docs/reference/cloud-deploy/latest/V1.PrivatePool` Optional. Use private Cloud Build pool. |
| `↳ worker_pool` | `string` Optional. The resource name of the `WorkerPool`, with the format `projects/{project}/locations/{location}/workerPools/{worker_pool}`. If this optional field is unspecified, the default Cloud Build pool will be used. |
| `↳ service_account` | `string` Optional. Google service account to use for execution. If unspecified, the project execution service account (\<PROJECT_NUMBER\>-compute@developer.gserviceaccount.com) is used. |
| `↳ artifact_storage` | `string` Optional. Cloud Storage location in which to store execution outputs. This can either be a bucket ("gs://my-bucket") or a path within a bucket ("gs://my-bucket/my-dir"). If unspecified, a default bucket located in the same region will be used. |
| `↳ execution_timeout` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration` Optional. Execution timeout for a Cloud Build Execution. This must be between 10m and 24h in seconds format. If unspecified, a default timeout of 1h is used. |
| `↳ verbose` | `bool` Optional. If true, additional logging will be enabled when running builds in this execution environment. |

### getUsages

Required. Usages when this configuration should be applied.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/RepeatedField` |   |

### setUsages

Required. Usages when this configuration should be applied.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int[]` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getDefaultPool

Optional. Use default Cloud Build pool.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-deploy/latest/V1.DefaultPool|null` |   |

### hasDefaultPool

### setDefaultPool

Optional. Use default Cloud Build pool.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-deploy/latest/V1.DefaultPool` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getPrivatePool

Optional. Use private Cloud Build pool.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-deploy/latest/V1.PrivatePool|null` |   |

### hasPrivatePool

### setPrivatePool

Optional. Use private Cloud Build pool.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-deploy/latest/V1.PrivatePool` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getWorkerPool

Optional. The resource name of the `WorkerPool`, with the format
`projects/{project}/locations/{location}/workerPools/{worker_pool}`.

If this optional field is unspecified, the default Cloud Build pool will be
used.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setWorkerPool

Optional. The resource name of the `WorkerPool`, with the format
`projects/{project}/locations/{location}/workerPools/{worker_pool}`.

If this optional field is unspecified, the default Cloud Build pool will be
used.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getServiceAccount

Optional. Google service account to use for execution. If unspecified,
the project execution service account
(\<PROJECT_NUMBER\>-compute@developer.gserviceaccount.com) is used.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setServiceAccount

Optional. Google service account to use for execution. If unspecified,
the project execution service account
(\<PROJECT_NUMBER\>-compute@developer.gserviceaccount.com) is used.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getArtifactStorage

Optional. Cloud Storage location in which to store execution outputs. This
can either be a bucket ("gs://my-bucket") or a path within a bucket
("gs://my-bucket/my-dir").

If unspecified, a default bucket located in the same region will be used.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setArtifactStorage

Optional. Cloud Storage location in which to store execution outputs. This
can either be a bucket ("gs://my-bucket") or a path within a bucket
("gs://my-bucket/my-dir").

If unspecified, a default bucket located in the same region will be used.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getExecutionTimeout

Optional. Execution timeout for a Cloud Build Execution. This must be
between 10m and 24h in seconds format. If unspecified, a default timeout of
1h is used.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration|null` |   |

### hasExecutionTimeout

### clearExecutionTimeout

### setExecutionTimeout

Optional. Execution timeout for a Cloud Build Execution. This must be
between 10m and 24h in seconds format. If unspecified, a default timeout of
1h is used.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getVerbose

Optional. If true, additional logging will be enabled when running builds
in this execution environment.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setVerbose

Optional. If true, additional logging will be enabled when running builds
in this execution environment.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `bool` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getExecutionEnvironment

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |