sqladmin  v1beta4
Classes | Public Member Functions | Static Public Member Functions | List of all members
google_sqladmin_api::DatabaseInstance Class Reference

#include <database_instance.h>

Inheritance diagram for google_sqladmin_api::DatabaseInstance:

Classes

class  DatabaseInstanceFailoverReplica
 

Public Member Functions

 DatabaseInstance (const Json::Value &storage)
 
 DatabaseInstance (Json::Value *storage)
 
virtual ~DatabaseInstance ()
 
const StringPiece GetTypeName () const
 
bool has_backend_type () const
 
void clear_backend_type ()
 
const StringPiece get_backend_type () const
 
void set_backend_type (const StringPiece &value)
 
bool has_connection_name () const
 
void clear_connection_name ()
 
const StringPiece get_connection_name () const
 
void set_connection_name (const StringPiece &value)
 
bool has_current_disk_size () const
 
void clear_current_disk_size ()
 
int64 get_current_disk_size () const
 
void set_current_disk_size (int64 value)
 
bool has_database_version () const
 
void clear_database_version ()
 
const StringPiece get_database_version () const
 
void set_database_version (const StringPiece &value)
 
bool has_disk_encryption_configuration () const
 
void clear_disk_encryption_configuration ()
 
const DiskEncryptionConfiguration get_disk_encryption_configuration () const
 
DiskEncryptionConfiguration mutable_diskEncryptionConfiguration ()
 
bool has_disk_encryption_status () const
 
void clear_disk_encryption_status ()
 
const DiskEncryptionStatus get_disk_encryption_status () const
 
DiskEncryptionStatus mutable_diskEncryptionStatus ()
 
bool has_etag () const
 
void clear_etag ()
 
const StringPiece get_etag () const
 
void set_etag (const StringPiece &value)
 
bool has_failover_replica () const
 
void clear_failover_replica ()
 
const DatabaseInstanceFailoverReplica get_failover_replica () const
 
DatabaseInstanceFailoverReplica mutable_failoverReplica ()
 
bool has_gce_zone () const
 
void clear_gce_zone ()
 
const StringPiece get_gce_zone () const
 
void set_gce_zone (const StringPiece &value)
 
bool has_instance_type () const
 
void clear_instance_type ()
 
const StringPiece get_instance_type () const
 
void set_instance_type (const StringPiece &value)
 
bool has_ip_addresses () const
 
void clear_ip_addresses ()
 
const client::JsonCppArray< IpMappingget_ip_addresses () const
 
client::JsonCppArray< IpMappingmutable_ipAddresses ()
 
bool has_ipv6_address () const
 
void clear_ipv6_address ()
 
const StringPiece get_ipv6_address () const
 
void set_ipv6_address (const StringPiece &value)
 
bool has_kind () const
 
void clear_kind ()
 
const StringPiece get_kind () const
 
void set_kind (const StringPiece &value)
 
bool has_master_instance_name () const
 
void clear_master_instance_name ()
 
const StringPiece get_master_instance_name () const
 
void set_master_instance_name (const StringPiece &value)
 
bool has_max_disk_size () const
 
void clear_max_disk_size ()
 
int64 get_max_disk_size () const
 
void set_max_disk_size (int64 value)
 
bool has_name () const
 
void clear_name ()
 
const StringPiece get_name () const
 
void set_name (const StringPiece &value)
 
bool has_on_premises_configuration () const
 
void clear_on_premises_configuration ()
 
const OnPremisesConfiguration get_on_premises_configuration () const
 
OnPremisesConfiguration mutable_onPremisesConfiguration ()
 
bool has_project () const
 
void clear_project ()
 
const StringPiece get_project () const
 
void set_project (const StringPiece &value)
 
bool has_region () const
 
void clear_region ()
 
const StringPiece get_region () const
 
void set_region (const StringPiece &value)
 
bool has_replica_configuration () const
 
void clear_replica_configuration ()
 
const ReplicaConfiguration get_replica_configuration () const
 
