Reference documentation and code samples for the Google Cloud Memorystore V1beta Client class CreateInstanceRequest.
Request message forCreateInstance.
Generated from protobuf messagegoogle.cloud.memorystore.v1beta.CreateInstanceRequest
Namespace
Google \ Cloud \ Memorystore \ V1beta
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ parent
string
Required. The parent resource where this instance will be created. Format: projects/{project}/locations/{location}
↳ instance_id
string
Required. The ID to use for the instance, which will become the final component of the instance's resource name. This value is subject to the following restrictions: * * Must be 4-63 characters in length * * Must begin with a letter or digit * * Must contain only lowercase letters, digits, and hyphens * * Must not end with a hyphen * * Must be unique within a location
Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. 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, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
getParent
Required. The parent resource where this instance will be created.
Format: projects/{project}/locations/{location}
Returns
Type
Description
string
setParent
Required. The parent resource where this instance will be created.
Format: projects/{project}/locations/{location}
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getInstanceId
Required. The ID to use for the instance, which will become the final
component of the instance's resource name.
This value is subject to the following restrictions:
Must be 4-63 characters in length
Must begin with a letter or digit
Must contain only lowercase letters, digits, and hyphens
Must not end with a hyphen
Must be unique within a location
Returns
Type
Description
string
setInstanceId
Required. The ID to use for the instance, which will become the final
component of the instance's resource name.
This value is subject to the following restrictions:
Must be 4-63 characters in length
Must begin with a letter or digit
Must contain only lowercase letters, digits, and hyphens
Optional. An optional request ID to identify requests. Specify a unique
request ID so that if you must retry your request, the server will know to
ignore the request if it has already been completed. The server will
guarantee that for at least 60 minutes since the first request.
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, the server can check if original operation with the same request ID
was received, and if so, will ignore the second request. This prevents
clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is
not supported (00000000-0000-0000-0000-000000000000).
Returns
Type
Description
string
setRequestId
Optional. An optional request ID to identify requests. Specify a unique
request ID so that if you must retry your request, the server will know to
ignore the request if it has already been completed. The server will
guarantee that for at least 60 minutes since the first request.
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, the server can check if original operation with the same request ID
was received, and if so, will ignore the second request. This prevents
clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is
not supported (00000000-0000-0000-0000-000000000000).
Parameter
Name
Description
var
string
Returns
Type
Description
$this
static::build
Parameters
Name
Description
parent
string
Required. The parent resource where this instance will be created.
Format: projects/{project}/locations/{location}
Please seeMemorystoreClient::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 Memorystore V1beta Client - Class CreateInstanceRequest (0.4.2)\n\nVersion latestkeyboard_arrow_down\n\n- [0.4.2 (latest)](/php/docs/reference/cloud-memorystore/latest/V1beta.CreateInstanceRequest)\n- [0.4.1](/php/docs/reference/cloud-memorystore/0.4.1/V1beta.CreateInstanceRequest)\n- [0.3.0](/php/docs/reference/cloud-memorystore/0.3.0/V1beta.CreateInstanceRequest)\n- [0.2.0](/php/docs/reference/cloud-memorystore/0.2.0/V1beta.CreateInstanceRequest)\n- [0.1.1](/php/docs/reference/cloud-memorystore/0.1.1/V1beta.CreateInstanceRequest) \n| **Beta**\n|\n|\n| This library is covered by the [Pre-GA Offerings Terms](/terms/service-terms#1)\n| of the Terms of Service. Pre-GA libraries might have limited support,\n| and changes to pre-GA libraries might not be compatible with other pre-GA versions.\n| For more information, see the\n[launch stage descriptions](/products#product-launch-stages). \nReference documentation and code samples for the Google Cloud Memorystore V1beta Client class CreateInstanceRequest.\n\nRequest message for CreateInstance.\n\nGenerated from protobuf message `google.cloud.memorystore.v1beta.CreateInstanceRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Memorystore \\\\ V1beta\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getParent\n\nRequired. The parent resource where this instance will be created.\n\nFormat: projects/{project}/locations/{location}\n\n### setParent\n\nRequired. The parent resource where this instance will be created.\n\nFormat: projects/{project}/locations/{location}\n\n### getInstanceId\n\nRequired. The ID to use for the instance, which will become the final\ncomponent of the instance's resource name.\n\nThis value is subject to the following restrictions:\n\n- Must be 4-63 characters in length\n- Must begin with a letter or digit\n- Must contain only lowercase letters, digits, and hyphens\n- Must not end with a hyphen\n- Must be unique within a location\n\n### setInstanceId\n\nRequired. The ID to use for the instance, which will become the final\ncomponent of the instance's resource name.\n\nThis value is subject to the following restrictions:\n\n- Must be 4-63 characters in length\n- Must begin with a letter or digit\n- Must contain only lowercase letters, digits, and hyphens\n- Must not end with a hyphen\n- Must be unique within a location\n\n### getInstance\n\nRequired. The instance to create.\n\n### hasInstance\n\n### clearInstance\n\n### setInstance\n\nRequired. The instance to create.\n\n### getRequestId\n\nOptional. An optional request ID to identify requests. Specify a unique\nrequest ID so that if you must retry your request, the server will know to\nignore the request if it has already been completed. The server will\nguarantee that for at least 60 minutes since the first request.\n\nFor example, consider a situation where you make an initial request and the\nrequest times out. If you make the request again with the same request\nID, the server can check if original operation with the same request ID\nwas received, and if so, will ignore the second request. This prevents\nclients from accidentally creating duplicate commitments.\nThe request ID must be a valid UUID with the exception that zero UUID is\nnot supported (00000000-0000-0000-0000-000000000000).\n\n### setRequestId\n\nOptional. An optional request ID to identify requests. Specify a unique\nrequest ID so that if you must retry your request, the server will know to\nignore the request if it has already been completed. The server will\nguarantee that for at least 60 minutes since the first request.\n\nFor example, consider a situation where you make an initial request and the\nrequest times out. If you make the request again with the same request\nID, the server can check if original operation with the same request ID\nwas received, and if so, will ignore the second request. This prevents\nclients from accidentally creating duplicate commitments.\nThe request ID must be a valid UUID with the exception that zero UUID is\nnot supported (00000000-0000-0000-0000-000000000000).\n\n### static::build"]]