Cloud Spanner V1 Client - Class UpdateDatabaseDdlMetadata (1.62.1)

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

Metadata type for the operation returned by UpdateDatabaseDdl.

Generated from protobuf message google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata

Namespace

Google \ Cloud \ Spanner \ Admin \ Database \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ database string

The database being modified.

↳ statements array

For an update this list contains all the statements. For an individual statement, this list contains only that statement.

↳ commit_timestamps array<Google\Protobuf\Timestamp>

Reports the commit timestamps of all statements that have succeeded so far, where commit_timestamps[i] is the commit timestamp for the statement statements[i].

↳ throttled bool

Output only. When true, indicates that the operation is throttled e.g. due to resource constraints. When resources become available the operation will resume and this field will be false again.

↳ progress array<Google\Cloud\Spanner\Admin\Database\V1\OperationProgress>

The progress of the UpdateDatabaseDdl operations. All DDL statements will have continuously updating progress, and progress[i] is the operation progress for statements[i]. Also, progress[i] will have start time and end time populated with commit timestamp of operation, as well as a progress of 100% once the operation has completed.

↳ actions array<Google\Cloud\Spanner\Admin\Database\V1\DdlStatementActionInfo>

The brief action info for the DDL statements. actions[i] is the brief info for statements[i].

getDatabase

The database being modified.

Returns
TypeDescription
string

setDatabase

The database being modified.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getStatements

For an update this list contains all the statements. For an individual statement, this list contains only that statement.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setStatements

For an update this list contains all the statements. For an individual statement, this list contains only that statement.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getCommitTimestamps

Reports the commit timestamps of all statements that have succeeded so far, where commit_timestamps[i] is the commit timestamp for the statement statements[i].

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setCommitTimestamps

Reports the commit timestamps of all statements that have succeeded so far, where commit_timestamps[i] is the commit timestamp for the statement statements[i].

Parameter
NameDescription
var array<Google\Protobuf\Timestamp>
Returns
TypeDescription
$this

getThrottled

Output only. When true, indicates that the operation is throttled e.g.

due to resource constraints. When resources become available the operation will resume and this field will be false again.

Returns
TypeDescription
bool

setThrottled

Output only. When true, indicates that the operation is throttled e.g.

due to resource constraints. When resources become available the operation will resume and this field will be false again.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getProgress

The progress of the UpdateDatabaseDdl operations. All DDL statements will have continuously updating progress, and progress[i] is the operation progress for statements[i]. Also, progress[i] will have start time and end time populated with commit timestamp of operation, as well as a progress of 100% once the operation has completed.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setProgress

The progress of the UpdateDatabaseDdl operations. All DDL statements will have continuously updating progress, and progress[i] is the operation progress for statements[i]. Also, progress[i] will have start time and end time populated with commit timestamp of operation, as well as a progress of 100% once the operation has completed.

Parameter
NameDescription
var array<Google\Cloud\Spanner\Admin\Database\V1\OperationProgress>
Returns
TypeDescription
$this

getActions

The brief action info for the DDL statements.

actions[i] is the brief info for statements[i].

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setActions

The brief action info for the DDL statements.

actions[i] is the brief info for statements[i].

Parameter
NameDescription
var array<Google\Cloud\Spanner\Admin\Database\V1\DdlStatementActionInfo>
Returns
TypeDescription
$this