# Google Cloud Config V1 Client - Class DeploymentOperationMetadata (1.8.0)

1.8.0 (latest) 1.7.2 1.6.1 1.5.0 1.4.1 1.3.0 1.2.1 1.1.0 1.0.1 0.5.2 0.2.0 0.1.3 Reference documentation and code samples for the Google Cloud Config V1 Client class DeploymentOperationMetadata.

Ephemeral metadata content describing the state of a deployment operation.

Generated from protobuf message `google.cloud.config.v1.DeploymentOperationMetadata`

## Namespace

Google \\ Cloud \\ Config \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ step` | `int` The current step the deployment operation is running. |
| `↳ apply_results` | `https://docs.cloud.google.com/php/docs/reference/cloud-config/latest/V1.ApplyResults` Outputs and artifacts from applying a deployment. |
| `↳ build` | `string` Output only. Cloud Build instance UUID associated with this operation. |
| `↳ logs` | `string` Output only. Location of Deployment operations logs in `gs://{bucket}/{object}` format. |

### getStep

The current step the deployment operation is running.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [DeploymentStep](https://docs.cloud.google.com/php/docs/reference/cloud-config/latest/V1.DeploymentOperationMetadata.DeploymentStep). |

### setStep

The current step the deployment operation is running.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [DeploymentStep](https://docs.cloud.google.com/php/docs/reference/cloud-config/latest/V1.DeploymentOperationMetadata.DeploymentStep). |

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

### getApplyResults

Outputs and artifacts from applying a deployment.

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

### hasApplyResults

### clearApplyResults

### setApplyResults

Outputs and artifacts from applying a deployment.

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

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

### getBuild

Output only. Cloud Build instance UUID associated with this operation.

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

### setBuild

Output only. Cloud Build instance UUID associated with this operation.

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

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

### getLogs

Output only. Location of Deployment operations logs in
`gs://{bucket}/{object}` format.

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

### setLogs

Output only. Location of Deployment operations logs in
`gs://{bucket}/{object}` format.

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

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