Google Cloud Sql Admin V1 Client - Class SqlInstancesDemoteRequest (0.10.0)

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

Instance demote request.

Generated from protobuf message google.cloud.sql.v1.SqlInstancesDemoteRequest

Namespace

Google \ Cloud \ Sql \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ instance string

Required. Cloud SQL instance name.

↳ project string

Required. ID of the project that contains the instance.

↳ body Google\Cloud\Sql\V1\InstancesDemoteRequest

Required. The request body.

getInstance

Required. Cloud SQL instance name.

Returns
TypeDescription
string

setInstance

Required. Cloud SQL instance name.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getProject

Required. ID of the project that contains the instance.

Returns
TypeDescription
string

setProject

Required. ID of the project that contains the instance.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getBody

Required. The request body.

Returns
TypeDescription
Google\Cloud\Sql\V1\InstancesDemoteRequest|null

hasBody

clearBody

setBody

Required. The request body.

Parameter
NameDescription
var Google\Cloud\Sql\V1\InstancesDemoteRequest
Returns
TypeDescription
$this