Required. The logical name of the Redis instance 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-40 characters.
Must end with a number or a letter.
Must be unique within the customer project / location
#instance_id=
definstance_id=(value)->::String
Parameter
value (::String) —
Required. The logical name of the Redis instance 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-40 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 instance 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-40 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 instance 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 instance 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 instance 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-08-07 UTC."],[],[],null,["# Google Cloud Memorystore for Redis V1 API - Class Google::Cloud::Redis::V1::CreateInstanceRequest (v2.1.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.0 (latest)](/ruby/docs/reference/google-cloud-redis-v1/latest/Google-Cloud-Redis-V1-CreateInstanceRequest)\n- [2.0.1](/ruby/docs/reference/google-cloud-redis-v1/2.0.1/Google-Cloud-Redis-V1-CreateInstanceRequest)\n- [1.2.0](/ruby/docs/reference/google-cloud-redis-v1/1.2.0/Google-Cloud-Redis-V1-CreateInstanceRequest)\n- [1.1.0](/ruby/docs/reference/google-cloud-redis-v1/1.1.0/Google-Cloud-Redis-V1-CreateInstanceRequest)\n- [1.0.2](/ruby/docs/reference/google-cloud-redis-v1/1.0.2/Google-Cloud-Redis-V1-CreateInstanceRequest)\n- [0.14.0](/ruby/docs/reference/google-cloud-redis-v1/0.14.0/Google-Cloud-Redis-V1-CreateInstanceRequest)\n- [0.13.2](/ruby/docs/reference/google-cloud-redis-v1/0.13.2/Google-Cloud-Redis-V1-CreateInstanceRequest)\n- [0.12.0](/ruby/docs/reference/google-cloud-redis-v1/0.12.0/Google-Cloud-Redis-V1-CreateInstanceRequest)\n- [0.11.1](/ruby/docs/reference/google-cloud-redis-v1/0.11.1/Google-Cloud-Redis-V1-CreateInstanceRequest)\n- [0.10.0](/ruby/docs/reference/google-cloud-redis-v1/0.10.0/Google-Cloud-Redis-V1-CreateInstanceRequest)\n- [0.9.0](/ruby/docs/reference/google-cloud-redis-v1/0.9.0/Google-Cloud-Redis-V1-CreateInstanceRequest)\n- [0.8.0](/ruby/docs/reference/google-cloud-redis-v1/0.8.0/Google-Cloud-Redis-V1-CreateInstanceRequest)\n- [0.7.0](/ruby/docs/reference/google-cloud-redis-v1/0.7.0/Google-Cloud-Redis-V1-CreateInstanceRequest)\n- [0.6.1](/ruby/docs/reference/google-cloud-redis-v1/0.6.1/Google-Cloud-Redis-V1-CreateInstanceRequest) \nReference documentation and code samples for the Google Cloud Memorystore for Redis V1 API class Google::Cloud::Redis::V1::CreateInstanceRequest.\n\nRequest for\n[CreateInstance](/ruby/docs/reference/google-cloud-redis-v1/latest/Google-Cloud-Redis-V1-CloudRedis-Client#Google__Cloud__Redis__V1__CloudRedis__Client_create_instance_instance_ \"Google::Cloud::Redis::V1::CloudRedis::Client#create_instance (method)\"). \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### #instance\n\n def instance() -\u003e ::Google::Cloud::Redis::V1::Instance\n\n**Returns**\n\n- ([::Google::Cloud::Redis::V1::Instance](./Google-Cloud-Redis-V1-Instance)) --- Required. A Redis \\[Instance\\] resource\n\n### #instance=\n\n def instance=(value) -\u003e ::Google::Cloud::Redis::V1::Instance\n\n**Parameter**\n\n- **value** ([::Google::Cloud::Redis::V1::Instance](./Google-Cloud-Redis-V1-Instance)) --- Required. A Redis \\[Instance\\] resource \n**Returns**\n\n- ([::Google::Cloud::Redis::V1::Instance](./Google-Cloud-Redis-V1-Instance)) --- Required. A Redis \\[Instance\\] resource\n\n### #instance_id\n\n def instance_id() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Required. The logical name of the Redis instance 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-40 characters.\n - Must end with a number or a letter.\n - Must be unique within the customer project / location\n\n### #instance_id=\n\n def instance_id=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) ---\n\n Required. The logical name of the Redis instance 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-40 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 instance 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-40 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 instance 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 instance 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 instance location using the form: `projects/{project_id}/locations/{location_id}` where `location_id` refers to a GCP region."]]