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

Management cluster configuration.

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

## Namespace

Google \\ Cloud \\ VmwareEngine \\ V1 \\ PrivateCloud

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ cluster_id` | `string` Required. The user-provided identifier of the new `Cluster`. The identifier must meet the following requirements: \* \* Only contains 1-63 alphanumeric characters and hyphens \* \* Begins with an alphabetical character \* \* Ends with a non-hyphen character \* \* Not formatted as a UUID \* \* Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034) (section 3.5) |
| `↳ 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 STRETCHED private clouds. |

### getClusterId

Required. The user-provided identifier of the new `Cluster`.

The identifier must meet the following requirements:

- Only contains 1-63 alphanumeric characters and hyphens
- Begins with an alphabetical character
- Ends with a non-hyphen character
- Not formatted as a UUID
- Complies with [RFC
  1034](https://datatracker.ietf.org/doc/html/rfc1034) (section 3.5)

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

### setClusterId

Required. The user-provided identifier of the new `Cluster`.

The identifier must meet the following requirements:

- Only contains 1-63 alphanumeric characters and hyphens
- Begins with an alphabetical character
- Ends with a non-hyphen character
- Not formatted as a UUID
- Complies with [RFC
  1034](https://datatracker.ietf.org/doc/html/rfc1034) (section 3.5)

| **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 STRETCHED
private clouds.

| **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 STRETCHED
private clouds.

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

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