Cloud Spanner V1 Client - Class CreateInstanceMetadata (1.67.0)

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

Metadata type for the operation returned by CreateInstance.

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

Namespace

Google \ Cloud \ Spanner \ Admin \ Instance \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ instance Google\Cloud\Spanner\Admin\Instance\V1\Instance

The instance being created.

↳ start_time Google\Protobuf\Timestamp

The time at which the CreateInstance request was received.

↳ cancel_time Google\Protobuf\Timestamp

The time at which this operation was cancelled. If set, this operation is in the process of undoing itself (which is guaranteed to succeed) and cannot be cancelled again.

↳ end_time Google\Protobuf\Timestamp

The time at which this operation failed or was completed successfully.

getInstance

The instance being created.

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

hasInstance

clearInstance

setInstance

The instance being created.

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

getStartTime

The time at which the CreateInstance request was received.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasStartTime

clearStartTime

setStartTime

The time at which the CreateInstance request was received.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getCancelTime

The time at which this operation was cancelled. If set, this operation is in the process of undoing itself (which is guaranteed to succeed) and cannot be cancelled again.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCancelTime

clearCancelTime

setCancelTime

The time at which this operation was cancelled. If set, this operation is in the process of undoing itself (which is guaranteed to succeed) and cannot be cancelled again.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getEndTime

The time at which this operation failed or was completed successfully.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasEndTime

clearEndTime

setEndTime

The time at which this operation failed or was completed successfully.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this