ReplicaConfiguration mutable_replicaConfiguration ()
 
bool has_replica_names () const
 
void clear_replica_names ()
 
const client::JsonCppArray< string > get_replica_names () const
 
client::JsonCppArray< string > mutable_replicaNames ()
 
bool has_root_password () const
 
void clear_root_password ()
 
const StringPiece get_root_password () const
 
void set_root_password (const StringPiece &value)
 
bool has_self_link () const
 
void clear_self_link ()
 
const StringPiece get_self_link () const
 
void set_self_link (const StringPiece &value)
 
bool has_server_ca_cert () const
 
void clear_server_ca_cert ()
 
const SslCert get_server_ca_cert () const
 
SslCert mutable_serverCaCert ()
 
bool has_service_account_email_address () const
 
void clear_service_account_email_address ()
 
const StringPiece get_service_account_email_address () const
 
void set_service_account_email_address (const StringPiece &value)
 
bool has_settings () const
 
void clear_settings ()
 
const Settings get_settings () const
 
Settings mutable_settings ()
 
bool has_state () const
 
void clear_state ()
 
const StringPiece get_state () const
 
void set_state (const StringPiece &value)
 
bool has_suspension_reason () const
 
void clear_suspension_reason ()
 
const client::JsonCppArray< string > get_suspension_reason () const
 
client::JsonCppArray< string > mutable_suspensionReason ()
 

Static Public Member Functions

static DatabaseInstanceNew ()
 

Detailed Description

A Cloud SQL instance resource.

Constructor & Destructor Documentation

◆ DatabaseInstance() [1/2]

google_sqladmin_api::DatabaseInstance::DatabaseInstance ( const Json::Value &  storage)
explicit

Standard constructor for an immutable data object instance.

Parameters
[in]storageThe underlying data storage for this instance.

◆ DatabaseInstance() [2/2]

google_sqladmin_api::DatabaseInstance::DatabaseInstance ( Json::Value *  storage)
explicit

Standard constructor for a mutable data object instance.

Parameters
[in]storageThe underlying data storage for this instance.

◆ ~DatabaseInstance()

google_sqladmin_api::DatabaseInstance::~DatabaseInstance ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_backend_type()

void google_sqladmin_api::DatabaseInstance::clear_backend_type ( )
inline

Clears the 'backendType' attribute.

◆ clear_connection_name()

void google_sqladmin_api::DatabaseInstance::clear_connection_name ( )
inline

Clears the 'connectionName' attribute.

◆ clear_current_disk_size()

void google_sqladmin_api::DatabaseInstance::clear_current_disk_size ( )
inline

Clears the 'currentDiskSize' attribute.

◆ clear_database_version()

void google_sqladmin_api::DatabaseInstance::clear_database_version ( )
inline

Clears the 'databaseVersion' attribute.

◆ clear_disk_encryption_configuration()

void google_sqladmin_api::DatabaseInstance::clear_disk_encryption_configuration ( )
inline

Clears the 'diskEncryptionConfiguration' attribute.

◆ clear_disk_encryption_status()

void google_sqladmin_api::DatabaseInstance::clear_disk_encryption_status ( )
inline

Clears the 'diskEncryptionStatus' attribute.

◆ clear_etag()

void google_sqladmin_api::DatabaseInstance::clear_etag ( )
inline

Clears the 'etag' attribute.

◆ clear_failover_replica()

void google_sqladmin_api::DatabaseInstance::clear_failover_replica ( )
inline

Clears the 'failoverReplica' attribute.

◆ clear_gce_zone()

void google_sqladmin_api::DatabaseInstance::clear_gce_zone ( )
inline

Clears the 'gceZone' attribute.

◆ clear_instance_type()

void google_sqladmin_api::DatabaseInstance::clear_instance_type ( )
inline

Clears the 'instanceType' attribute.

◆ clear_ip_addresses()

void google_sqladmin_api::DatabaseInstance::clear_ip_addresses ( )
inline

Clears the 'ipAddresses' attribute.

