Reference documentation and code samples for the Google Cloud Filestore V1 Client class CreateInstanceRequest.
CreateInstanceRequest creates an instance.
Generated from protobuf message google.cloud.filestore.v1.CreateInstanceRequest
Namespace
Google \ Cloud \ Filestore \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ parent
string
Required. The instance's project and location, in the format projects/{project_id}/locations/{location}. In Filestore, locations map to Google Cloud zones, for example us-west1-b.
↳ instance_id
string
Required. The name of the instance to create. The name must be unique for the specified project and location.
Required. The instance's project and location, in the format
projects/{project_id}/locations/{location}. In Filestore,
locations map to Google Cloud zones, for example us-west1-b.
Returns
Type
Description
string
setParent
Required. The instance's project and location, in the format
projects/{project_id}/locations/{location}. In Filestore,
locations map to Google Cloud zones, for example us-west1-b.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getInstanceId
Required. The name of the instance to create.
The name must be unique for the specified project and location.
Returns
Type
Description
string
setInstanceId
Required. The name of the instance to create.
The name must be unique for the specified project and location.
Required. The instance's project and location, in the format
projects/{project_id}/locations/{location}. In Filestore,
locations map to Google Cloud zones, for example us-west1-b. Please see
CloudFilestoreManagerClient::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 Filestore V1 Client - Class CreateInstanceRequest (2.1.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.1 (latest)](/php/docs/reference/cloud-filestore/latest/V1.CreateInstanceRequest)\n- [2.1.0](/php/docs/reference/cloud-filestore/2.1.0/V1.CreateInstanceRequest)\n- [2.0.4](/php/docs/reference/cloud-filestore/2.0.4/V1.CreateInstanceRequest)\n- [1.5.7](/php/docs/reference/cloud-filestore/1.5.7/V1.CreateInstanceRequest)\n- [1.4.0](/php/docs/reference/cloud-filestore/1.4.0/V1.CreateInstanceRequest)\n- [1.3.2](/php/docs/reference/cloud-filestore/1.3.2/V1.CreateInstanceRequest)\n- [1.2.1](/php/docs/reference/cloud-filestore/1.2.1/V1.CreateInstanceRequest)\n- [1.1.2](/php/docs/reference/cloud-filestore/1.1.2/V1.CreateInstanceRequest)\n- [1.0.3](/php/docs/reference/cloud-filestore/1.0.3/V1.CreateInstanceRequest) \nReference documentation and code samples for the Google Cloud Filestore V1 Client class CreateInstanceRequest.\n\nCreateInstanceRequest creates an instance.\n\nGenerated from protobuf message `google.cloud.filestore.v1.CreateInstanceRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Filestore \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getParent\n\nRequired. The instance's project and location, in the format\n`projects/{project_id}/locations/{location}`. In Filestore,\nlocations map to Google Cloud zones, for example **us-west1-b**.\n\n### setParent\n\nRequired. The instance's project and location, in the format\n`projects/{project_id}/locations/{location}`. In Filestore,\nlocations map to Google Cloud zones, for example **us-west1-b**.\n\n### getInstanceId\n\nRequired. The name of the instance to create.\n\nThe name must be unique for the specified project and location.\n\n### setInstanceId\n\nRequired. The name of the instance to create.\n\nThe name must be unique for the specified project and location.\n\n### getInstance\n\nRequired. An [instance resource](/php/docs/reference/cloud-filestore/latest/V1.Instance)\n\n### hasInstance\n\n### clearInstance\n\n### setInstance\n\nRequired. An [instance resource](/php/docs/reference/cloud-filestore/latest/V1.Instance)\n\n### static::build"]]