Reference documentation and code samples for the Google Cloud Redis Cluster V1 Client class CreateClusterRequest.
Request forCreateCluster.
Generated from protobuf messagegoogle.cloud.redis.cluster.v1.CreateClusterRequest
Namespace
Google \ Cloud \ Redis \ Cluster \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ parent
string
Required. The resource name of the cluster location using the form:projects/{project_id}/locations/{location_id}wherelocation_idrefers to a GCP region.
↳ cluster_id
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
Required. The resource name of the cluster location using the form:projects/{project_id}/locations/{location_id}wherelocation_idrefers to a GCP region.
Returns
Type
Description
string
setParent
Required. The resource name of the cluster location using the form:projects/{project_id}/locations/{location_id}wherelocation_idrefers to a GCP region.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getClusterId
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
Type
Description
string
setClusterId
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
Required. The resource name of the cluster location using the form:projects/{project_id}/locations/{location_id}wherelocation_idrefers to a GCP region. Please seeCloudRedisClusterClient::locationName()for help formatting this field.
[[["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-04 UTC."],[],[],null,["# Google Cloud Redis Cluster V1 Client - Class CreateClusterRequest (0.5.1)\n\nVersion latestkeyboard_arrow_down\n\n- [0.5.1 (latest)](/php/docs/reference/cloud-redis-cluster/latest/V1.CreateClusterRequest)\n- [0.5.0](/php/docs/reference/cloud-redis-cluster/0.5.0/V1.CreateClusterRequest)\n- [0.4.1](/php/docs/reference/cloud-redis-cluster/0.4.1/V1.CreateClusterRequest)\n- [0.3.2](/php/docs/reference/cloud-redis-cluster/0.3.2/V1.CreateClusterRequest)\n- [0.2.5](/php/docs/reference/cloud-redis-cluster/0.2.5/V1.CreateClusterRequest)\n- [0.1.0](/php/docs/reference/cloud-redis-cluster/0.1.0/V1.CreateClusterRequest) \nReference documentation and code samples for the Google Cloud Redis Cluster V1 Client class CreateClusterRequest.\n\nRequest for CreateCluster.\n\nGenerated from protobuf message `google.cloud.redis.cluster.v1.CreateClusterRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Redis \\\\ Cluster \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getParent\n\nRequired. The resource name of the cluster location using the form:\n`projects/{project_id}/locations/{location_id}`\nwhere `location_id` refers to a GCP region.\n\n### setParent\n\nRequired. The resource name of the cluster location using the form:\n`projects/{project_id}/locations/{location_id}`\nwhere `location_id` refers to a GCP region.\n\n### getClusterId\n\nRequired. The logical name of the Redis cluster in the customer project\nwith the following restrictions:\n\n- Must contain only lowercase letters, numbers, and hyphens.\n\n- Must start with a letter.\n\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### setClusterId\n\nRequired. The logical name of the Redis cluster in the customer project\nwith the following restrictions:\n\n- Must contain only lowercase letters, numbers, and hyphens.\n\n- Must start with a letter.\n\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### getCluster\n\nRequired. The cluster that is to be created.\n\n### hasCluster\n\n### clearCluster\n\n### setCluster\n\nRequired. The cluster that is to be created.\n\n### getRequestId\n\nIdempotent request UUID.\n\n### setRequestId\n\nIdempotent request UUID.\n\n### static::build"]]