◆ clear_ipv6_address()

void google_sqladmin_api::DatabaseInstance::clear_ipv6_address ( )
inline

Clears the 'ipv6Address' attribute.

◆ clear_kind()

void google_sqladmin_api::DatabaseInstance::clear_kind ( )
inline

Clears the 'kind' attribute.

◆ clear_master_instance_name()

void google_sqladmin_api::DatabaseInstance::clear_master_instance_name ( )
inline

Clears the 'masterInstanceName' attribute.

◆ clear_max_disk_size()

void google_sqladmin_api::DatabaseInstance::clear_max_disk_size ( )
inline

Clears the 'maxDiskSize' attribute.

◆ clear_name()

void google_sqladmin_api::DatabaseInstance::clear_name ( )
inline

Clears the 'name' attribute.

◆ clear_on_premises_configuration()

void google_sqladmin_api::DatabaseInstance::clear_on_premises_configuration ( )
inline

Clears the 'onPremisesConfiguration' attribute.

◆ clear_project()

void google_sqladmin_api::DatabaseInstance::clear_project ( )
inline

Clears the 'project' attribute.

◆ clear_region()

void google_sqladmin_api::DatabaseInstance::clear_region ( )
inline

Clears the 'region' attribute.

◆ clear_replica_configuration()

void google_sqladmin_api::DatabaseInstance::clear_replica_configuration ( )
inline

Clears the 'replicaConfiguration' attribute.

◆ clear_replica_names()

void google_sqladmin_api::DatabaseInstance::clear_replica_names ( )
inline

Clears the 'replicaNames' attribute.

◆ clear_root_password()

void google_sqladmin_api::DatabaseInstance::clear_root_password ( )
inline

Clears the 'rootPassword' attribute.

◆ clear_self_link()

void google_sqladmin_api::DatabaseInstance::clear_self_link ( )
inline

Clears the 'selfLink' attribute.

◆ clear_server_ca_cert()

void google_sqladmin_api::DatabaseInstance::clear_server_ca_cert ( )
inline

Clears the 'serverCaCert' attribute.

◆ clear_service_account_email_address()

void google_sqladmin_api::DatabaseInstance::clear_service_account_email_address ( )
inline

Clears the 'serviceAccountEmailAddress' attribute.

◆ clear_settings()

void google_sqladmin_api::DatabaseInstance::clear_settings ( )
inline

Clears the 'settings' attribute.

◆ clear_state()

void google_sqladmin_api::DatabaseInstance::clear_state ( )
inline

Clears the 'state' attribute.

◆ clear_suspension_reason()

void google_sqladmin_api::DatabaseInstance::clear_suspension_reason ( )
inline

Clears the 'suspensionReason' attribute.

◆ get_backend_type()

const StringPiece google_sqladmin_api::DatabaseInstance::get_backend_type ( ) const
inline

Get the value of the 'backendType' attribute.

◆ get_connection_name()

const StringPiece google_sqladmin_api::DatabaseInstance::get_connection_name ( ) const
inline

Get the value of the 'connectionName' attribute.

◆ get_current_disk_size()

int64 google_sqladmin_api::DatabaseInstance::get_current_disk_size ( ) const
inline

Get the value of the 'currentDiskSize' attribute.

◆ get_database_version()

const StringPiece google_sqladmin_api::DatabaseInstance::get_database_version ( ) const
inline

Get the value of the 'databaseVersion' attribute.

◆ get_disk_encryption_configuration()

const DiskEncryptionConfiguration google_sqladmin_api::DatabaseInstance::get_disk_encryption_configuration ( ) const

Get a reference to the value of the 'diskEncryptionConfiguration' attribute.

◆ get_disk_encryption_status()

const DiskEncryptionStatus google_sqladmin_api::DatabaseInstance::get_disk_encryption_status ( ) const

Get a reference to the value of the 'diskEncryptionStatus' attribute.

◆ get_etag()

const StringPiece google_sqladmin_api::DatabaseInstance::get_etag ( ) const
inline

