Cloud Spanner V1 Client - Class UpdateDatabaseRequest (1.82.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
Name Description
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
Type Description
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
Name Description
var Google\Cloud\Spanner\Admin\Database\V1\Database
Returns
Type Description
$this

getUpdateMask

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

Returns
Type Description
Google\Protobuf\FieldMask|null

hasUpdateMask

clearUpdateMask

setUpdateMask

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

Parameter
Name Description
var Google\Protobuf\FieldMask
Returns
Type Description
$this

static::build

Parameters
Name Description
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
Type Description
Google\Cloud\Spanner\Admin\Database\V1\UpdateDatabaseRequest