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

Request message for `AttachedClusters.ImportAttachedCluster` method.

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

## Namespace

Google \\ Cloud \\ GkeMultiCloud \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. The parent location where this [AttachedCluster](https://docs.cloud.google.com/php/docs/reference/cloud-gke-multi-cloud/latest/V1.AttachedCluster) resource will be created. Location names are formatted as `projects/<project-id>/locations/<region>`. See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more details on Google Cloud resource names. |
| `↳ validate_only` | `bool` If set, only validate the request, but do not actually import the cluster. |
| `↳ fleet_membership` | `string` Required. The name of the fleet membership resource to import. |
| `↳ 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"\]. |
| `↳ 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. |

### getParent

Required. The parent location where this
[AttachedCluster](https://docs.cloud.google.com/php/docs/reference/cloud-gke-multi-cloud/latest/V1.AttachedCluster) resource
will be created.

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

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

### setParent

Required. The parent location where this
[AttachedCluster](https://docs.cloud.google.com/php/docs/reference/cloud-gke-multi-cloud/latest/V1.AttachedCluster) resource
will be created.

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

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

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

### getValidateOnly

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

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

### setValidateOnly

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

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

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

### getFleetMembership

Required. The name of the fleet membership resource to import.

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

### setFleetMembership

Required. The name of the fleet membership resource to import.

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

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The parent location where this [AttachedCluster](https://docs.cloud.google.com/php/docs/reference/cloud-gke-multi-cloud/latest/V1.AttachedCluster) resource will be created. Location names are formatted as `projects/<project-id>/locations/<region>`. See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more details on Google Cloud resource names. Please see AttachedClustersClient::locationName() for help formatting this field. |
| `fleetMembership` | `string` Required. The name of the fleet membership resource to import. |

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