# Google Anthos Multi Cloud V1 Client - Class UpdateAttachedClusterRequest (1.4.1)

1.4.1 (latest) 1.4.0 1.3.1 1.2.2 1.1.2 1.0.0 0.6.1 0.5.4 0.4.4 0.3.0 0.2.3 0.1.4 Reference documentation and code samples for the Google Anthos Multi Cloud V1 Client class UpdateAttachedClusterRequest.

Request message for `AttachedClusters.UpdateAttachedCluster` method.

Generated from protobuf message `google.cloud.gkemulticloud.v1.UpdateAttachedClusterRequest`

## Namespace

Google \\ Cloud \\ GkeMultiCloud \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ attached_cluster` | `https://docs.cloud.google.com/php/docs/reference/cloud-gke-multi-cloud/latest/V1.AttachedCluster` Required. The [AttachedCluster](https://docs.cloud.google.com/php/docs/reference/cloud-gke-multi-cloud/latest/V1.AttachedCluster) resource to update. |
| `↳ validate_only` | `bool` If set, only validate the request, but do not actually update the cluster. |
| `↳ update_mask` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` Required. Mask of fields to update. At least one path must be supplied in this field. The elements of the repeated paths field can only include these fields from [AttachedCluster](https://docs.cloud.google.com/php/docs/reference/cloud-gke-multi-cloud/latest/V1.AttachedCluster): \* \* `annotations`. \* \* `authorization.admin_groups`. \* \* `authorization.admin_users`. \* \* `binary_authorization.evaluation_mode`. \* \* `description`. \* \* `logging_config.component_config.enable_components`. \* \* `monitoring_config.managed_prometheus_config.enabled`. \* \* `platform_version`. \* \* `proxy_config.kubernetes_secret.name`. \* \* `proxy_config.kubernetes_secret.namespace`. \* \* `security_posture_config.vulnerability_mode` \* \* `monitoring_config.cloud_monitoring_config.enabled` |

### getAttachedCluster

Required. The
[AttachedCluster](https://docs.cloud.google.com/php/docs/reference/cloud-gke-multi-cloud/latest/V1.AttachedCluster) resource
to update.

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

### hasAttachedCluster

### clearAttachedCluster

### setAttachedCluster

Required. The
[AttachedCluster](https://docs.cloud.google.com/php/docs/reference/cloud-gke-multi-cloud/latest/V1.AttachedCluster) resource
to update.

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

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

### getValidateOnly

If set, only validate the request, but do not actually update the cluster.

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

### setValidateOnly

If set, only validate the request, but do not actually update the cluster.

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

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

### getUpdateMask

Required. Mask of fields to update. At least one path must be supplied in
this field. The elements of the repeated paths field can only include these
fields from
[AttachedCluster](https://docs.cloud.google.com/php/docs/reference/cloud-gke-multi-cloud/latest/V1.AttachedCluster):

- `annotations`.

<!-- -->

- `authorization.admin_groups`.
  - `authorization.admin_users`.
  - `binary_authorization.evaluation_mode`.
  - `description`.
  - `logging_config.component_config.enable_components`.
  - `monitoring_config.managed_prometheus_config.enabled`.
  - `platform_version`.
  - `proxy_config.kubernetes_secret.name`.
  - `proxy_config.kubernetes_secret.namespace`.
  - `security_posture_config.vulnerability_mode`
  - `monitoring_config.cloud_monitoring_config.enabled`

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

### hasUpdateMask

### clearUpdateMask

### setUpdateMask

Required. Mask of fields to update. At least one path must be supplied in
this field. The elements of the repeated paths field can only include these
fields from
[AttachedCluster](https://docs.cloud.google.com/php/docs/reference/cloud-gke-multi-cloud/latest/V1.AttachedCluster):

- `annotations`.

<!-- -->

- `authorization.admin_groups`.
  - `authorization.admin_users`.
  - `binary_authorization.evaluation_mode`.
  - `description`.
  - `logging_config.component_config.enable_components`.
  - `monitoring_config.managed_prometheus_config.enabled`.
  - `platform_version`.
  - `proxy_config.kubernetes_secret.name`.
  - `proxy_config.kubernetes_secret.namespace`.
  - `security_posture_config.vulnerability_mode`
  - `monitoring_config.cloud_monitoring_config.enabled`

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `attachedCluster` | `https://docs.cloud.google.com/php/docs/reference/cloud-gke-multi-cloud/latest/V1.AttachedCluster` Required. The [AttachedCluster](https://docs.cloud.google.com/php/docs/reference/cloud-gke-multi-cloud/latest/V1.AttachedCluster) resource to update. |
| `updateMask` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` Required. Mask of fields to update. At least one path must be supplied in this field. The elements of the repeated paths field can only include these fields from [AttachedCluster](https://docs.cloud.google.com/php/docs/reference/cloud-gke-multi-cloud/latest/V1.AttachedCluster): - - `annotations`. - - `authorization.admin_groups`. - - `authorization.admin_users`. - - `binary_authorization.evaluation_mode`. - - `description`. - - `logging_config.component_config.enable_components`. - - `monitoring_config.managed_prometheus_config.enabled`. - - `platform_version`. - - `proxy_config.kubernetes_secret.name`. - - `proxy_config.kubernetes_secret.namespace`. - - `security_posture_config.vulnerability_mode` - - `monitoring_config.cloud_monitoring_config.enabled` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-gke-multi-cloud/latest/V1.UpdateAttachedClusterRequest` |   |