Google Cloud Filestore V1 Client - Class CreateInstanceRequest (1.4.0)

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
NameDescription
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.

↳ instance Google\Cloud\Filestore\V1\Instance

Required. An instance resource

getParent

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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$this

getInstanceId

Required. The name of the instance to create.

The name must be unique for the specified project and location.

Returns
TypeDescription
string

setInstanceId

Required. The name of the instance to create.

The name must be unique for the specified project and location.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getInstance

Required. An instance resource

Returns
TypeDescription
Google\Cloud\Filestore\V1\Instance|null

hasInstance

clearInstance

setInstance

Required. An instance resource

Parameter
NameDescription
var Google\Cloud\Filestore\V1\Instance
Returns
TypeDescription
$this

static::build

Parameters
NameDescription
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. Please see Google\Cloud\Filestore\V1\CloudFilestoreManagerClient::locationName() for help formatting this field.

instance Google\Cloud\Filestore\V1\Instance

Required. An instance resource

instanceId string

Required. The name of the instance to create. The name must be unique for the specified project and location.

Returns
TypeDescription
Google\Cloud\Filestore\V1\CreateInstanceRequest