Get the value of the 'etag' attribute.

◆ get_failover_replica()

const DatabaseInstanceFailoverReplica google_sqladmin_api::DatabaseInstance::get_failover_replica ( ) const
inline

Get a reference to the value of the 'failoverReplica' attribute.

◆ get_gce_zone()

const StringPiece google_sqladmin_api::DatabaseInstance::get_gce_zone ( ) const
inline

Get the value of the 'gceZone' attribute.

◆ get_instance_type()

const StringPiece google_sqladmin_api::DatabaseInstance::get_instance_type ( ) const
inline

Get the value of the 'instanceType' attribute.

◆ get_ip_addresses()

const client::JsonCppArray<IpMapping > google_sqladmin_api::DatabaseInstance::get_ip_addresses ( ) const

Get a reference to the value of the 'ipAddresses' attribute.

◆ get_ipv6_address()

const StringPiece google_sqladmin_api::DatabaseInstance::get_ipv6_address ( ) const
inline

Get the value of the 'ipv6Address' attribute.

◆ get_kind()

const StringPiece google_sqladmin_api::DatabaseInstance::get_kind ( ) const
inline

Get the value of the 'kind' attribute.

◆ get_master_instance_name()

const StringPiece google_sqladmin_api::DatabaseInstance::get_master_instance_name ( ) const
inline

Get the value of the 'masterInstanceName' attribute.

◆ get_max_disk_size()

int64 google_sqladmin_api::DatabaseInstance::get_max_disk_size ( ) const
inline

Get the value of the 'maxDiskSize' attribute.

◆ get_name()

const StringPiece google_sqladmin_api::DatabaseInstance::get_name ( ) const
inline

Get the value of the 'name' attribute.

◆ get_on_premises_configuration()

const OnPremisesConfiguration google_sqladmin_api::DatabaseInstance::get_on_premises_configuration ( ) const

Get a reference to the value of the 'onPremisesConfiguration' attribute.

◆ get_project()

const StringPiece google_sqladmin_api::DatabaseInstance::get_project ( ) const
inline

Get the value of the 'project' attribute.

◆ get_region()

const StringPiece google_sqladmin_api::DatabaseInstance::get_region ( ) const
inline

Get the value of the 'region' attribute.

◆ get_replica_configuration()

const ReplicaConfiguration google_sqladmin_api::DatabaseInstance::get_replica_configuration ( ) const

Get a reference to the value of the 'replicaConfiguration' attribute.

◆ get_replica_names()

const client::JsonCppArray<string > google_sqladmin_api::DatabaseInstance::get_replica_names ( ) const
inline

Get a reference to the value of the 'replicaNames' attribute.

◆ get_root_password()

const StringPiece google_sqladmin_api::DatabaseInstance::get_root_password ( ) const
inline

Get the value of the 'rootPassword' attribute.

◆ get_self_link()

const StringPiece google_sqladmin_api::DatabaseInstance::get_self_link ( ) const
inline

Get the value of the 'selfLink' attribute.

◆ get_server_ca_cert()

const SslCert google_sqladmin_api::DatabaseInstance::get_server_ca_cert ( ) const

Get a reference to the value of the 'serverCaCert' attribute.

◆ get_service_account_email_address()

const StringPiece google_sqladmin_api::DatabaseInstance::get_service_account_email_address ( ) const
inline

Get the value of the 'serviceAccountEmailAddress' attribute.

◆ get_settings()

const Settings google_sqladmin_api::DatabaseInstance::get_settings ( ) const

Get a reference to the value of the 'settings' attribute.

◆ get_state()

const StringPiece google_sqladmin_api::DatabaseInstance::get_state ( ) const
inline

Get the value of the 'state' attribute.

◆ get_suspension_reason()

const client::JsonCppArray<string > google_sqladmin_api::DatabaseInstance::get_suspension_reason ( ) const
inline

Get a reference to the value of the 'suspensionReason' attribute.

◆ GetTypeName()

