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
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
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 |
↳ 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. Currently, only index creation statements will have a continuously updating progress. For non-index creation statements, |
getDatabase
The database being modified.
Generated from protobuf field string database = 1 [(.google.api.resource_reference) = {
Returns | |
---|---|
Type | Description |
string |
setDatabase
The database being modified.
Generated from protobuf field string database = 1 [(.google.api.resource_reference) = {
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getStatements
For an update this list contains all the statements. For an individual statement, this list contains only that statement.
Generated from protobuf field repeated string statements = 2;
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setStatements
For an update this list contains all the statements. For an individual statement, this list contains only that statement.
Generated from protobuf field repeated string statements = 2;
Parameter | |
---|---|
Name | Description |
var |
string[]
|
Returns | |
---|---|
Type | Description |
$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]
.
Generated from protobuf field repeated .google.protobuf.Timestamp commit_timestamps = 3;
Returns | |
---|---|
Type | Description |
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]
.
Generated from protobuf field repeated .google.protobuf.Timestamp commit_timestamps = 3;
Parameter | |
---|---|
Name | Description |
var |
array<Google\Protobuf\Timestamp>
|
Returns | |
---|---|
Type | Description |
$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.
Generated from protobuf field bool throttled = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
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.
Generated from protobuf field bool throttled = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
var |
bool
|
Returns | |
---|---|
Type | Description |
$this |
getProgress
The progress of the UpdateDatabaseDdl operations.
Currently, only index creation statements will have a continuously
updating progress.
For non-index creation statements, 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.
progress[i]
is the operation progress for statements[i]
.
Generated from protobuf field repeated .google.spanner.admin.database.v1.OperationProgress progress = 5;
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setProgress
The progress of the UpdateDatabaseDdl operations.
Currently, only index creation statements will have a continuously
updating progress.
For non-index creation statements, 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.
progress[i]
is the operation progress for statements[i]
.
Generated from protobuf field repeated .google.spanner.admin.database.v1.OperationProgress progress = 5;
Parameter | |
---|---|
Name | Description |
var |
array<Google\Cloud\Spanner\Admin\Database\V1\OperationProgress>
|
Returns | |
---|---|
Type | Description |
$this |