#[non_exhaustive]pub struct LocationPreference {
pub follow_gae_application: String,
pub zone: String,
pub secondary_zone: String,
pub kind: String,
/* private fields */
}
Expand description
Preferred location. This specifies where a Cloud SQL instance is located. Note that if the preferred location is not available, the instance will be located as close as possible within the region. Only one location may be specified.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.follow_gae_application: String
The App Engine application to follow, it must be in the same region as the Cloud SQL instance. WARNING: Changing this might restart the instance.
zone: String
The preferred Compute Engine zone (for example: us-central1-a, us-central1-b, etc.). WARNING: Changing this might restart the instance.
secondary_zone: String
The preferred Compute Engine zone for the secondary/failover (for example: us-central1-a, us-central1-b, etc.). To disable this field, set it to ‘no_secondary_zone’.
kind: String
This is always sql#locationPreference
.
Implementations§
Source§impl LocationPreference
impl LocationPreference
pub fn new() -> Self
Sourcepub fn set_follow_gae_application<T: Into<String>>(self, v: T) -> Self
👎Deprecated
pub fn set_follow_gae_application<T: Into<String>>(self, v: T) -> Self
Sets the value of follow_gae_application.
Sourcepub fn set_secondary_zone<T: Into<String>>(self, v: T) -> Self
pub fn set_secondary_zone<T: Into<String>>(self, v: T) -> Self
Sets the value of secondary_zone.
Trait Implementations§
Source§impl Clone for LocationPreference
impl Clone for LocationPreference
Source§fn clone(&self) -> LocationPreference
fn clone(&self) -> LocationPreference
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read more