Cloud Spanner V1 Client - Class CreateInstanceRequest (1.62.1)

Reference documentation and code samples for the Cloud Spanner V1 Client class CreateInstanceRequest.

The request for CreateInstance.

Generated from protobuf message google.spanner.admin.instance.v1.CreateInstanceRequest

Namespace

Google \ Cloud \ Spanner \ Admin \ Instance \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ parent string

Required. The name of the project in which to create the instance. Values are of the form projects/<project>.

↳ instance_id 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 Google\Cloud\Spanner\Admin\Instance\V1\Instance

Required. The instance to create. The name may be omitted, but if specified must be <parent>/instances/<instance_id>.

getParent

Required. The name of the project in which to create the instance. Values are of the form projects/<project>.

Returns
TypeDescription
string

setParent

Required. The name of the project in which to create the instance. Values are of the form projects/<project>.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getInstanceId

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
TypeDescription
string

setInstanceId

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.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getInstance

Required. The instance to create. The name may be omitted, but if specified must be <parent>/instances/<instance_id>.

Returns
TypeDescription
Google\Cloud\Spanner\Admin\Instance\V1\Instance|null

hasInstance

clearInstance

setInstance

Required. The instance to create. The name may be omitted, but if specified must be <parent>/instances/<instance_id>.

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

static::build

Parameters
NameDescription
parent string

Required. The name of the project in which to create the instance. Values are of the form projects/<project>. Please see Google\Cloud\Spanner\Admin\Instance\V1\InstanceAdminClient::projectName() for help formatting this field.

instanceId 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 Google\Cloud\Spanner\Admin\Instance\V1\Instance

Required. The instance to create. The name may be omitted, but if specified must be <parent>/instances/<instance_id>.

Returns
TypeDescription
Google\Cloud\Spanner\Admin\Instance\V1\CreateInstanceRequest