#[non_exhaustive]pub struct DNSEndpointConfig {
pub endpoint: String,
pub allow_external_traffic: Option<bool>,
/* private fields */
}Expand description
Describes the configuration of a DNS endpoint.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.endpoint: StringOutput only. The cluster’s DNS endpoint configuration. A DNS format address. This is accessible from the public internet. Ex: uid.us-central1.gke.goog. Always present, but the behavior may change according to the value of DNSEndpointConfig.allow_external_traffic.
allow_external_traffic: Option<bool>Controls whether user traffic is allowed over this endpoint. Note that GCP-managed services may still use the endpoint even if this is false.
Implementations§
Source§impl DNSEndpointConfig
impl DNSEndpointConfig
pub fn new() -> Self
Sourcepub fn set_endpoint<T: Into<String>>(self, v: T) -> Self
pub fn set_endpoint<T: Into<String>>(self, v: T) -> Self
Sets the value of endpoint.
Sourcepub fn set_allow_external_traffic<T>(self, v: T) -> Self
pub fn set_allow_external_traffic<T>(self, v: T) -> Self
Sets the value of allow_external_traffic.
Sourcepub fn set_or_clear_allow_external_traffic<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_allow_external_traffic<T>(self, v: Option<T>) -> Self
Sets or clears the value of allow_external_traffic.
Trait Implementations§
Source§impl Clone for DNSEndpointConfig
impl Clone for DNSEndpointConfig
Source§fn clone(&self) -> DNSEndpointConfig
fn clone(&self) -> DNSEndpointConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DNSEndpointConfig
impl Debug for DNSEndpointConfig
Source§impl Default for DNSEndpointConfig
impl Default for DNSEndpointConfig
Source§fn default() -> DNSEndpointConfig
fn default() -> DNSEndpointConfig
Returns the “default value” for a type. Read more
Source§impl Message for DNSEndpointConfig
impl Message for DNSEndpointConfig
Source§impl PartialEq for DNSEndpointConfig
impl PartialEq for DNSEndpointConfig
impl StructuralPartialEq for DNSEndpointConfig
Auto Trait Implementations§
impl Freeze for DNSEndpointConfig
impl RefUnwindSafe for DNSEndpointConfig
impl Send for DNSEndpointConfig
impl Sync for DNSEndpointConfig
impl Unpin for DNSEndpointConfig
impl UnwindSafe for DNSEndpointConfig
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
Mutably borrows from an owned value. Read more