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
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
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 |
↳ instance_id |
string
Required. The ID of the instance to create. Valid identifiers are of the form |
↳ instance |
Google\Cloud\Spanner\Admin\Instance\V1\Instance
Required. The instance to create. The name may be omitted, but if specified must be |
getParent
Required. The name of the project in which to create the instance. Values
are of the form projects/<project>
.
Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
Returns | |
---|---|
Type | Description |
string |
setParent
Required. The name of the project in which to create the instance. Values
are of the form projects/<project>
.
Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$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.
Generated from protobuf field string instance_id = 2 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
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.
Generated from protobuf field string instance_id = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getInstance
Required. The instance to create. The name may be omitted, but if
specified must be <parent>/instances/<instance_id>
.
Generated from protobuf field .google.spanner.admin.instance.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
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>
.
Generated from protobuf field .google.spanner.admin.instance.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\Spanner\Admin\Instance\V1\Instance
|
Returns | |
---|---|
Type | Description |
$this |