Google Cloud Filestore V1 Client - Class CreateInstanceRequest (2.0.3)

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.

↳ instance 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
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.

Parameter
Name Description
var string
Returns
Type Description
$this

getInstance

Required. An instance resource

Returns
Type Description
Instance|null

hasInstance

clearInstance

setInstance

Required. An instance resource

Parameter
Name Description
var Instance
Returns
Type Description
$this

static::build

Parameters
Name Description
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 CloudFilestoreManagerClient::locationName() for help formatting this field.

instance 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
Type Description
CreateInstanceRequest