Struct google_api_proto::google::cloud::sql::v1beta4::IpConfiguration
source · pub struct IpConfiguration {
pub ipv4_enabled: Option<bool>,
pub private_network: String,
pub require_ssl: Option<bool>,
pub authorized_networks: Vec<AclEntry>,
pub allocated_ip_range: String,
pub enable_private_path_for_google_cloud_services: Option<bool>,
pub ssl_mode: i32,
pub psc_config: Option<PscConfig>,
}
Expand description
IP Management configuration.
Fields§
§ipv4_enabled: Option<bool>
Whether the instance is assigned a public IP address or not.
private_network: String
The 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.
require_ssl: Option<bool>
Use ssl_mode
instead.
Whether SSL/TLS connections over IP are enforced.
If set to false, then allow both non-SSL/non-TLS and SSL/TLS connections.
For SSL/TLS connections, the client certificate won’t be verified. If
set to true, then only allow connections encrypted with SSL/TLS and with
valid client certificates. If you want to enforce SSL/TLS without enforcing
the requirement for valid client certificates, then use the ssl_mode
flag
instead of the legacy require_ssl
flag.
The list of external networks that are allowed to connect to the instance
using the IP. In ‘CIDR’ notation, also known as ‘slash’ notation (for
example: 157.197.200.0/24
).
allocated_ip_range: String
The name of the allocated ip range for the private ip Cloud SQL instance.
For example: “google-managed-services-default”. If set, the instance ip
will be created in the allocated range. The range name must comply with
RFC 1035. Specifically, the name
must be 1-63 characters long and match the regular expression
[a-z](\[-a-z0-9\]*[a-z0-9])?.
enable_private_path_for_google_cloud_services: Option<bool>
Controls connectivity to private IP instances from Google services, such as BigQuery.
ssl_mode: i32
Specify how SSL/TLS is enforced in database connections. If you must use
the require_ssl
flag for backward compatibility, then only the following
value pairs are valid:
For PostgreSQL and MySQL:
ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTED
andrequire_ssl=false
ssl_mode=ENCRYPTED_ONLY
andrequire_ssl=false
ssl_mode=TRUSTED_CLIENT_CERTIFICATE_REQUIRED
andrequire_ssl=true
For SQL Server:
ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTED
andrequire_ssl=false
ssl_mode=ENCRYPTED_ONLY
andrequire_ssl=true
The value of ssl_mode
has priority over the value of require_ssl
.
For example, for the pair ssl_mode=ENCRYPTED_ONLY
and
require_ssl=false
, ssl_mode=ENCRYPTED_ONLY
means accept only SSL
connections, while require_ssl=false
means accept both non-SSL
and SSL connections. In this case, MySQL and PostgreSQL databases respect
ssl_mode
and accepts only SSL connections.
psc_config: Option<PscConfig>
PSC settings for this instance.
Implementations§
Trait Implementations§
source§impl Clone for IpConfiguration
impl Clone for IpConfiguration
source§fn clone(&self) -> IpConfiguration
fn clone(&self) -> IpConfiguration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for IpConfiguration
impl Debug for IpConfiguration
source§impl Default for IpConfiguration
impl Default for IpConfiguration
source§impl Message for IpConfiguration
impl Message for IpConfiguration
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for IpConfiguration
impl PartialEq for IpConfiguration
source§fn eq(&self, other: &IpConfiguration) -> bool
fn eq(&self, other: &IpConfiguration) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for IpConfiguration
Auto Trait Implementations§
impl Freeze for IpConfiguration
impl RefUnwindSafe for IpConfiguration
impl Send for IpConfiguration
impl Sync for IpConfiguration
impl Unpin for IpConfiguration
impl UnwindSafe for IpConfiguration
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request