Cloud Spanner V1 Client - Class UpdateDatabaseRequest (1.61.0)

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

The request for UpdateDatabase.

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

Namespace

Google \ Cloud \ Spanner \ Admin \ Database \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ database Google\Cloud\Spanner\Admin\Database\V1\Database

Required. The database to update. The name field of the database is of the form projects/<project>/instances/<instance>/databases/<database>.

↳ update_mask Google\Protobuf\FieldMask

Required. The list of fields to update. Currently, only enable_drop_protection field can be updated.

getDatabase

Required. The database to update.

The name field of the database is of the form projects/<project>/instances/<instance>/databases/<database>.

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

hasDatabase

clearDatabase

setDatabase

Required. The database to update.

The name field of the database is of the form projects/<project>/instances/<instance>/databases/<database>.

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

getUpdateMask

Required. The list of fields to update. Currently, only enable_drop_protection field can be updated.

Returns
TypeDescription
Google\Protobuf\FieldMask|null

hasUpdateMask

clearUpdateMask

setUpdateMask

Required. The list of fields to update. Currently, only enable_drop_protection field can be updated.

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

static::build

Parameters
NameDescription
database Google\Cloud\Spanner\Admin\Database\V1\Database

Required. The database to update. The name field of the database is of the form projects/<project>/instances/<instance>/databases/<database>.

updateMask Google\Protobuf\FieldMask

Required. The list of fields to update. Currently, only enable_drop_protection field can be updated.

Returns
TypeDescription
Google\Cloud\Spanner\Admin\Database\V1\UpdateDatabaseRequest