Reference documentation and code samples for the Google Cloud Memorystore for Redis V1 API class Google::Cloud::Redis::Cluster::V1::CreateClusterRequest.
Request for [CreateCluster][CloudRedis.CreateCluster].
Required. The logical name of the Redis cluster in the customer project
with the following restrictions:
Must contain only lowercase letters, numbers, and hyphens.
Must start with a letter.
Must be between 1-63 characters.
Must end with a number or a letter.
Must be unique within the customer project / location
#cluster_id=
defcluster_id=(value)->::String
Parameter
value (::String) —
Required. The logical name of the Redis cluster in the customer project
with the following restrictions:
Must contain only lowercase letters, numbers, and hyphens.
Must start with a letter.
Must be between 1-63 characters.
Must end with a number or a letter.
Must be unique within the customer project / location
Returns
(::String) —
Required. The logical name of the Redis cluster in the customer project
with the following restrictions:
Must contain only lowercase letters, numbers, and hyphens.
Must start with a letter.
Must be between 1-63 characters.
Must end with a number or a letter.
Must be unique within the customer project / location
#parent
defparent()->::String
Returns
(::String) — Required. The resource name of the cluster location using the form:
projects/{project_id}/locations/{location_id}
where location_id refers to a GCP region.
#parent=
defparent=(value)->::String
Parameter
value (::String) — Required. The resource name of the cluster location using the form:
projects/{project_id}/locations/{location_id}
where location_id refers to a GCP region.
Returns
(::String) — Required. The resource name of the cluster location using the form:
projects/{project_id}/locations/{location_id}
where location_id refers to a GCP region.
[[["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,["# Google Cloud Memorystore for Redis V1 API - Class Google::Cloud::Redis::Cluster::V1::CreateClusterRequest (v1.1.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.1.0 (latest)](/ruby/docs/reference/google-cloud-redis-cluster-v1/latest/Google-Cloud-Redis-Cluster-V1-CreateClusterRequest)\n- [1.0.1](/ruby/docs/reference/google-cloud-redis-cluster-v1/1.0.1/Google-Cloud-Redis-Cluster-V1-CreateClusterRequest)\n- [0.6.0](/ruby/docs/reference/google-cloud-redis-cluster-v1/0.6.0/Google-Cloud-Redis-Cluster-V1-CreateClusterRequest)\n- [0.5.0](/ruby/docs/reference/google-cloud-redis-cluster-v1/0.5.0/Google-Cloud-Redis-Cluster-V1-CreateClusterRequest)\n- [0.4.2](/ruby/docs/reference/google-cloud-redis-cluster-v1/0.4.2/Google-Cloud-Redis-Cluster-V1-CreateClusterRequest)\n- [0.3.0](/ruby/docs/reference/google-cloud-redis-cluster-v1/0.3.0/Google-Cloud-Redis-Cluster-V1-CreateClusterRequest)\n- [0.2.2](/ruby/docs/reference/google-cloud-redis-cluster-v1/0.2.2/Google-Cloud-Redis-Cluster-V1-CreateClusterRequest)\n- [0.1.0](/ruby/docs/reference/google-cloud-redis-cluster-v1/0.1.0/Google-Cloud-Redis-Cluster-V1-CreateClusterRequest) \nReference documentation and code samples for the Google Cloud Memorystore for Redis V1 API class Google::Cloud::Redis::Cluster::V1::CreateClusterRequest.\n\nRequest for \\[CreateCluster\\]\\[CloudRedis.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::Redis::Cluster::V1::Cluster\n\n**Returns**\n\n- ([::Google::Cloud::Redis::Cluster::V1::Cluster](./Google-Cloud-Redis-Cluster-V1-Cluster)) --- Required. The cluster that is to be created.\n\n### #cluster=\n\n def cluster=(value) -\u003e ::Google::Cloud::Redis::Cluster::V1::Cluster\n\n**Parameter**\n\n- **value** ([::Google::Cloud::Redis::Cluster::V1::Cluster](./Google-Cloud-Redis-Cluster-V1-Cluster)) --- Required. The cluster that is to be created. \n**Returns**\n\n- ([::Google::Cloud::Redis::Cluster::V1::Cluster](./Google-Cloud-Redis-Cluster-V1-Cluster)) --- Required. The cluster that is to be created.\n\n### #cluster_id\n\n def cluster_id() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Required. The logical name of the Redis cluster in the customer project\n with the following restrictions:\n\n - Must contain only lowercase letters, numbers, and hyphens.\n - Must start with a letter.\n - Must be between 1-63 characters.\n - Must end with a number or a letter.\n - Must be unique within the customer project / location\n\n### #cluster_id=\n\n def cluster_id=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) ---\n\n Required. The logical name of the Redis cluster in the customer project\n with the following restrictions:\n - Must contain only lowercase letters, numbers, and hyphens.\n - Must start with a letter.\n - Must be between 1-63 characters.\n - Must end with a number or a letter.\n- Must be unique within the customer project / location \n**Returns**\n\n- (::String) --- Required. The logical name of the Redis cluster in the customer project\n with the following restrictions:\n\n - Must contain only lowercase letters, numbers, and hyphens.\n - Must start with a letter.\n - Must be between 1-63 characters.\n - Must end with a number or a letter.\n - Must be unique within the customer project / location\n\n### #parent\n\n def parent() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Required. The resource name of the cluster location using the form: `projects/{project_id}/locations/{location_id}` where `location_id` refers to a GCP region.\n\n### #parent=\n\n def parent=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Required. The resource name of the cluster location using the form: `projects/{project_id}/locations/{location_id}` where `location_id` refers to a GCP region. \n**Returns**\n\n- (::String) --- Required. The resource name of the cluster location using the form: `projects/{project_id}/locations/{location_id}` where `location_id` refers to a GCP region.\n\n### #request_id\n\n def request_id() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Idempotent request UUID.\n\n### #request_id=\n\n def request_id=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Idempotent request UUID. \n**Returns**\n\n- (::String) --- Idempotent request UUID."]]