#include <demote_master_context.h>
Database instance demote master context.
◆ DemoteMasterContext() [1/2]
| google_sqladmin_api::DemoteMasterContext::DemoteMasterContext |
( |
const Json::Value & |
storage | ) |
|
|
explicit |
Standard constructor for an immutable data object instance.
- Parameters
-
| [in] | storage | The underlying data storage for this instance. |
◆ DemoteMasterContext() [2/2]
| google_sqladmin_api::DemoteMasterContext::DemoteMasterContext |
( |
Json::Value * |
storage | ) |
|
|
explicit |
Standard constructor for a mutable data object instance.
- Parameters
-
| [in] | storage | The underlying data storage for this instance. |
◆ ~DemoteMasterContext()
| google_sqladmin_api::DemoteMasterContext::~DemoteMasterContext |
( |
| ) |
|
|
virtual |
◆ clear_kind()
| void google_sqladmin_api::DemoteMasterContext::clear_kind |
( |
| ) |
|
|
inline |
Clears the 'kind' attribute.
◆ clear_master_instance_name()
| void google_sqladmin_api::DemoteMasterContext::clear_master_instance_name |
( |
| ) |
|
|
inline |
Clears the 'masterInstanceName' attribute.
◆ clear_replica_configuration()
| void google_sqladmin_api::DemoteMasterContext::clear_replica_configuration |
( |
| ) |
|
|
inline |
Clears the 'replicaConfiguration' attribute.
◆ clear_verify_gtid_consistency()
| void google_sqladmin_api::DemoteMasterContext::clear_verify_gtid_consistency |
( |
| ) |
|
|
inline |
Clears the 'verifyGtidConsistency' attribute.
◆ get_kind()
| const StringPiece google_sqladmin_api::DemoteMasterContext::get_kind |
( |
| ) |
const |
|
inline |
Get the value of the 'kind' attribute.
◆ get_master_instance_name()
| const StringPiece google_sqladmin_api::DemoteMasterContext::get_master_instance_name |
( |
| ) |
const |
|
inline |
Get the value of the 'masterInstanceName' attribute.
◆ get_replica_configuration()
Get a reference to the value of the 'replicaConfiguration' attribute.
◆ get_verify_gtid_consistency()
| bool google_sqladmin_api::DemoteMasterContext::get_verify_gtid_consistency |
( |
| ) |
const |
|
inline |
Get the value of the 'verifyGtidConsistency' attribute.
◆ GetTypeName()
| const StringPiece google_sqladmin_api::DemoteMasterContext::GetTypeName |
( |
| ) |
const |
|
inline |
◆ has_kind()
| bool google_sqladmin_api::DemoteMasterContext::has_kind |
( |
| ) |
const |
|
inline |
Determine if the 'kind' attribute was set.
- Returns
- true if the '
kind' attribute was set.
◆ has_master_instance_name()
| bool google_sqladmin_api::DemoteMasterContext::has_master_instance_name |
( |
| ) |
const |
|
inline |
Determine if the 'masterInstanceName' attribute was set.
- Returns
- true if the '
masterInstanceName' attribute was set.
◆ has_replica_configuration()
| bool google_sqladmin_api::DemoteMasterContext::has_replica_configuration |
( |
| ) |
const |
|
inline |
Determine if the 'replicaConfiguration' attribute was set.
- Returns
- true if the '
replicaConfiguration' attribute was set.
◆ has_verify_gtid_consistency()
| bool google_sqladmin_api::DemoteMasterContext::has_verify_gtid_consistency |
( |
| ) |
const |
|
inline |
Determine if the 'verifyGtidConsistency' attribute was set.
- Returns
- true if the '
verifyGtidConsistency' attribute was set.
◆ mutable_replicaConfiguration()
Gets a reference to a mutable value of the 'replicaConfiguration' property.
Configuration specific to read-replicas replicating from the on-premises master.
- Returns
- The result can be modified to change the attribute value.
◆ New()
Creates a new default instance.
- Returns
- Ownership is passed back to the caller.
◆ set_kind()
| void google_sqladmin_api::DemoteMasterContext::set_kind |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'kind' attribute.
This is always sql::demoteMasterContext.
- Parameters
-
◆ set_master_instance_name()
| void google_sqladmin_api::DemoteMasterContext::set_master_instance_name |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'masterInstanceName' attribute.
The name of the instance which will act as on-premises master in the replication setup.
- Parameters
-
◆ set_verify_gtid_consistency()
| void google_sqladmin_api::DemoteMasterContext::set_verify_gtid_consistency |
( |
bool |
value | ) |
|
|
inline |
Change the 'verifyGtidConsistency' attribute.
Verify GTID consistency for demote operation. Default value: True. Second Generation instances only. Setting this flag to false enables you to bypass GTID consistency check between on-premises master and Cloud SQL instance during the demotion operation but also exposes you to the risk of future replication failures. Change the value only if you know the reason for the GTID divergence and are confident that doing so will not cause any replication issues.
- Parameters
-
The documentation for this class was generated from the following files: