Google Cloud Sql Admin V1 Client - Class InstancesDemoteMasterRequest (0.8.0)

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

Database demote primary instance request.

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

Namespace

Google \ Cloud \ Sql \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ demote_master_context Google\Cloud\Sql\V1\DemoteMasterContext

Contains details about the demoteMaster operation.

getDemoteMasterContext

Contains details about the demoteMaster operation.

Returns
Type Description
Google\Cloud\Sql\V1\DemoteMasterContext|null

hasDemoteMasterContext

clearDemoteMasterContext

setDemoteMasterContext

Contains details about the demoteMaster operation.

Parameter
Name Description
var Google\Cloud\Sql\V1\DemoteMasterContext
Returns
Type Description
$this

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

Last updated 2025年11月21日 UTC.