#[non_exhaustive]pub struct SqlIpConfig {
pub enable_ipv4: Option<BoolValue>,
pub private_network: String,
pub allocated_ip_range: String,
pub require_ssl: Option<BoolValue>,
pub authorized_networks: Vec<SqlAclEntry>,
/* private fields */
}Expand description
IP Management configuration.
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.enable_ipv4: Option<BoolValue>Whether the instance should be assigned an IPv4 address or not.
private_network: StringThe resource link for the VPC network from which the Cloud SQL instance is
accessible for private IP. For example,
projects/myProject/global/networks/default. This setting can
be updated, but it cannot be removed after it is set.
allocated_ip_range: StringOptional. The name of the allocated IP address range for the private IP Cloud SQL instance. This name refers to an already allocated IP range address. If set, the instance IP address will be created in the allocated range. Note that this IP address range can’t be modified after the instance is created. If you change the VPC when configuring connectivity settings for the migration job, this field is not relevant.
require_ssl: Option<BoolValue>Whether SSL connections over IP should be enforced or not.
The list of external networks that are allowed to connect to the instance
using the IP. See
https://en.wikipedia.org/wiki/CIDR_notation#CIDR_notation, also known as
‘slash’ notation (e.g. 192.168.100.0/24).
Implementations§
Source§impl SqlIpConfig
impl SqlIpConfig
pub fn new() -> Self
Sourcepub fn set_enable_ipv4<T>(self, v: T) -> Self
pub fn set_enable_ipv4<T>(self, v: T) -> Self
Sets the value of enable_ipv4.
Sourcepub fn set_or_clear_enable_ipv4<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_enable_ipv4<T>(self, v: Option<T>) -> Self
Sets or clears the value of enable_ipv4.
Sourcepub fn set_private_network<T: Into<String>>(self, v: T) -> Self
pub fn set_private_network<T: Into<String>>(self, v: T) -> Self
Sets the value of private_network.
Sourcepub fn set_allocated_ip_range<T: Into<String>>(self, v: T) -> Self
pub fn set_allocated_ip_range<T: Into<String>>(self, v: T) -> Self
Sets the value of allocated_ip_range.
Sourcepub fn set_require_ssl<T>(self, v: T) -> Self
pub fn set_require_ssl<T>(self, v: T) -> Self
Sets the value of require_ssl.
Sourcepub fn set_or_clear_require_ssl<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_require_ssl<T>(self, v: Option<T>) -> Self
Sets or clears the value of require_ssl.
Sets the value of authorized_networks.
Trait Implementations§
Source§impl Clone for SqlIpConfig
impl Clone for SqlIpConfig
Source§fn clone(&self) -> SqlIpConfig
fn clone(&self) -> SqlIpConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more