pub struct DatabaseInstance {
Show 41 fields pub available_maintenance_versions: Option<Vec<String>>, pub backend_type: Option<String>, pub connection_name: Option<String>, pub create_time: Option<DateTime<Utc>>, pub current_disk_size: Option<i64>, pub database_installed_version: Option<String>, pub database_version: Option<String>, pub disk_encryption_configuration: Option<DiskEncryptionConfiguration>, pub disk_encryption_status: Option<DiskEncryptionStatus>, pub dns_name: Option<String>, pub etag: Option<String>, pub failover_replica: Option<DatabaseInstanceFailoverReplica>, pub gce_zone: Option<String>, pub instance_type: Option<String>, pub ip_addresses: Option<Vec<IpMapping>>, pub ipv6_address: Option<String>, pub kind: Option<String>, pub maintenance_version: Option<String>, pub master_instance_name: Option<String>, pub max_disk_size: Option<i64>, pub name: Option<String>, pub on_premises_configuration: Option<OnPremisesConfiguration>, pub out_of_disk_report: Option<SqlOutOfDiskReport>, pub primary_dns_name: Option<String>, pub project: Option<String>, pub psc_service_attachment_link: Option<String>, pub region: Option<String>, pub replica_configuration: Option<ReplicaConfiguration>, pub replica_names: Option<Vec<String>>, pub root_password: Option<String>, pub satisfies_pzs: Option<bool>, pub scheduled_maintenance: Option<SqlScheduledMaintenance>, pub secondary_gce_zone: Option<String>, pub self_link: Option<String>, pub server_ca_cert: Option<SslCert>, pub service_account_email_address: Option<String>, pub settings: Option<Settings>, pub sql_network_architecture: Option<String>, pub state: Option<String>, pub suspension_reason: Option<Vec<String>>, pub write_endpoint: Option<String>,
}
Expand description

A Cloud SQL instance resource.

§Activities

This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).

Fields§

§available_maintenance_versions: Option<Vec<String>>

Output only. List all maintenance versions applicable on the instance

§backend_type: Option<String>

The backend type. SECOND_GEN: Cloud SQL database 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.

§connection_name: Option<String>

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

§create_time: Option<DateTime<Utc>>

Output only. The time when the instance was created in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.

§current_disk_size: Option<i64>

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

§database_installed_version: Option<String>

Output only. Stores the current database version running on the instance including minor version such as MYSQL_8_0_18.

§database_version: Option<String>

The database engine type and version. The databaseVersion field cannot be changed after instance creation.

§disk_encryption_configuration: Option<DiskEncryptionConfiguration>

Disk encryption configuration specific to an instance.

§disk_encryption_status: Option<DiskEncryptionStatus>

Disk encryption status specific to an instance.

§dns_name: Option<String>

Output only. The dns name of the instance.

§etag: Option<String>

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

§failover_replica: Option<DatabaseInstanceFailoverReplica>

The name and status of the failover replica.

§gce_zone: Option<String>

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. WARNING: Changing this might restart the instance.

§instance_type: Option<String>

The instance type.

§ip_addresses: Option<Vec<IpMapping>>

The assigned IP addresses for the instance.

§ipv6_address: Option<String>

The IPv6 address assigned to the instance. (Deprecated) This property was applicable only to First Generation instances.

§kind: Option<String>

This is always sql#instance.

§maintenance_version: Option<String>

The current software version on the instance.

§master_instance_name: Option<String>

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

§max_disk_size: Option<i64>

The maximum disk size of the instance in bytes.

§name: Option<String>

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

§on_premises_configuration: Option<OnPremisesConfiguration>

Configuration specific to on-premises instances.

§out_of_disk_report: Option<SqlOutOfDiskReport>

This field represents the report generated by the proactive database wellness job for OutOfDisk issues. * Writers: * the proactive database wellness job for OOD. * Readers: * the proactive database wellness job

§primary_dns_name: Option<String>

Output only. DEPRECATED: please use write_endpoint instead.

§project: Option<String>

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

§psc_service_attachment_link: Option<String>

Output only. The link to service attachment of PSC instance.

§region: Option<String>

The geographical region of the Cloud SQL instance. It can be one of the regions where Cloud SQL operates: For example, asia-east1, europe-west1, and us-central1. The default value is us-central1.

§replica_configuration: Option<ReplicaConfiguration>

Configuration specific to failover replicas and read replicas.

§replica_names: Option<Vec<String>>

The replicas of the instance.

§root_password: Option<String>

Initial root password. Use only on creation. You must set root passwords before you can connect to PostgreSQL instances.

§satisfies_pzs: Option<bool>

The status indicating if instance satisfiesPzs. Reserved for future use.

§scheduled_maintenance: Option<SqlScheduledMaintenance>

The start time of any upcoming scheduled maintenance for this instance.

§secondary_gce_zone: Option<String>

The Compute Engine zone that the failover instance is currently serving from for a regional instance. 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/failover zone.

§self_link: Option<String>

The URI of this resource.

§server_ca_cert: Option<SslCert>

SSL configuration.

§service_account_email_address: Option<String>

The service account email address assigned to the instance. \This property is read-only.

§settings: Option<Settings>

The user settings.

§sql_network_architecture: Option<String>

The SQL network architecture for the instance.

§state: Option<String>

The current serving state of the Cloud SQL instance.

§suspension_reason: Option<Vec<String>>

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

§write_endpoint: Option<String>

Output only. The dns name of the primary instance in a replication group.

Trait Implementations§

source§

impl Clone for DatabaseInstance

source§

fn clone(&self) -> DatabaseInstance

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for DatabaseInstance

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for DatabaseInstance

source§

fn default() -> DatabaseInstance

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for DatabaseInstance

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Serialize for DatabaseInstance

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl RequestValue for DatabaseInstance

source§

impl ResponseResult for DatabaseInstance

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,