|
sqladmin
v1beta4
|
#include <replica_configuration.h>
Public Member Functions | |
| ReplicaConfiguration (const Json::Value &storage) | |
| ReplicaConfiguration (Json::Value *storage) | |
| virtual | ~ReplicaConfiguration () |
| const StringPiece | GetTypeName () const |
| bool | has_failover_target () const |
| void | clear_failover_target () |
| bool | get_failover_target () const |
| void | set_failover_target (bool value) |
| bool | has_kind () const |
| void | clear_kind () |
| const StringPiece | get_kind () const |
| void | set_kind (const StringPiece &value) |
| bool | has_mysql_replica_configuration () const |
| void | clear_mysql_replica_configuration () |
| const MySqlReplicaConfiguration | get_mysql_replica_configuration () const |
| MySqlReplicaConfiguration | mutable_mysqlReplicaConfiguration () |
Static Public Member Functions | |
| static ReplicaConfiguration * | New () |
Read-replica configuration for connecting to the master.
|
explicit |
Standard constructor for an immutable data object instance.
| [in] | storage | The underlying data storage for this instance. |
|
explicit |
Standard constructor for a mutable data object instance.
| [in] | storage | The underlying data storage for this instance. |
|
virtual |
Standard destructor.
|
inline |
Clears the 'failoverTarget' attribute.
|
inline |
Clears the 'kind' attribute.
|
inline |
Clears the 'mysqlReplicaConfiguration' attribute.
|
inline |
Get the value of the 'failoverTarget' attribute.
|
inline |
Get the value of the 'kind' attribute.
| const MySqlReplicaConfiguration google_sqladmin_api::ReplicaConfiguration::get_mysql_replica_configuration | ( | ) | const |
Get a reference to the value of the 'mysqlReplicaConfiguration' attribute.
|
inline |
Returns a string denoting the type of this data object.
|
inline |
Determine if the 'failoverTarget' attribute was set.
failoverTarget' attribute was set.
|
inline |
Determine if the 'kind' attribute was set.
kind' attribute was set.
|
inline |
Determine if the 'mysqlReplicaConfiguration' attribute was set.
mysqlReplicaConfiguration' attribute was set. | MySqlReplicaConfiguration google_sqladmin_api::ReplicaConfiguration::mutable_mysqlReplicaConfiguration | ( | ) |
Gets a reference to a mutable value of the 'mysqlReplicaConfiguration' property.
MySQL specific configuration when replicating from a MySQL on-premises master. Replication configuration information such as the username, password, certificates, and keys are not stored in the instance metadata. The configuration information is used only to set up the replication connection and is stored by MySQL in a file named master.info in the data directory.
|
static |
Creates a new default instance.
|
inline |
Change the 'failoverTarget' attribute.
Specifies if the replica is the failover target. If the field is set to true the replica will be designated as a failover replica. In case the master instance fails, the replica instance will be promoted as the new master instance. Only one replica can be specified as failover target, and the replica has to be in different zone with the master instance.
| [in] | value | The new value. |
|
inline |
Change the 'kind' attribute.
This is always sql::replicaConfiguration.
| [in] | value | The new value. |