Reference documentation and code samples for the Cloud Spanner Instance Admin V1 API class Google::Cloud::Spanner::Admin::Instance::V1::CreateInstanceRequest.
(::String) — Required. The ID of the instance to create. Valid identifiers are of the
form [a-z][-a-z0-9]*[a-z0-9] and must be between 2 and 64 characters in
length.
#instance_id=
definstance_id=(value)->::String
Parameter
value (::String) — Required. The ID of the instance to create. Valid identifiers are of the
form [a-z][-a-z0-9]*[a-z0-9] and must be between 2 and 64 characters in
length.
Returns
(::String) — Required. The ID of the instance to create. Valid identifiers are of the
form [a-z][-a-z0-9]*[a-z0-9] and must be between 2 and 64 characters in
length.
#parent
defparent()->::String
Returns
(::String) — Required. The name of the project in which to create the instance. Values
are of the form projects/<project>.
#parent=
defparent=(value)->::String
Parameter
value (::String) — Required. The name of the project in which to create the instance. Values
are of the form projects/<project>.
Returns
(::String) — Required. The name of the project in which to create the instance. Values
are of the form projects/<project>.
[[["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-28 UTC."],[],[],null,["# Cloud Spanner Instance Admin V1 API - Class Google::Cloud::Spanner::Admin::Instance::V1::CreateInstanceRequest (v2.1.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.0 (latest)](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/latest/Google-Cloud-Spanner-Admin-Instance-V1-CreateInstanceRequest)\n- [2.0.1](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/2.0.1/Google-Cloud-Spanner-Admin-Instance-V1-CreateInstanceRequest)\n- [1.6.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/1.6.0/Google-Cloud-Spanner-Admin-Instance-V1-CreateInstanceRequest)\n- [1.5.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/1.5.0/Google-Cloud-Spanner-Admin-Instance-V1-CreateInstanceRequest)\n- [1.4.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/1.4.0/Google-Cloud-Spanner-Admin-Instance-V1-CreateInstanceRequest)\n- [1.3.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/1.3.0/Google-Cloud-Spanner-Admin-Instance-V1-CreateInstanceRequest)\n- [1.2.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/1.2.0/Google-Cloud-Spanner-Admin-Instance-V1-CreateInstanceRequest)\n- [1.1.1](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/1.1.1/Google-Cloud-Spanner-Admin-Instance-V1-CreateInstanceRequest)\n- [1.0.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/1.0.0/Google-Cloud-Spanner-Admin-Instance-V1-CreateInstanceRequest)\n- [0.16.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.16.0/Google-Cloud-Spanner-Admin-Instance-V1-CreateInstanceRequest)\n- [0.15.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.15.0/Google-Cloud-Spanner-Admin-Instance-V1-CreateInstanceRequest)\n- [0.14.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.14.0/Google-Cloud-Spanner-Admin-Instance-V1-CreateInstanceRequest)\n- [0.13.2](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.13.2/Google-Cloud-Spanner-Admin-Instance-V1-CreateInstanceRequest)\n- [0.12.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.12.0/Google-Cloud-Spanner-Admin-Instance-V1-CreateInstanceRequest)\n- [0.11.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.11.0/Google-Cloud-Spanner-Admin-Instance-V1-CreateInstanceRequest)\n- [0.10.2](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.10.2/Google-Cloud-Spanner-Admin-Instance-V1-CreateInstanceRequest)\n- [0.9.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.9.0/Google-Cloud-Spanner-Admin-Instance-V1-CreateInstanceRequest)\n- [0.8.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.8.0/Google-Cloud-Spanner-Admin-Instance-V1-CreateInstanceRequest)\n- [0.7.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.7.0/Google-Cloud-Spanner-Admin-Instance-V1-CreateInstanceRequest)\n- [0.6.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.6.0/Google-Cloud-Spanner-Admin-Instance-V1-CreateInstanceRequest)\n- [0.5.5](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.5.5/Google-Cloud-Spanner-Admin-Instance-V1-CreateInstanceRequest) \nReference documentation and code samples for the Cloud Spanner Instance Admin V1 API class Google::Cloud::Spanner::Admin::Instance::V1::CreateInstanceRequest.\n\nThe request for\n[CreateInstance](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/latest/Google-Cloud-Spanner-Admin-Instance-V1-InstanceAdmin-Client#Google__Cloud__Spanner__Admin__Instance__V1__InstanceAdmin__Client_create_instance_instance_ \"Google::Cloud::Spanner::Admin::Instance::V1::InstanceAdmin::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::Spanner::Admin::Instance::V1::Instance\n\n**Returns**\n\n- ([::Google::Cloud::Spanner::Admin::Instance::V1::Instance](./Google-Cloud-Spanner-Admin-Instance-V1-Instance)) --- Required. The instance to create. The name may be omitted, but if specified must be `\u003cparent\u003e/instances/\u003cinstance_id\u003e`.\n\n### #instance=\n\n def instance=(value) -\u003e ::Google::Cloud::Spanner::Admin::Instance::V1::Instance\n\n**Parameter**\n\n- **value** ([::Google::Cloud::Spanner::Admin::Instance::V1::Instance](./Google-Cloud-Spanner-Admin-Instance-V1-Instance)) --- Required. The instance to create. The name may be omitted, but if specified must be `\u003cparent\u003e/instances/\u003cinstance_id\u003e`. \n**Returns**\n\n- ([::Google::Cloud::Spanner::Admin::Instance::V1::Instance](./Google-Cloud-Spanner-Admin-Instance-V1-Instance)) --- Required. The instance to create. The name may be omitted, but if specified must be `\u003cparent\u003e/instances/\u003cinstance_id\u003e`.\n\n### #instance_id\n\n def instance_id() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Required. The ID of the instance to create. Valid identifiers are of the form `[a-z][-a-z0-9]*[a-z0-9]` and must be between 2 and 64 characters in length.\n\n### #instance_id=\n\n def instance_id=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Required. The ID of the instance to create. Valid identifiers are of the form `[a-z][-a-z0-9]*[a-z0-9]` and must be between 2 and 64 characters in length. \n**Returns**\n\n- (::String) --- Required. The ID of the instance to create. Valid identifiers are of the form `[a-z][-a-z0-9]*[a-z0-9]` and must be between 2 and 64 characters in length.\n\n### #parent\n\n def parent() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Required. The name of the project in which to create the instance. Values are of the form `projects/\u003cproject\u003e`.\n\n### #parent=\n\n def parent=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Required. The name of the project in which to create the instance. Values are of the form `projects/\u003cproject\u003e`. \n**Returns**\n\n- (::String) --- Required. The name of the project in which to create the instance. Values are of the form `projects/\u003cproject\u003e`."]]