const StringPiece google_sqladmin_api::DatabaseInstance::GetTypeName ( ) const
inline

Returns a string denoting the type of this data object.

Returns
google_sqladmin_api::DatabaseInstance

◆ has_backend_type()

bool google_sqladmin_api::DatabaseInstance::has_backend_type ( ) const
inline

Determine if the 'backendType' attribute was set.

Returns
true if the 'backendType' attribute was set.

◆ has_connection_name()

bool google_sqladmin_api::DatabaseInstance::has_connection_name ( ) const
inline

Determine if the 'connectionName' attribute was set.

Returns
true if the 'connectionName' attribute was set.

◆ has_current_disk_size()

bool google_sqladmin_api::DatabaseInstance::has_current_disk_size ( ) const
inline

Determine if the 'currentDiskSize' attribute was set.

Returns
true if the 'currentDiskSize' attribute was set.

◆ has_database_version()

bool google_sqladmin_api::DatabaseInstance::has_database_version ( ) const
inline

Determine if the 'databaseVersion' attribute was set.

Returns
true if the 'databaseVersion' attribute was set.

◆ has_disk_encryption_configuration()

bool google_sqladmin_api::DatabaseInstance::has_disk_encryption_configuration ( ) const
inline

Determine if the 'diskEncryptionConfiguration' attribute was set.

Returns
true if the 'diskEncryptionConfiguration' attribute was set.

◆ has_disk_encryption_status()

bool google_sqladmin_api::DatabaseInstance::has_disk_encryption_status ( ) const
inline

Determine if the 'diskEncryptionStatus' attribute was set.

Returns
true if the 'diskEncryptionStatus' attribute was set.

◆ has_etag()

bool google_sqladmin_api::DatabaseInstance::has_etag ( ) const
inline

Determine if the 'etag' attribute was set.

Returns
true if the 'etag' attribute was set.

◆ has_failover_replica()

bool google_sqladmin_api::DatabaseInstance::has_failover_replica ( ) const
inline

Determine if the 'failoverReplica' attribute was set.

Returns
true if the 'failoverReplica' attribute was set.

◆ has_gce_zone()

bool google_sqladmin_api::DatabaseInstance::has_gce_zone ( ) const
inline

Determine if the 'gceZone' attribute was set.

Returns
true if the 'gceZone' attribute was set.

◆ has_instance_type()

bool google_sqladmin_api::DatabaseInstance::has_instance_type ( ) const
inline

Determine if the 'instanceType' attribute was set.

Returns
true if the 'instanceType' attribute was set.

◆ has_ip_addresses()

bool google_sqladmin_api::DatabaseInstance::has_ip_addresses ( ) const
inline

Determine if the 'ipAddresses' attribute was set.

Returns
true if the 'ipAddresses' attribute was set.

◆ has_ipv6_address()

bool google_sqladmin_api::DatabaseInstance::has_ipv6_address ( ) const
inline

Determine if the 'ipv6Address' attribute was set.

Returns
true if the 'ipv6Address' attribute was set.

◆ has_kind()

bool google_sqladmin_api::DatabaseInstance::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::DatabaseInstance::has_master_instance_name ( ) const
inline

Determine if the 'masterInstanceName' attribute was set.

Returns
true if the 'masterInstanceName' attribute was set.

◆ has_max_disk_size()

bool google_sqladmin_api::DatabaseInstance::has_max_disk_size ( ) const
inline

Determine if the 'maxDiskSize' attribute was set.

Returns
true if the 'maxDiskSize' attribute was set.

◆ has_name()

bool google_sqladmin_api::DatabaseInstance::has_name ( ) const
inline

Determine if the 'name' attribute was set.

Returns
true if the 'name' attribute was set.

◆ has_on_premises_configuration()

bool google_sqladmin_api::DatabaseInstance::has_on_premises_configuration ( ) const
inline

Determine if the 'onPremisesConfiguration' attribute was set.

Returns
true if the 'onPremisesConfiguration' attribute was set.

◆ has_project()

