# Google Cloud Vmware Engine V1 Client - Class Cluster (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 Cluster.

A cluster in a private cloud.

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

## 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 cluster. 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/clusters/my-cluster` |
| `↳ 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. |
| `↳ state` | `int` Output only. State of the resource. |
| `↳ management` | `bool` Output only. True if the cluster is a management cluster; false otherwise. There can only be one management cluster in a private cloud and it has to be the first one. |
| `↳ autoscaling_settings` | `https://docs.cloud.google.com/php/docs/reference/cloud-vmware-engine/latest/V1.AutoscalingSettings` Optional. Configuration of the autoscaling applied to this cluster. |
| `↳ uid` | `string` Output only. System-generated unique identifier for the resource. |
| `↳ node_type_configs` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` Required. The map of cluster node types in this cluster, where the key is canonical identifier of the node type (corresponds to the `NodeType`). |
| `↳ stretched_cluster_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-vmware-engine/latest/V1.StretchedClusterConfig` Optional. Configuration of a stretched cluster. Required for clusters that belong to a STRETCHED private cloud. |

### getName

Output only. The resource name of this cluster.

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/clusters/my-cluster`

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

### setName

Output only. The resource name of this cluster.

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/clusters/my-cluster`

| **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` |   |

### getState

Output only. State of the resource.

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

### setState

Output only. State of the resource.

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

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

### getManagement

Output only. True if the cluster is a management cluster; false otherwise.

There can only be one management cluster in a private cloud
and it has to be the first one.

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

### setManagement

Output only. True if the cluster is a management cluster; false otherwise.

There can only be one management cluster in a private cloud
and it has to be the first one.

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

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

### getAutoscalingSettings

Optional. Configuration of the autoscaling applied to this cluster.

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

### hasAutoscalingSettings

### clearAutoscalingSettings

### setAutoscalingSettings

Optional. Configuration of the autoscaling applied to this cluster.

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

| **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` |   |

### getNodeTypeConfigs

Required. The map of cluster node types in this cluster, where the key is
canonical identifier of the node type (corresponds to the `NodeType`).

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

### setNodeTypeConfigs

Required. The map of cluster node types in this cluster, where the key is
canonical identifier of the node type (corresponds to the `NodeType`).

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

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

### getStretchedClusterConfig

Optional. Configuration of a stretched cluster. Required for clusters that
belong to a STRETCHED private cloud.

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

### hasStretchedClusterConfig

### clearStretchedClusterConfig

### setStretchedClusterConfig

Optional. Configuration of a stretched cluster. Required for clusters that
belong to a STRETCHED private cloud.

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

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