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

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
Name Description
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 InstancesDemoteRequest

Required. The request body.

getInstance

Required. Cloud SQL instance name.

Returns
Type Description
string

setInstance

Required. Cloud SQL instance name.

Parameter
Name Description
var string
Returns
Type Description
$this

getProject

Required. ID of the project that contains the instance.

Returns
Type Description
string

setProject

Required. ID of the project that contains the instance.

Parameter
Name Description
var string
Returns
Type Description
$this

getBody

Required. The request body.

Returns
Type Description
InstancesDemoteRequest|null

hasBody

clearBody

setBody

Required. The request body.

Parameter
Name Description
var InstancesDemoteRequest
Returns
Type Description
$this