#[non_exhaustive]pub struct PscAutoConnectionConfig {
pub consumer_project: String,
pub consumer_network: String,
pub ip_address: Option<String>,
pub status: Option<String>,
pub consumer_network_status: Option<String>,
/* private fields */
}Expand description
Settings for an automatically-setup Private Service Connect consumer endpoint that is used to connect to a Cloud SQL instance.
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.consumer_project: StringOptional. This is the project ID of consumer service project of this consumer endpoint.
Optional. This is only applicable if consumer_network is a shared vpc network.
consumer_network: StringOptional. The consumer network of this consumer endpoint. This must be a resource path that includes both the host project and the network name.
For example, projects/project1/global/networks/network1.
The consumer host project of this network might be different from the consumer service project.
ip_address: Option<String>The IP address of the consumer endpoint.
status: Option<String>The connection status of the consumer endpoint.
consumer_network_status: Option<String>The connection policy status of the consumer network.
Implementations§
Source§impl PscAutoConnectionConfig
impl PscAutoConnectionConfig
pub fn new() -> Self
Sourcepub fn set_consumer_project<T: Into<String>>(self, v: T) -> Self
pub fn set_consumer_project<T: Into<String>>(self, v: T) -> Self
Sets the value of consumer_project.
§Example
let x = PscAutoConnectionConfig::new().set_consumer_project("example");Sourcepub fn set_consumer_network<T: Into<String>>(self, v: T) -> Self
pub fn set_consumer_network<T: Into<String>>(self, v: T) -> Self
Sets the value of consumer_network.
§Example
let x = PscAutoConnectionConfig::new().set_consumer_network("example");Sourcepub fn set_ip_address<T>(self, v: T) -> Self
pub fn set_ip_address<T>(self, v: T) -> Self
Sets the value of ip_address.
§Example
let x = PscAutoConnectionConfig::new().set_ip_address("example");Sourcepub fn set_or_clear_ip_address<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_ip_address<T>(self, v: Option<T>) -> Self
Sets or clears the value of ip_address.
§Example
let x = PscAutoConnectionConfig::new().set_or_clear_ip_address(Some("example"));
let x = PscAutoConnectionConfig::new().set_or_clear_ip_address(None::<String>);Sourcepub fn set_status<T>(self, v: T) -> Self
pub fn set_status<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_status<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_status<T>(self, v: Option<T>) -> Self
Sourcepub fn set_consumer_network_status<T>(self, v: T) -> Self
pub fn set_consumer_network_status<T>(self, v: T) -> Self
Sets the value of consumer_network_status.
§Example
let x = PscAutoConnectionConfig::new().set_consumer_network_status("example");Sourcepub fn set_or_clear_consumer_network_status<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_consumer_network_status<T>(self, v: Option<T>) -> Self
Sets or clears the value of consumer_network_status.
§Example
let x = PscAutoConnectionConfig::new().set_or_clear_consumer_network_status(Some("example"));
let x = PscAutoConnectionConfig::new().set_or_clear_consumer_network_status(None::<String>);Trait Implementations§
Source§impl Clone for PscAutoConnectionConfig
impl Clone for PscAutoConnectionConfig
Source§fn clone(&self) -> PscAutoConnectionConfig
fn clone(&self) -> PscAutoConnectionConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more