# Anthos Multi-Cloud V1 API - Class Google::Cloud::GkeMultiCloud::V1::CreateAttachedClusterRequest (v0.21.0)

0.21.0 (latest) 0.20.1 0.19.0 0.18.0 0.17.1 0.16.0 0.15.0 0.14.1 0.13.0 0.12.0 0.11.0 0.10.1 0.9.0 0.8.2 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Anthos Multi-Cloud V1 API class Google::Cloud::GkeMultiCloud::V1::CreateAttachedClusterRequest.

Request message for `AttachedClusters.CreateAttachedCluster` method.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #attached_cluster

    def attached_cluster() -> ::Google::Cloud::GkeMultiCloud::V1::AttachedCluster

**Returns**

- ([::Google::Cloud::GkeMultiCloud::V1::AttachedCluster](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_multi_cloud-v1/latest/Google-Cloud-GkeMultiCloud-V1-AttachedCluster)) --- Required. The specification of the [AttachedCluster](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_multi_cloud-v1/latest/Google-Cloud-GkeMultiCloud-V1-AttachedCluster "Google::Cloud::GkeMultiCloud::V1::AttachedCluster (class)") to create.

### #attached_cluster=

    def attached_cluster=(value) -> ::Google::Cloud::GkeMultiCloud::V1::AttachedCluster

**Parameter**

- **value** ([::Google::Cloud::GkeMultiCloud::V1::AttachedCluster](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_multi_cloud-v1/latest/Google-Cloud-GkeMultiCloud-V1-AttachedCluster)) --- Required. The specification of the [AttachedCluster](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_multi_cloud-v1/latest/Google-Cloud-GkeMultiCloud-V1-AttachedCluster "Google::Cloud::GkeMultiCloud::V1::AttachedCluster (class)") to create.
**Returns**

- ([::Google::Cloud::GkeMultiCloud::V1::AttachedCluster](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_multi_cloud-v1/latest/Google-Cloud-GkeMultiCloud-V1-AttachedCluster)) --- Required. The specification of the [AttachedCluster](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_multi_cloud-v1/latest/Google-Cloud-GkeMultiCloud-V1-AttachedCluster "Google::Cloud::GkeMultiCloud::V1::AttachedCluster (class)") to create.

### #attached_cluster_id

    def attached_cluster_id() -> ::String

**Returns**

- (::String) --- Required. A client provided ID the resource. Must be unique within the parent resource.

  The provided ID will be part of the
  [AttachedCluster](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_multi_cloud-v1/latest/Google-Cloud-GkeMultiCloud-V1-AttachedCluster "Google::Cloud::GkeMultiCloud::V1::AttachedCluster (class)") resource
  name formatted as
  `projects/<project-id>/locations/<region>/attachedClusters/<cluster-id>`.

  Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters.

### #attached_cluster_id=

    def attached_cluster_id=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. A client provided ID the resource. Must be unique within the parent resource.


  The provided ID will be part of the
  [AttachedCluster](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_multi_cloud-v1/latest/Google-Cloud-GkeMultiCloud-V1-AttachedCluster "Google::Cloud::GkeMultiCloud::V1::AttachedCluster (class)") resource
  name formatted as
  `projects/<project-id>/locations/<region>/attachedClusters/<cluster-id>`.

  Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters.
**Returns**

- (::String) --- Required. A client provided ID the resource. Must be unique within the parent resource.

  The provided ID will be part of the
  [AttachedCluster](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_multi_cloud-v1/latest/Google-Cloud-GkeMultiCloud-V1-AttachedCluster "Google::Cloud::GkeMultiCloud::V1::AttachedCluster (class)") resource
  name formatted as
  `projects/<project-id>/locations/<region>/attachedClusters/<cluster-id>`.

  Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters.

### #parent

    def parent() -> ::String

**Returns**

- (::String) --- Required. The parent location where this [AttachedCluster](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_multi_cloud-v1/latest/Google-Cloud-GkeMultiCloud-V1-AttachedCluster "Google::Cloud::GkeMultiCloud::V1::AttachedCluster (class)") 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.

### #parent=

    def parent=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The parent location where this [AttachedCluster](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_multi_cloud-v1/latest/Google-Cloud-GkeMultiCloud-V1-AttachedCluster "Google::Cloud::GkeMultiCloud::V1::AttachedCluster (class)") 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**

- (::String) --- Required. The parent location where this [AttachedCluster](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_multi_cloud-v1/latest/Google-Cloud-GkeMultiCloud-V1-AttachedCluster "Google::Cloud::GkeMultiCloud::V1::AttachedCluster (class)") 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

    def validate_only() -> ::Boolean

**Returns**

- (::Boolean) --- If set, only validate the request, but do not actually create the cluster.

### #validate_only=

    def validate_only=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- If set, only validate the request, but do not actually create the cluster.
**Returns**

- (::Boolean) --- If set, only validate the request, but do not actually create the cluster.