#[non_exhaustive]pub struct PoolNodeConfig {
pub name: Option<String>,
pub gce_zone: Option<String>,
pub ip_addresses: Vec<IpMapping>,
pub dns_name: Option<String>,
pub state: Option<SqlInstanceState>,
pub dns_names: Vec<DnsNameMapping>,
pub psc_service_attachment_link: Option<String>,
pub psc_auto_connections: Vec<PscAutoConnectionConfig>,
/* private fields */
}Expand description
Details of a single read pool node of a read pool.
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.name: Option<String>Output only. The name of the read pool node, to be used for retrieving metrics and logs.
gce_zone: Option<String>Output only. The zone of the read pool node.
ip_addresses: Vec<IpMapping>Output only. Mappings containing IP addresses that can be used to connect to the read pool node.
dns_name: Option<String>Output only. The DNS name of the read pool node.
state: Option<SqlInstanceState>Output only. The current state of the read pool node.
dns_names: Vec<DnsNameMapping>Output only. The list of DNS names used by this read pool node.
psc_service_attachment_link: Option<String>Output only. The Private Service Connect (PSC) service attachment of the read pool node.
psc_auto_connections: Vec<PscAutoConnectionConfig>Output only. The list of settings for requested automatically-setup Private Service Connect (PSC) consumer endpoints that can be used to connect to this read pool node.
Implementations§
Source§impl PoolNodeConfig
impl PoolNodeConfig
pub fn new() -> Self
Sourcepub fn set_or_clear_name<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_name<T>(self, v: Option<T>) -> Self
Sourcepub fn set_gce_zone<T>(self, v: T) -> Self
pub fn set_gce_zone<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_gce_zone<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_gce_zone<T>(self, v: Option<T>) -> Self
Sourcepub fn set_ip_addresses<T, V>(self, v: T) -> Self
pub fn set_ip_addresses<T, V>(self, v: T) -> Self
Sets the value of ip_addresses.
§Example
use google_cloud_sql_v1::model::IpMapping;
let x = PoolNodeConfig::new()
.set_ip_addresses([
IpMapping::default()/* use setters */,
IpMapping::default()/* use (different) setters */,
]);Sourcepub fn set_dns_name<T>(self, v: T) -> Self
pub fn set_dns_name<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_dns_name<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_dns_name<T>(self, v: Option<T>) -> Self
Sourcepub fn set_state<T>(self, v: T) -> Selfwhere
T: Into<SqlInstanceState>,
pub fn set_state<T>(self, v: T) -> Selfwhere
T: Into<SqlInstanceState>,
Sets the value of state.
§Example
use google_cloud_sql_v1::model::database_instance::SqlInstanceState;
let x0 = PoolNodeConfig::new().set_state(SqlInstanceState::Runnable);
let x1 = PoolNodeConfig::new().set_state(SqlInstanceState::Suspended);
let x2 = PoolNodeConfig::new().set_state(SqlInstanceState::PendingDelete);Sourcepub fn set_or_clear_state<T>(self, v: Option<T>) -> Selfwhere
T: Into<SqlInstanceState>,
pub fn set_or_clear_state<T>(self, v: Option<T>) -> Selfwhere
T: Into<SqlInstanceState>,
Sets or clears the value of state.
§Example
use google_cloud_sql_v1::model::database_instance::SqlInstanceState;
let x0 = PoolNodeConfig::new().set_or_clear_state(Some(SqlInstanceState::Runnable));
let x1 = PoolNodeConfig::new().set_or_clear_state(Some(SqlInstanceState::Suspended));
let x2 = PoolNodeConfig::new().set_or_clear_state(Some(SqlInstanceState::PendingDelete));
let x_none = PoolNodeConfig::new().set_or_clear_state(None::<SqlInstanceState>);Sourcepub fn set_dns_names<T, V>(self, v: T) -> Self
pub fn set_dns_names<T, V>(self, v: T) -> Self
Sourcepub fn set_psc_service_attachment_link<T>(self, v: T) -> Self
pub fn set_psc_service_attachment_link<T>(self, v: T) -> Self
Sets the value of psc_service_attachment_link.
§Example
let x = PoolNodeConfig::new().set_psc_service_attachment_link("example");Sourcepub fn set_or_clear_psc_service_attachment_link<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_psc_service_attachment_link<T>(self, v: Option<T>) -> Self
Sets or clears the value of psc_service_attachment_link.
§Example
let x = PoolNodeConfig::new().set_or_clear_psc_service_attachment_link(Some("example"));
let x = PoolNodeConfig::new().set_or_clear_psc_service_attachment_link(None::<String>);Sourcepub fn set_psc_auto_connections<T, V>(self, v: T) -> Self
pub fn set_psc_auto_connections<T, V>(self, v: T) -> Self
Sets the value of psc_auto_connections.
§Example
use google_cloud_sql_v1::model::PscAutoConnectionConfig;
let x = PoolNodeConfig::new()
.set_psc_auto_connections([
PscAutoConnectionConfig::default()/* use setters */,
PscAutoConnectionConfig::default()/* use (different) setters */,
]);Trait Implementations§
Source§impl Clone for PoolNodeConfig
impl Clone for PoolNodeConfig
Source§fn clone(&self) -> PoolNodeConfig
fn clone(&self) -> PoolNodeConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more