# Grafeas V1 Client - Class DeploymentOccurrence (1.7.0)

1.7.0 (latest) 1.6.0 1.5.0 1.4.0 1.3.2 1.2.2 1.1.3 1.0.0 0.10.3 0.9.0 0.8.3 0.7.1 0.6.0 0.5.0 0.4.4 Reference documentation and code samples for the Grafeas V1 Client class DeploymentOccurrence.

The period during which some deployable was active in a runtime.

Generated from protobuf message `grafeas.v1.DeploymentOccurrence`

## Namespace

Grafeas \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ user_email` | `string` Identity of the user that triggered this deployment. |
| `↳ deploy_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Required. Beginning of the lifetime of this deployment. |
| `↳ undeploy_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` End of the lifetime of this deployment. |
| `↳ config` | `string` Configuration used to create this deployment. |
| `↳ address` | `string` Address of the runtime element hosting this deployment. |
| `↳ resource_uri` | `string[]` Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name. |
| `↳ platform` | `int` Platform hosting this deployment. |

### getUserEmail

Identity of the user that triggered this deployment.

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

### setUserEmail

Identity of the user that triggered this deployment.

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

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

### getDeployTime

Required. Beginning of the lifetime of this deployment.

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

### hasDeployTime

### clearDeployTime

### setDeployTime

Required. Beginning of the lifetime of this deployment.

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

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

### getUndeployTime

End of the lifetime of this deployment.

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

### hasUndeployTime

### clearUndeployTime

### setUndeployTime

End of the lifetime of this deployment.

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

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

### getConfig

Configuration used to create this deployment.

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

### setConfig

Configuration used to create this deployment.

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

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

### getAddress

Address of the runtime element hosting this deployment.

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

### setAddress

Address of the runtime element hosting this deployment.

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

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

### getResourceUri

Output only. Resource URI for the artifact being deployed taken from
the deployable field with the same name.

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

### setResourceUri

Output only. Resource URI for the artifact being deployed taken from
the deployable field with the same name.

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

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

### getPlatform

Platform hosting this deployment.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setPlatform

Platform hosting this deployment.

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

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