bool google_sqladmin_api::DatabaseInstance::has_project ( ) const
inline

Determine if the 'project' attribute was set.

Returns
true if the 'project' attribute was set.

◆ has_region()

bool google_sqladmin_api::DatabaseInstance::has_region ( ) const
inline

Determine if the 'region' attribute was set.

Returns
true if the 'region' attribute was set.

◆ has_replica_configuration()

bool google_sqladmin_api::DatabaseInstance::has_replica_configuration ( ) const
inline

Determine if the 'replicaConfiguration' attribute was set.

Returns
true if the 'replicaConfiguration' attribute was set.

◆ has_replica_names()

bool google_sqladmin_api::DatabaseInstance::has_replica_names ( ) const
inline

Determine if the 'replicaNames' attribute was set.

Returns
true if the 'replicaNames' attribute was set.

◆ has_root_password()

bool google_sqladmin_api::DatabaseInstance::has_root_password ( ) const
inline

Determine if the 'rootPassword' attribute was set.

Returns
true if the 'rootPassword' attribute was set.

◆ has_self_link()

bool google_sqladmin_api::DatabaseInstance::has_self_link ( ) const
inline

Determine if the 'selfLink' attribute was set.

Returns
true if the 'selfLink' attribute was set.

◆ has_server_ca_cert()

bool google_sqladmin_api::DatabaseInstance::has_server_ca_cert ( ) const
inline

Determine if the 'serverCaCert' attribute was set.

Returns
true if the 'serverCaCert' attribute was set.

◆ has_service_account_email_address()

bool google_sqladmin_api::DatabaseInstance::has_service_account_email_address ( ) const
inline

Determine if the 'serviceAccountEmailAddress' attribute was set.

Returns
true if the 'serviceAccountEmailAddress' attribute was set.

◆ has_settings()

bool google_sqladmin_api::DatabaseInstance::has_settings ( ) const
inline

Determine if the 'settings' attribute was set.

Returns
true if the 'settings' attribute was set.

◆ has_state()

bool google_sqladmin_api::DatabaseInstance::has_state ( ) const
inline

Determine if the 'state' attribute was set.

Returns
true if the 'state' attribute was set.

◆ has_suspension_reason()

bool google_sqladmin_api::DatabaseInstance::has_suspension_reason ( ) const
inline

Determine if the 'suspensionReason' attribute was set.

Returns
true if the 'suspensionReason' attribute was set.

◆ mutable_diskEncryptionConfiguration()

DiskEncryptionConfiguration google_sqladmin_api::DatabaseInstance::mutable_diskEncryptionConfiguration ( )

Gets a reference to a mutable value of the 'diskEncryptionConfiguration' property.

Disk encryption configuration specific to an instance. Applies only to Second Generation instances.

Returns
The result can be modified to change the attribute value.

◆ mutable_diskEncryptionStatus()

DiskEncryptionStatus google_sqladmin_api::DatabaseInstance::mutable_diskEncryptionStatus ( )

Gets a reference to a mutable value of the 'diskEncryptionStatus' property.

Disk encryption status specific to an instance. Applies only to Second Generation instances.

Returns
The result can be modified to change the attribute value.

◆ mutable_failoverReplica()

DatabaseInstanceFailoverReplica google_sqladmin_api::DatabaseInstance::mutable_failoverReplica ( )
inline

Gets a reference to a mutable value of the 'failoverReplica' property.

The name and status of the failover replica. This property is applicable only to Second Generation instances.

Returns
The result can be modified to change the attribute value.

◆ mutable_ipAddresses()

client::JsonCppArray<IpMapping > google_sqladmin_api::DatabaseInstance::mutable_ipAddresses ( )

Gets a reference to a mutable value of the 'ipAddresses' property.

The assigned IP addresses for the instance.

Returns
The result can be modified to change the attribute value.

◆ mutable_onPremisesConfiguration()

OnPremisesConfiguration google_sqladmin_api::DatabaseInstance::mutable_onPremisesConfiguration ( )

