0.18.0 (latest) 0.17.1 0.16.0 0.15.3 0.12.0 0.11.0 0.10.1 0.9.2 0.8.1 0.7.0 0.6.0 0.5.1 0.4.7 0.3.0 0.2.3 0.1.6 Reference documentation and code samples for the Google Cloud Dataform V1 Client class Workspace.

Represents a Dataform Git workspace.

Generated from protobuf message `google.cloud.dataform.v1.Workspace`

## Namespace

Google \\ Cloud \\ Dataform \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Identifier. The workspace's name. |
| `↳ create_time` | `Google\Protobuf\Timestamp` Output only. The timestamp of when the workspace was created. |
| `↳ data_encryption_state` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataform/latest/V1.DataEncryptionState` Output only. A data encryption state of a Git repository if this Workspace is protected by a KMS key. |
| `↳ internal_metadata` | `string` Output only. All the metadata information that is used internally to serve the resource. For example: timestamps, flags, status fields, etc. The format of this field is a JSON string. |
| `↳ disable_moves` | `bool` Optional. If set to true, workspaces will not be moved if its linked Repository is moved. Instead, it will be deleted. |
| `↳ private_resource_metadata` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataform/latest/V1.PrivateResourceMetadata` Output only. Metadata indicating whether this resource is user-scoped. For `Workspace` resources, the `user_scoped` field is always `true`. |

### getName

Identifier. The workspace's name.

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

### setName

Identifier. The workspace's name.

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

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

### getCreateTime

Output only. The timestamp of when the workspace was created.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Timestamp|null` |   |

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. The timestamp of when the workspace was created.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Google\Protobuf\Timestamp` |

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

### getDataEncryptionState

Output only. A data encryption state of a Git repository if this Workspace
is protected by a KMS key.

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

### hasDataEncryptionState

### clearDataEncryptionState

### setDataEncryptionState

Output only. A data encryption state of a Git repository if this Workspace
is protected by a KMS key.

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

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

### getInternalMetadata

Output only. All the metadata information that is used internally to serve
the resource. For example: timestamps, flags, status fields, etc. The
format of this field is a JSON string.

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

### hasInternalMetadata

### clearInternalMetadata

### setInternalMetadata

Output only. All the metadata information that is used internally to serve
the resource. For example: timestamps, flags, status fields, etc. The
format of this field is a JSON string.

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

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

### getDisableMoves

Optional. If set to true, workspaces will not be moved if its linked
Repository is moved. Instead, it will be deleted.

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

### hasDisableMoves

### clearDisableMoves

### setDisableMoves

Optional. If set to true, workspaces will not be moved if its linked
Repository is moved. Instead, it will be deleted.

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

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

### getPrivateResourceMetadata

Output only. Metadata indicating whether this resource is user-scoped. For
`Workspace` resources, the `user_scoped` field is always `true`.

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

### hasPrivateResourceMetadata

### clearPrivateResourceMetadata

### setPrivateResourceMetadata

Output only. Metadata indicating whether this resource is user-scoped. For
`Workspace` resources, the `user_scoped` field is always `true`.

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

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