# Google Cloud Vmware Engine V1 Client - Class PrivateCloud (1.3.0)

1.3.0 (latest) 1.2.2 1.1.4 1.0.0 0.5.6 0.4.0 0.3.3 0.2.1 0.1.4 Reference documentation and code samples for the Google Cloud Vmware Engine V1 Client class PrivateCloud.

Represents a private cloud resource. Private clouds of type `STANDARD` and
`TIME_LIMITED` are zonal resources, `STRETCHED` private clouds are
regional.

Generated from protobuf message `google.cloud.vmwareengine.v1.PrivateCloud`

## Namespace

Google \\ Cloud \\ VmwareEngine \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Output only. The resource name of this private cloud. Resource names are schemeless URIs that follow the conventions in <https://cloud.google.com/apis/design/resource_names>. For example: `projects/my-project/locations/us-central1-a/privateClouds/my-cloud` |
| `↳ create_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. Creation time of this resource. |
| `↳ update_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. Last update time of this resource. |
| `↳ delete_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. Time when the resource was scheduled for deletion. |
| `↳ expire_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. Time when the resource will be irreversibly deleted. |
| `↳ state` | `int` Output only. State of the resource. New values may be added to this enum when appropriate. |
| `↳ network_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-vmware-engine/latest/V1.NetworkConfig` Required. Network configuration of the private cloud. |
| `↳ management_cluster` | `https://docs.cloud.google.com/php/docs/reference/cloud-vmware-engine/latest/V1.PrivateCloud.ManagementCluster` Required. Input only. The management cluster for this private cloud. This field is required during creation of the private cloud to provide details for the default cluster. The following fields can't be changed after private cloud creation: `ManagementCluster.clusterId`, `ManagementCluster.nodeTypeId`. |
| `↳ description` | `string` User-provided description for this private cloud. |
| `↳ hcx` | `https://docs.cloud.google.com/php/docs/reference/cloud-vmware-engine/latest/V1.Hcx` Output only. HCX appliance. |
| `↳ nsx` | `https://docs.cloud.google.com/php/docs/reference/cloud-vmware-engine/latest/V1.Nsx` Output only. NSX appliance. |
| `↳ vcenter` | `https://docs.cloud.google.com/php/docs/reference/cloud-vmware-engine/latest/V1.Vcenter` Output only. Vcenter appliance. |
| `↳ uid` | `string` Output only. System-generated unique identifier for the resource. |
| `↳ type` | `int` Optional. Type of the private cloud. Defaults to STANDARD. |

### getName

Output only. The resource name of this private cloud.

Resource names are schemeless URIs that follow the conventions in
<https://cloud.google.com/apis/design/resource_names>.
For example:
`projects/my-project/locations/us-central1-a/privateClouds/my-cloud`

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

### setName

Output only. The resource name of this private cloud.

Resource names are schemeless URIs that follow the conventions in
<https://cloud.google.com/apis/design/resource_names>.
For example:
`projects/my-project/locations/us-central1-a/privateClouds/my-cloud`

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

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

### getCreateTime

Output only. Creation time of this resource.

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

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. Creation time of this resource.

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

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

### getUpdateTime

Output only. Last update time of this resource.

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

### hasUpdateTime

### clearUpdateTime

### setUpdateTime

Output only. Last update time of this resource.

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

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

### getDeleteTime

Output only. Time when the resource was scheduled for deletion.

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

### hasDeleteTime

### clearDeleteTime

### setDeleteTime

Output only. Time when the resource was scheduled for deletion.

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

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

### getExpireTime

Output only. Time when the resource will be irreversibly deleted.

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

### hasExpireTime

### clearExpireTime

### setExpireTime

Output only. Time when the resource will be irreversibly deleted.

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

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

### getState

Output only. State of the resource. New values may be added to this enum
when appropriate.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-vmware-engine/latest/V1.PrivateCloud.State). |

### setState

Output only. State of the resource. New values may be added to this enum
when appropriate.

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

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

### getNetworkConfig

Required. Network configuration of the private cloud.

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

### hasNetworkConfig

### clearNetworkConfig

### setNetworkConfig

Required. Network configuration of the private cloud.

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

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

### getManagementCluster

Required. Input only. The management cluster for this private cloud.

This field is required during creation of the private cloud to provide
details for the default cluster.
The following fields can't be changed after private cloud creation:
`ManagementCluster.clusterId`, `ManagementCluster.nodeTypeId`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-vmware-engine/latest/V1.PrivateCloud.ManagementCluster|null` |   |

### hasManagementCluster

### clearManagementCluster

### setManagementCluster

Required. Input only. The management cluster for this private cloud.

This field is required during creation of the private cloud to provide
details for the default cluster.
The following fields can't be changed after private cloud creation:
`ManagementCluster.clusterId`, `ManagementCluster.nodeTypeId`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-vmware-engine/latest/V1.PrivateCloud.ManagementCluster` |

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

### getDescription

User-provided description for this private cloud.

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

### setDescription

User-provided description for this private cloud.

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

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

### getHcx

Output only. HCX appliance.

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

### hasHcx

### clearHcx

### setHcx

Output only. HCX appliance.

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

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

### getNsx

Output only. NSX appliance.

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

### hasNsx

### clearNsx

### setNsx

Output only. NSX appliance.

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

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

### getVcenter

Output only. Vcenter appliance.

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

### hasVcenter

### clearVcenter

### setVcenter

Output only. Vcenter appliance.

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

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

### getUid

Output only. System-generated unique identifier for the resource.

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

### setUid

Output only. System-generated unique identifier for the resource.

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

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

### getType

Optional. Type of the private cloud. Defaults to STANDARD.

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

### setType

Optional. Type of the private cloud. Defaults to STANDARD.

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

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