Gets a reference to a mutable value of the 'onPremisesConfiguration' property.

Configuration specific to on-premises instances.

Returns
The result can be modified to change the attribute value.

◆ mutable_replicaConfiguration()

ReplicaConfiguration google_sqladmin_api::DatabaseInstance::mutable_replicaConfiguration ( )

Gets a reference to a mutable value of the 'replicaConfiguration' property.

Configuration specific to failover replicas and read replicas.

Returns
The result can be modified to change the attribute value.

◆ mutable_replicaNames()

client::JsonCppArray<string > google_sqladmin_api::DatabaseInstance::mutable_replicaNames ( )
inline

Gets a reference to a mutable value of the 'replicaNames' property.

The replicas of the instance.

Returns
The result can be modified to change the attribute value.

◆ mutable_serverCaCert()

SslCert google_sqladmin_api::DatabaseInstance::mutable_serverCaCert ( )

Gets a reference to a mutable value of the 'serverCaCert' property.

SSL configuration.

Returns
The result can be modified to change the attribute value.

◆ mutable_settings()

Settings google_sqladmin_api::DatabaseInstance::mutable_settings ( )

Gets a reference to a mutable value of the 'settings' property.

The user settings.

Returns
The result can be modified to change the attribute value.

◆ mutable_suspensionReason()

client::JsonCppArray<string > google_sqladmin_api::DatabaseInstance::mutable_suspensionReason ( )
inline

Gets a reference to a mutable value of the 'suspensionReason' property.

If the instance state is SUSPENDED, the reason for the suspension.

Returns
The result can be modified to change the attribute value.

◆ New()

DatabaseInstance * google_sqladmin_api::DatabaseInstance::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_backend_type()

void google_sqladmin_api::DatabaseInstance::set_backend_type ( const StringPiece &  value)
inline

Change the 'backendType' attribute.

FIRST_GEN
First Generation instance. MySQL only.
SECOND_GEN
Second Generation instance or PostgreSQL instance.
EXTERNAL
A database server that is not managed by Google.

This property is read-only; use the tier property in the settings object to determine the database type and Second or First Generation.

Parameters
[in]valueThe new value.

◆ set_connection_name()

void google_sqladmin_api::DatabaseInstance::set_connection_name ( const StringPiece &  value)
inline

Change the 'connectionName' attribute.

Connection name of the Cloud SQL instance used in connection strings.

Parameters
[in]valueThe new value.

◆ set_current_disk_size()

void google_sqladmin_api::DatabaseInstance::set_current_disk_size ( int64  value)
inline

Change the 'currentDiskSize' attribute.

The current disk usage of the instance in bytes. This property has been deprecated. Users should use the "cloudsql.googleapis.com/database/disk/bytes_used" metric in Cloud Monitoring API instead. Please see this announcement for details.

Parameters
[in]valueThe new value.

◆ set_database_version()

void google_sqladmin_api::DatabaseInstance::set_database_version ( const StringPiece &  value)
inline

Change the 'databaseVersion' attribute.

The database engine type and version. The databaseVersion field can not be changed after instance creation. MySQL Second Generation instances: MYSQL_5_7 (default) or MYSQL_5_6. PostgreSQL instances: POSTGRES_9_6 (default) or POSTGRES_11 Beta. MySQL First Generation instances: MYSQL_5_6 (default) or MYSQL_5_5.

Parameters
[in]valueThe new value.

◆ set_etag()

void google_sqladmin_api::DatabaseInstance::set_etag ( const StringPiece &  value)
inline

Change the 'etag' attribute.

This field is deprecated and will be removed from a future version of the API. Use the settings.settingsVersion field instead.

Parameters
[in]valueThe new value.

◆ set_gce_zone()

void google_sqladmin_api::DatabaseInstance::set_gce_zone ( const StringPiece &  value)
inline

Change the 'gceZone' attribute.

The Compute Engine zone that the instance is currently serving from. This value could be different from the zone that was specified when the instance was created if the instance has failed over to its secondary zone.

