Google Cloud Sql Admin V1 Client - Class SqlDatabasesUpdateRequest (1.6.0)

Reference documentation and code samples for the Google Cloud Sql Admin V1 Client class SqlDatabasesUpdateRequest.

Database update request.

Generated from protobuf messagegoogle.cloud.sql.v1.SqlDatabasesUpdateRequest

Namespace

Google \ Cloud \ Sql \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ databasestring

Name of the database to be updated in the instance.

↳ instancestring

Database instance ID. This does not include the project ID.

↳ projectstring

Project ID of the project that contains the instance.

↳ bodyDatabase

getDatabase

Name of the database to be updated in the instance.

Returns
TypeDescription
string

setDatabase

Name of the database to be updated in the instance.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getInstance

Database instance ID. This does not include the project ID.

Returns
TypeDescription
string

setInstance

Database instance ID. This does not include the project ID.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getProject

Project ID of the project that contains the instance.

Returns
TypeDescription
string

setProject

Project ID of the project that contains the instance.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getBody

Generated from protobuf field.google.cloud.sql.v1.Database body = 100;

Returns
TypeDescription
Database|null

hasBody

clearBody

setBody

Generated from protobuf field.google.cloud.sql.v1.Database body = 100;

Parameter
NameDescription
varDatabase
Returns
TypeDescription
$this

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-01-09 UTC.