Cloud Bigtable V2 Client - Class CreateInstanceRequest (1.29.2)

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
data array

Optional. Data for populating the Message object.

↳ parent string

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

↳ instance_id string

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.

↳ instance Google\Cloud\Bigtable\Admin\V2\Instance

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

↳ clusters array|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
var string
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
var string
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
var Google\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
var array|Google\Protobuf\Internal\MapField
Returns
TypeDescription
$this

static::build

Parameters
NameDescription
parent string

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.

instanceId string

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.

instance Google\Cloud\Bigtable\Admin\V2\Instance

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

clusters array

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