(::String) — Required. The ID to use for the cluster, which will become the final
component of the cluster's name. The ID must be 1-63 characters long, and
match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? to comply with
RFC 1035.
This value is structured like: my-cluster-id.
#cluster_id=
defcluster_id=(value)->::String
Parameter
value (::String) — Required. The ID to use for the cluster, which will become the final
component of the cluster's name. The ID must be 1-63 characters long, and
match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? to comply with
RFC 1035.
This value is structured like: my-cluster-id.
Returns
(::String) — Required. The ID to use for the cluster, which will become the final
component of the cluster's name. The ID must be 1-63 characters long, and
match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? to comply with
RFC 1035.
This value is structured like: my-cluster-id.
#parent
defparent()->::String
Returns
(::String) — Required. The parent region in which to create the cluster. Structured like
projects/{project}/locations/{location}.
#parent=
defparent=(value)->::String
Parameter
value (::String) — Required. The parent region in which to create the cluster. Structured like
projects/{project}/locations/{location}.
Returns
(::String) — Required. The parent region in which to create the cluster. Structured like
projects/{project}/locations/{location}.
#request_id
defrequest_id()->::String
Returns
(::String) — Optional. An optional request ID to identify requests. Specify a unique
request ID to avoid duplication of requests. If a request times out or
fails, retrying with the same ID allows the server to recognize the
previous attempt. For at least 60 minutes, the server ignores duplicate
requests bearing the same ID.
For example, consider a situation where you make an initial request and the
request times out. If you make the request again with the same request ID
within 60 minutes of the last request, the server checks if an original
operation with the same request ID was received. If so, the server ignores
the second request.
The request ID must be a valid UUID. A zero UUID is not supported
(00000000-0000-0000-0000-000000000000).
#request_id=
defrequest_id=(value)->::String
Parameter
value (::String) — Optional. An optional request ID to identify requests. Specify a unique
request ID to avoid duplication of requests. If a request times out or
fails, retrying with the same ID allows the server to recognize the
previous attempt. For at least 60 minutes, the server ignores duplicate
requests bearing the same ID.
For example, consider a situation where you make an initial request and the
request times out. If you make the request again with the same request ID
within 60 minutes of the last request, the server checks if an original
operation with the same request ID was received. If so, the server ignores
the second request.
The request ID must be a valid UUID. A zero UUID is not supported
(00000000-0000-0000-0000-000000000000).
Returns
(::String) — Optional. An optional request ID to identify requests. Specify a unique
request ID to avoid duplication of requests. If a request times out or
fails, retrying with the same ID allows the server to recognize the
previous attempt. For at least 60 minutes, the server ignores duplicate
requests bearing the same ID.
For example, consider a situation where you make an initial request and the
request times out. If you make the request again with the same request ID
within 60 minutes of the last request, the server checks if an original
operation with the same request ID was received. If so, the server ignores
the second request.
The request ID must be a valid UUID. A zero UUID is not supported
(00000000-0000-0000-0000-000000000000).
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],[],null,["# Managed Service for Apache Kafka V1 API - Class Google::Cloud::ManagedKafka::V1::CreateClusterRequest (v1.4.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.4.0 (latest)](/ruby/docs/reference/google-cloud-managed_kafka-v1/latest/Google-Cloud-ManagedKafka-V1-CreateClusterRequest)\n- [1.3.0](/ruby/docs/reference/google-cloud-managed_kafka-v1/1.3.0/Google-Cloud-ManagedKafka-V1-CreateClusterRequest)\n- [1.2.0](/ruby/docs/reference/google-cloud-managed_kafka-v1/1.2.0/Google-Cloud-ManagedKafka-V1-CreateClusterRequest)\n- [1.1.2](/ruby/docs/reference/google-cloud-managed_kafka-v1/1.1.2/Google-Cloud-ManagedKafka-V1-CreateClusterRequest)\n- [1.0.1](/ruby/docs/reference/google-cloud-managed_kafka-v1/1.0.1/Google-Cloud-ManagedKafka-V1-CreateClusterRequest)\n- [0.5.0](/ruby/docs/reference/google-cloud-managed_kafka-v1/0.5.0/Google-Cloud-ManagedKafka-V1-CreateClusterRequest)\n- [0.4.0](/ruby/docs/reference/google-cloud-managed_kafka-v1/0.4.0/Google-Cloud-ManagedKafka-V1-CreateClusterRequest)\n- [0.3.0](/ruby/docs/reference/google-cloud-managed_kafka-v1/0.3.0/Google-Cloud-ManagedKafka-V1-CreateClusterRequest)\n- [0.2.0](/ruby/docs/reference/google-cloud-managed_kafka-v1/0.2.0/Google-Cloud-ManagedKafka-V1-CreateClusterRequest)\n- [0.1.3](/ruby/docs/reference/google-cloud-managed_kafka-v1/0.1.3/Google-Cloud-ManagedKafka-V1-CreateClusterRequest) \nReference documentation and code samples for the Managed Service for Apache Kafka V1 API class Google::Cloud::ManagedKafka::V1::CreateClusterRequest.\n\nRequest for CreateCluster. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #cluster\n\n def cluster() -\u003e ::Google::Cloud::ManagedKafka::V1::Cluster\n\n**Returns**\n\n- ([::Google::Cloud::ManagedKafka::V1::Cluster](./Google-Cloud-ManagedKafka-V1-Cluster)) --- Required. Configuration of the cluster to create. Its `name` field is ignored.\n\n### #cluster=\n\n def cluster=(value) -\u003e ::Google::Cloud::ManagedKafka::V1::Cluster\n\n**Parameter**\n\n- **value** ([::Google::Cloud::ManagedKafka::V1::Cluster](./Google-Cloud-ManagedKafka-V1-Cluster)) --- Required. Configuration of the cluster to create. Its `name` field is ignored. \n**Returns**\n\n- ([::Google::Cloud::ManagedKafka::V1::Cluster](./Google-Cloud-ManagedKafka-V1-Cluster)) --- Required. Configuration of the cluster to create. Its `name` field is ignored.\n\n### #cluster_id\n\n def cluster_id() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Required. The ID to use for the cluster, which will become the final component of the cluster's name. The ID must be 1-63 characters long, and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` to comply with RFC 1035.\n\n\n This value is structured like: `my-cluster-id`.\n\n### #cluster_id=\n\n def cluster_id=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Required. The ID to use for the cluster, which will become the final component of the cluster's name. The ID must be 1-63 characters long, and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` to comply with RFC 1035.\n\n\nThis value is structured like: `my-cluster-id`. \n**Returns**\n\n- (::String) --- Required. The ID to use for the cluster, which will become the final component of the cluster's name. The ID must be 1-63 characters long, and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` to comply with RFC 1035.\n\n\n This value is structured like: `my-cluster-id`.\n\n### #parent\n\n def parent() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Required. The parent region in which to create the cluster. Structured like `projects/{project}/locations/{location}`.\n\n### #parent=\n\n def parent=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Required. The parent region in which to create the cluster. Structured like `projects/{project}/locations/{location}`. \n**Returns**\n\n- (::String) --- Required. The parent region in which to create the cluster. Structured like `projects/{project}/locations/{location}`.\n\n### #request_id\n\n def request_id() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Optional. An optional request ID to identify requests. Specify a unique request ID to avoid duplication of requests. If a request times out or fails, retrying with the same ID allows the server to recognize the previous attempt. For at least 60 minutes, the server ignores duplicate requests bearing the same ID.\n\n For example, consider a situation where you make an initial request and the\n request times out. If you make the request again with the same request ID\n within 60 minutes of the last request, the server checks if an original\n operation with the same request ID was received. If so, the server ignores\n the second request.\n\n The request ID must be a valid UUID. A zero UUID is not supported\n (00000000-0000-0000-0000-000000000000).\n\n### #request_id=\n\n def request_id=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Optional. An optional request ID to identify requests. Specify a unique request ID to avoid duplication of requests. If a request times out or fails, retrying with the same ID allows the server to recognize the previous attempt. For at least 60 minutes, the server ignores duplicate requests bearing the same ID.\n\n\n For example, consider a situation where you make an initial request and the\n request times out. If you make the request again with the same request ID\n within 60 minutes of the last request, the server checks if an original\n operation with the same request ID was received. If so, the server ignores\n the second request.\n\n The request ID must be a valid UUID. A zero UUID is not supported\n(00000000-0000-0000-0000-000000000000). \n**Returns**\n\n- (::String) --- Optional. An optional request ID to identify requests. Specify a unique request ID to avoid duplication of requests. If a request times out or fails, retrying with the same ID allows the server to recognize the previous attempt. For at least 60 minutes, the server ignores duplicate requests bearing the same ID.\n\n For example, consider a situation where you make an initial request and the\n request times out. If you make the request again with the same request ID\n within 60 minutes of the last request, the server checks if an original\n operation with the same request ID was received. If so, the server ignores\n the second request.\n\n The request ID must be a valid UUID. A zero UUID is not supported\n (00000000-0000-0000-0000-000000000000)."]]