Parameters
[in]valueThe new value.

◆ set_instance_type()

void google_sqladmin_api::DatabaseInstance::set_instance_type ( const StringPiece &  value)
inline

Change the 'instanceType' attribute.

The instance type. This can be one of the following.

CLOUD_SQL_INSTANCE
A Cloud SQL instance that is not replicating from a master.
ON_PREMISES_INSTANCE
An instance running on the customer's premises.
READ_REPLICA_INSTANCE
A Cloud SQL instance configured as a read-replica.
Parameters
[in]valueThe new value.

◆ set_ipv6_address()

void google_sqladmin_api::DatabaseInstance::set_ipv6_address ( const StringPiece &  value)
inline

Change the 'ipv6Address' attribute.

The IPv6 address assigned to the instance. This property is applicable only to First Generation instances.

Parameters
[in]valueThe new value.

◆ set_kind()

void google_sqladmin_api::DatabaseInstance::set_kind ( const StringPiece &  value)
inline

Change the 'kind' attribute.

This is always sql::instance.

Parameters
[in]valueThe new value.

◆ set_master_instance_name()

void google_sqladmin_api::DatabaseInstance::set_master_instance_name ( const StringPiece &  value)
inline

Change the 'masterInstanceName' attribute.

The name of the instance which will act as master in the replication setup.

Parameters
[in]valueThe new value.

◆ set_max_disk_size()

void google_sqladmin_api::DatabaseInstance::set_max_disk_size ( int64  value)
inline

Change the 'maxDiskSize' attribute.

The maximum disk size of the instance in bytes.

Parameters
[in]valueThe new value.

◆ set_name()

void google_sqladmin_api::DatabaseInstance::set_name ( const StringPiece &  value)
inline

Change the 'name' attribute.

Name of the Cloud SQL instance. This does not include the project ID.

Parameters
[in]valueThe new value.

◆ set_project()

void google_sqladmin_api::DatabaseInstance::set_project ( const StringPiece &  value)
inline

Change the 'project' attribute.

The project ID of the project containing the Cloud SQL instance. The Google apps domain is prefixed if applicable.

Parameters
[in]valueThe new value.

◆ set_region()

void google_sqladmin_api::DatabaseInstance::set_region ( const StringPiece &  value)
inline

Change the 'region' attribute.

The geographical region. Can be us-central (FIRST_GEN instances only), us- central1 (SECOND_GEN instances only), asia-east1 or europe-west1. Defaults to us-central or us-central1 depending on the instance type (First Generation or Second Generation). The region can not be changed after instance creation.

Parameters
[in]valueThe new value.

◆ set_root_password()

void google_sqladmin_api::DatabaseInstance::set_root_password ( const StringPiece &  value)
inline

Change the 'rootPassword' attribute.

Initial root password. Use only on creation.

Parameters
[in]valueThe new value.

◆ set_self_link()

void google_sqladmin_api::DatabaseInstance::set_self_link ( const StringPiece &  value)
inline

Change the 'selfLink' attribute.

The URI of this resource.

Parameters
[in]valueThe new value.

◆ set_service_account_email_address()

void google_sqladmin_api::DatabaseInstance::set_service_account_email_address ( const StringPiece &  value)
inline

Change the 'serviceAccountEmailAddress' attribute.

The service account email address assigned to the instance. This property is applicable only to Second Generation instances.

Parameters
[in]valueThe new value.

◆ set_state()

void google_sqladmin_api::DatabaseInstance::set_state ( const StringPiece &  value)
inline

Change the 'state' attribute.

The current serving state of the Cloud SQL instance. This can be one of the following.

RUNNABLE
The instance is running, or is ready to run when accessed.
SUSPENDED
The instance is not available, for example due to problems with billing.
PENDING_CREATE
The instance is being created.
MAINTENANCE
The instance is down for maintenance.
FAILED
The instance creation failed.
UNKNOWN_STATE
The state of the instance is unknown.
Parameters
[in]valueThe new value.

The documentation for this class was generated from the following files: