# Google Anthos Multi Cloud V1 Client - Class AttachedCluster (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 AttachedCluster.

An Anthos cluster running on customer own infrastructure.

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

## Namespace

Google \\ Cloud \\ GkeMultiCloud \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` The name of this resource. Cluster names are formatted as `projects/<project-number>/locations/<region>/attachedClusters/<cluster-id>`. See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more details on Google Cloud Platform resource names. |
| `↳ description` | `string` Optional. A human readable description of this cluster. Cannot be longer than 255 UTF-8 encoded bytes. |
| `↳ oidc_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-gke-multi-cloud/latest/V1.AttachedOidcConfig` Required. OpenID Connect (OIDC) configuration for the cluster. |
| `↳ platform_version` | `string` Required. The platform version for the cluster (e.g. `1.19.0-gke.1000`). You can list all supported versions on a given Google Cloud region by calling [GetAttachedServerConfig](https://docs.cloud.google.com/php/docs/reference/cloud-gke-multi-cloud/latest/V1.Client.AttachedClustersClient#_Google_Cloud_GkeMultiCloud_V1_Client_AttachedClustersClient__getAttachedServerConfig__). |
| `↳ distribution` | `string` Required. The Kubernetes distribution of the underlying attached cluster. Supported values: \["eks", "aks", "generic"\]. |
| `↳ cluster_region` | `string` Output only. The region where this cluster runs. For EKS clusters, this is a AWS region. For AKS clusters, this is an Azure region. |
| `↳ fleet` | `https://docs.cloud.google.com/php/docs/reference/cloud-gke-multi-cloud/latest/V1.Fleet` Required. Fleet configuration. |
| `↳ state` | `int` Output only. The current state of the cluster. |
| `↳ uid` | `string` Output only. A globally unique identifier for the cluster. |
| `↳ reconciling` | `bool` Output only. If set, there are currently changes in flight to the cluster. |
| `↳ create_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. The time at which this cluster was registered. |
| `↳ update_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. The time at which this cluster was last updated. |
| `↳ etag` | `string` Allows clients to perform consistent read-modify-writes through optimistic concurrency control. Can be sent on update and delete requests to ensure the client has an up-to-date value before proceeding. |
| `↳ kubernetes_version` | `string` Output only. The Kubernetes version of the cluster. |
| `↳ annotations` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` Optional. Annotations on the cluster. This field has the same restrictions as Kubernetes annotations. The total size of all keys and values combined is limited to 256k. Key can have 2 segments: prefix (optional) and name (required), separated by a slash (/). Prefix must be a DNS subdomain. Name must be 63 characters or less, begin and end with alphanumerics, with dashes (-), underscores (_), dots (.), and alphanumerics between. |
| `↳ workload_identity_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-gke-multi-cloud/latest/V1.WorkloadIdentityConfig` Output only. Workload Identity settings. |
| `↳ logging_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-gke-multi-cloud/latest/V1.LoggingConfig` Optional. Logging configuration for this cluster. |
| `↳ errors` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-gke-multi-cloud/latest/V1.AttachedClusterError>` Output only. A set of errors found in the cluster. |
| `↳ authorization` | `https://docs.cloud.google.com/php/docs/reference/cloud-gke-multi-cloud/latest/V1.AttachedClustersAuthorization` Optional. Configuration related to the cluster RBAC settings. |
| `↳ monitoring_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-gke-multi-cloud/latest/V1.MonitoringConfig` Optional. Monitoring configuration for this cluster. |
| `↳ proxy_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-gke-multi-cloud/latest/V1.AttachedProxyConfig` Optional. Proxy configuration for outbound HTTP(S) traffic. |
| `↳ binary_authorization` | `https://docs.cloud.google.com/php/docs/reference/cloud-gke-multi-cloud/latest/V1.BinaryAuthorization` Optional. Binary Authorization configuration for this cluster. |
| `↳ security_posture_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-gke-multi-cloud/latest/V1.SecurityPostureConfig` Optional. Security Posture configuration for this cluster. |
| `↳ tags` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` Optional. Input only. Tag keys and values directly bound to this resource. The tag key must be specified in the format `<tag namespace>/<tag key name>,` where the tag namespace is the ID of the organization or name of the project that the tag key is defined in. The short name of a tag key or value can have a maximum length of 256 characters. The permitted character set for the short name includes UTF-8 encoded Unicode characters except single quotation marks (`'`), double quotation marks (`"`), backslashes (`\`), and forward slashes (`/`). See [Tags](https://cloud.google.com/resource-manager/docs/tags/tags-overview) for more details on Google Cloud Platform tags. |
| `↳ system_components_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-gke-multi-cloud/latest/V1.SystemComponentsConfig` Optional. Kubernetes configurations for auto-installed components on the cluster. |

### getName

The name of this resource.

Cluster names are formatted as
`projects/<project-number>/locations/<region>/attachedClusters/<cluster-id>`.
See [Resource Names](https://cloud.google.com/apis/design/resource_names)
for more details on Google Cloud Platform resource names.

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

### setName

The name of this resource.

Cluster names are formatted as
`projects/<project-number>/locations/<region>/attachedClusters/<cluster-id>`.
See [Resource Names](https://cloud.google.com/apis/design/resource_names)
for more details on Google Cloud Platform resource names.

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

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

### getDescription

Optional. A human readable description of this cluster.

Cannot be longer than 255 UTF-8 encoded bytes.

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

### setDescription

Optional. A human readable description of this cluster.

Cannot be longer than 255 UTF-8 encoded bytes.

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

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

### getOidcConfig

Required. OpenID Connect (OIDC) configuration for the cluster.

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

### hasOidcConfig

### clearOidcConfig

### setOidcConfig

Required. OpenID Connect (OIDC) configuration for the cluster.

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

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

### getPlatformVersion

Required. The platform version for the cluster (e.g. `1.19.0-gke.1000`).

You can list all supported versions on a given Google Cloud region by
calling
[GetAttachedServerConfig](https://docs.cloud.google.com/php/docs/reference/cloud-gke-multi-cloud/latest/V1.Client.AttachedClustersClient#_Google_Cloud_GkeMultiCloud_V1_Client_AttachedClustersClient__getAttachedServerConfig__).

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

### setPlatformVersion

Required. The platform version for the cluster (e.g. `1.19.0-gke.1000`).

You can list all supported versions on a given Google Cloud region by
calling
[GetAttachedServerConfig](https://docs.cloud.google.com/php/docs/reference/cloud-gke-multi-cloud/latest/V1.Client.AttachedClustersClient#_Google_Cloud_GkeMultiCloud_V1_Client_AttachedClustersClient__getAttachedServerConfig__).

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

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

### getDistribution

Required. The Kubernetes distribution of the underlying attached cluster.

Supported values: \["eks", "aks", "generic"\].

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

### setDistribution

Required. The Kubernetes distribution of the underlying attached cluster.

Supported values: \["eks", "aks", "generic"\].

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

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

### getClusterRegion

Output only. The region where this cluster runs.

For EKS clusters, this is a AWS region. For AKS clusters,
this is an Azure region.

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

### setClusterRegion

Output only. The region where this cluster runs.

For EKS clusters, this is a AWS region. For AKS clusters,
this is an Azure region.

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

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

### getFleet

Required. Fleet configuration.

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

### hasFleet

### clearFleet

### setFleet

Required. Fleet configuration.

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

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

### getState

Output only. The current state of the cluster.

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

### setState

Output only. The current state of the cluster.

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

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

### getUid

Output only. A globally unique identifier for the cluster.

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

### setUid

Output only. A globally unique identifier for the cluster.

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

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

### getReconciling

Output only. If set, there are currently changes in flight to the cluster.

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

### setReconciling

Output only. If set, there are currently changes in flight to the cluster.

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

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

### getCreateTime

Output only. The time at which this cluster was registered.

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

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. The time at which this cluster was registered.

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

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

### getUpdateTime

Output only. The time at which this cluster was last updated.

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

### hasUpdateTime

### clearUpdateTime

### setUpdateTime

Output only. The time at which this cluster was last updated.

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

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

### getEtag

Allows clients to perform consistent read-modify-writes
through optimistic concurrency control.

Can be sent on update and delete requests to ensure the
client has an up-to-date value before proceeding.

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

### setEtag

Allows clients to perform consistent read-modify-writes
through optimistic concurrency control.

Can be sent on update and delete requests to ensure the
client has an up-to-date value before proceeding.

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

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

### getKubernetesVersion

Output only. The Kubernetes version of the cluster.

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

### setKubernetesVersion

Output only. The Kubernetes version of the cluster.

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

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

### getAnnotations

Optional. Annotations on the cluster.

This field has the same restrictions as Kubernetes annotations.
The total size of all keys and values combined is limited to 256k.
Key can have 2 segments: prefix (optional) and name (required),
separated by a slash (/).
Prefix must be a DNS subdomain.
Name must be 63 characters or less, begin and end with alphanumerics,
with dashes (-), underscores (_), dots (.), and alphanumerics between.

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

### setAnnotations

Optional. Annotations on the cluster.

This field has the same restrictions as Kubernetes annotations.
The total size of all keys and values combined is limited to 256k.
Key can have 2 segments: prefix (optional) and name (required),
separated by a slash (/).
Prefix must be a DNS subdomain.
Name must be 63 characters or less, begin and end with alphanumerics,
with dashes (-), underscores (_), dots (.), and alphanumerics between.

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

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

### getWorkloadIdentityConfig

Output only. Workload Identity settings.

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

### hasWorkloadIdentityConfig

### clearWorkloadIdentityConfig

### setWorkloadIdentityConfig

Output only. Workload Identity settings.

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

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

### getLoggingConfig

Optional. Logging configuration for this cluster.

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

### hasLoggingConfig

### clearLoggingConfig

### setLoggingConfig

Optional. Logging configuration for this cluster.

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

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

### getErrors

Output only. A set of errors found in the cluster.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-gke-multi-cloud/latest/V1.AttachedClusterError>` |   |

### setErrors

Output only. A set of errors found in the cluster.

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

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

### getAuthorization

Optional. Configuration related to the cluster RBAC settings.

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

### hasAuthorization

### clearAuthorization

### setAuthorization

Optional. Configuration related to the cluster RBAC settings.

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

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

### getMonitoringConfig

Optional. Monitoring configuration for this cluster.

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

### hasMonitoringConfig

### clearMonitoringConfig

### setMonitoringConfig

Optional. Monitoring configuration for this cluster.

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

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

### getProxyConfig

Optional. Proxy configuration for outbound HTTP(S) traffic.

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

### hasProxyConfig

### clearProxyConfig

### setProxyConfig

Optional. Proxy configuration for outbound HTTP(S) traffic.

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

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

### getBinaryAuthorization

Optional. Binary Authorization configuration for this cluster.

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

### hasBinaryAuthorization

### clearBinaryAuthorization

### setBinaryAuthorization

Optional. Binary Authorization configuration for this cluster.

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

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

### getSecurityPostureConfig

Optional. Security Posture configuration for this cluster.

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

### hasSecurityPostureConfig

### clearSecurityPostureConfig

### setSecurityPostureConfig

Optional. Security Posture configuration for this cluster.

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

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

### getTags

Optional. Input only. Tag keys and values directly bound to this resource.

The tag key must be specified in the format
`<tag namespace>/<tag key name>,`
where the tag namespace is the ID of the organization or name of the
project that the tag key is defined in. The short name of a tag key or
value can have a maximum length of 256 characters. The permitted character
set for the short name includes UTF-8 encoded Unicode characters except
single quotation marks (`'`), double quotation marks (`"`), backslashes
(`\`), and forward slashes (`/`).
See
[Tags](https://cloud.google.com/resource-manager/docs/tags/tags-overview)
for more details on Google Cloud Platform tags.

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

### setTags

Optional. Input only. Tag keys and values directly bound to this resource.

The tag key must be specified in the format
`<tag namespace>/<tag key name>,`
where the tag namespace is the ID of the organization or name of the
project that the tag key is defined in. The short name of a tag key or
value can have a maximum length of 256 characters. The permitted character
set for the short name includes UTF-8 encoded Unicode characters except
single quotation marks (`'`), double quotation marks (`"`), backslashes
(`\`), and forward slashes (`/`).
See
[Tags](https://cloud.google.com/resource-manager/docs/tags/tags-overview)
for more details on Google Cloud Platform tags.

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

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

### getSystemComponentsConfig

Optional. Kubernetes configurations for auto-installed components on the
cluster.

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

### hasSystemComponentsConfig

### clearSystemComponentsConfig

### setSystemComponentsConfig

Optional. Kubernetes configurations for auto-installed components on the
cluster.

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

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