Cloud Bigtable V2 Client - Class CreateInstanceRequest (1.28.3)

Reference documentation and code samples for the Cloud Bigtable V2 Client class CreateInstanceRequest.

Request message for BigtableInstanceAdmin.CreateInstance.

Generated from protobuf message google.bigtable.admin.v2.CreateInstanceRequest

Namespace

Google \ Cloud \ Bigtable \ Admin \ V2

Methods

__construct

Constructor.

Parameters
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ parentstring

Required. The unique name of the project in which to create the new instance. Values are of the form projects/{project}.

↳ instance_idstring

Required. The ID to be used when referring to the new instance within its project, e.g., just myinstance rather than projects/myproject/instances/myinstance.

↳ instanceGoogle\Cloud\Bigtable\Admin\V2\Instance

Required. The instance to create. Fields marked OutputOnly must be left blank.

↳ clustersarray|Google\Protobuf\Internal\MapField

Required. The clusters to be created within the instance, mapped by desired cluster ID, e.g., just mycluster rather than projects/myproject/instances/myinstance/clusters/mycluster. Fields marked OutputOnly must be left blank. Currently, at most four clusters can be specified.

getParent

Required. The unique name of the project in which to create the new instance.

Values are of the form projects/{project}.

Returns
TypeDescription
string

setParent

Required. The unique name of the project in which to create the new instance.

Values are of the form projects/{project}.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getInstanceId

Required. The ID to be used when referring to the new instance within its project, e.g., just myinstance rather than projects/myproject/instances/myinstance.

Returns
TypeDescription
string

setInstanceId

Required. The ID to be used when referring to the new instance within its project, e.g., just myinstance rather than projects/myproject/instances/myinstance.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getInstance

Required. The instance to create.

Fields marked OutputOnly must be left blank.

Returns
TypeDescription
Google\Cloud\Bigtable\Admin\V2\Instance|null

hasInstance

clearInstance

setInstance

Required. The instance to create.

Fields marked OutputOnly must be left blank.

Parameter
NameDescription
varGoogle\Cloud\Bigtable\Admin\V2\Instance
Returns
TypeDescription
$this

getClusters

Required. The clusters to be created within the instance, mapped by desired cluster ID, e.g., just mycluster rather than projects/myproject/instances/myinstance/clusters/mycluster.

Fields marked OutputOnly must be left blank. Currently, at most four clusters can be specified.

Returns
TypeDescription
Google\Protobuf\Internal\MapField

setClusters

Required. The clusters to be created within the instance, mapped by desired cluster ID, e.g., just mycluster rather than projects/myproject/instances/myinstance/clusters/mycluster.

Fields marked OutputOnly must be left blank. Currently, at most four clusters can be specified.

Parameter
NameDescription
vararray|Google\Protobuf\Internal\MapField
Returns
TypeDescription
$this

static::build

Parameters
NameDescription
parentstring

Required. The unique name of the project in which to create the new instance. Values are of the form projects/{project}. Please see Google\Cloud\Bigtable\Admin\V2\BigtableInstanceAdminClient::projectName() for help formatting this field.

instanceIdstring

Required. The ID to be used when referring to the new instance within its project, e.g., just myinstance rather than projects/myproject/instances/myinstance.

instanceGoogle\Cloud\Bigtable\Admin\V2\Instance

Required. The instance to create. Fields marked OutputOnly must be left blank.

clustersarray

Required. The clusters to be created within the instance, mapped by desired cluster ID, e.g., just mycluster rather than projects/myproject/instances/myinstance/clusters/mycluster. Fields marked OutputOnly must be left blank. Currently, at most four clusters can be specified.

Returns
TypeDescription
Google\Cloud\Bigtable\Admin\V2\CreateInstanceRequest