# Google Cloud Config V1 Client - Class DeploymentGroupRevision (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 DeploymentGroupRevision.

A DeploymentGroupRevision represents a snapshot of a
[DeploymentGroup](https://docs.cloud.google.com/php/docs/reference/cloud-config/latest/V1.DeploymentGroup) at a given point in
time, created when a DeploymentGroup is provisioned or deprovisioned.

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

## Namespace

Google \\ Cloud \\ Config \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Identifier. The name of the deployment group revision. Format: 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}/revisions/{revision}'. |
| `↳ snapshot` | `https://docs.cloud.google.com/php/docs/reference/cloud-config/latest/V1.DeploymentGroup` Output only. The snapshot of the deployment group at this revision. |
| `↳ create_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. Time when the deployment group revision was created. |
| `↳ alternative_ids` | `string[]` Output only. The alternative IDs of the deployment group revision. |

### getName

Identifier. The name of the deployment group revision.

Format:
'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}/revisions/{revision}'.

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

### setName

Identifier. The name of the deployment group revision.

Format:
'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}/revisions/{revision}'.

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

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

### getSnapshot

Output only. The snapshot of the deployment group at this revision.

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

### hasSnapshot

### clearSnapshot

### setSnapshot

Output only. The snapshot of the deployment group at this revision.

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

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

### getCreateTime

Output only. Time when the deployment group revision was created.

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

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. Time when the deployment group revision was created.

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

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

### getAlternativeIds

Output only. The alternative IDs of the deployment group revision.

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

### setAlternativeIds

Output only. The alternative IDs of the deployment group revision.

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

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