Cloud Spanner V1 Client - Class UpdateDatabaseRequest (1.97.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 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
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 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 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
UpdateDatabaseRequest