Struct google_api_proto::google::cloud::compute::v1::UsableSubnetwork
source · pub struct UsableSubnetwork {
pub external_ipv6_prefix: Option<String>,
pub internal_ipv6_prefix: Option<String>,
pub ip_cidr_range: Option<String>,
pub ipv6_access_type: Option<String>,
pub network: Option<String>,
pub purpose: Option<String>,
pub role: Option<String>,
pub secondary_ip_ranges: Vec<UsableSubnetworkSecondaryRange>,
pub stack_type: Option<String>,
pub subnetwork: Option<String>,
}
Expand description
Subnetwork which the current user has compute.subnetworks.use permission on.
Fields§
§external_ipv6_prefix: Option<String>
[Output Only] The external IPv6 address range that is assigned to this subnetwork.
internal_ipv6_prefix: Option<String>
[Output Only] The internal IPv6 address range that is assigned to this subnetwork.
ip_cidr_range: Option<String>
The range of internal addresses that are owned by this subnetwork.
ipv6_access_type: Option<String>
The access type of IPv6 address this subnet holds. It’s immutable and can only be specified during creation or the first time the subnet is updated into IPV4_IPV6 dual stack. Check the Ipv6AccessType enum for the list of possible values.
network: Option<String>
Network URL.
purpose: Option<String>
The purpose of the resource. This field can be either PRIVATE, GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, PRIVATE_SERVICE_CONNECT, or PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. Subnets with purpose set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks that are reserved for Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn’t supported if the subnet purpose field is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY. Check the Purpose enum for the list of possible values.
role: Option<String>
The role of subnetwork. Currently, this field is only used when purpose is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY. The value can be set to ACTIVE or BACKUP. An ACTIVE subnetwork is one that is currently being used for Envoy-based load balancers in a region. A BACKUP subnetwork is one that is ready to be promoted to ACTIVE or is currently draining. This field can be updated with a patch request. Check the Role enum for the list of possible values.
secondary_ip_ranges: Vec<UsableSubnetworkSecondaryRange>
Secondary IP ranges.
stack_type: Option<String>
The stack type for the subnet. If set to IPV4_ONLY, new VMs in the subnet are assigned IPv4 addresses only. If set to IPV4_IPV6, new VMs in the subnet can be assigned both IPv4 and IPv6 addresses. If not specified, IPV4_ONLY is used. This field can be both set at resource creation time and updated using patch. Check the StackType enum for the list of possible values.
subnetwork: Option<String>
Subnetwork URL.
Implementations§
source§impl UsableSubnetwork
impl UsableSubnetwork
sourcepub fn ip_cidr_range(&self) -> &str
pub fn ip_cidr_range(&self) -> &str
Returns the value of ip_cidr_range
, or the default value if ip_cidr_range
is unset.
sourcepub fn external_ipv6_prefix(&self) -> &str
pub fn external_ipv6_prefix(&self) -> &str
Returns the value of external_ipv6_prefix
, or the default value if external_ipv6_prefix
is unset.
sourcepub fn network(&self) -> &str
pub fn network(&self) -> &str
Returns the value of network
, or the default value if network
is unset.
sourcepub fn subnetwork(&self) -> &str
pub fn subnetwork(&self) -> &str
Returns the value of subnetwork
, or the default value if subnetwork
is unset.
sourcepub fn purpose(&self) -> &str
pub fn purpose(&self) -> &str
Returns the value of purpose
, or the default value if purpose
is unset.
sourcepub fn stack_type(&self) -> &str
pub fn stack_type(&self) -> &str
Returns the value of stack_type
, or the default value if stack_type
is unset.
sourcepub fn ipv6_access_type(&self) -> &str
pub fn ipv6_access_type(&self) -> &str
Returns the value of ipv6_access_type
, or the default value if ipv6_access_type
is unset.
sourcepub fn internal_ipv6_prefix(&self) -> &str
pub fn internal_ipv6_prefix(&self) -> &str
Returns the value of internal_ipv6_prefix
, or the default value if internal_ipv6_prefix
is unset.
Trait Implementations§
source§impl Clone for UsableSubnetwork
impl Clone for UsableSubnetwork
source§fn clone(&self) -> UsableSubnetwork
fn clone(&self) -> UsableSubnetwork
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for UsableSubnetwork
impl Debug for UsableSubnetwork
source§impl Default for UsableSubnetwork
impl Default for UsableSubnetwork
source§impl Message for UsableSubnetwork
impl Message for UsableSubnetwork
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 UsableSubnetwork
impl PartialEq for UsableSubnetwork
source§fn eq(&self, other: &UsableSubnetwork) -> bool
fn eq(&self, other: &UsableSubnetwork) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for UsableSubnetwork
Auto Trait Implementations§
impl Freeze for UsableSubnetwork
impl RefUnwindSafe for UsableSubnetwork
impl Send for UsableSubnetwork
impl Sync for UsableSubnetwork
impl Unpin for UsableSubnetwork
impl UnwindSafe for UsableSubnetwork
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