Enum google_api_proto::google::cloud::compute::v1::instance_properties::PrivateIpv6GoogleAccess
source · #[repr(i32)]pub enum PrivateIpv6GoogleAccess {
UndefinedPrivateIpv6GoogleAccess = 0,
EnableBidirectionalAccessToGoogle = 427_975_994,
EnableOutboundVmAccessToGoogle = 288_210_263,
InheritFromSubnetwork = 530_256_959,
}
Expand description
The private IPv6 google access type for VMs. If not specified, use INHERIT_FROM_SUBNETWORK as default. Note that for MachineImage, this is not supported yet.
Variants§
UndefinedPrivateIpv6GoogleAccess = 0
A value indicating that the enum field is not set.
EnableBidirectionalAccessToGoogle = 427_975_994
Bidirectional private IPv6 access to/from Google services. If specified, the subnetwork who is attached to the instance’s default network interface will be assigned an internal IPv6 prefix if it doesn’t have before.
EnableOutboundVmAccessToGoogle = 288_210_263
Outbound private IPv6 access from VMs in this subnet to Google services. If specified, the subnetwork who is attached to the instance’s default network interface will be assigned an internal IPv6 prefix if it doesn’t have before.
InheritFromSubnetwork = 530_256_959
Each network interface inherits PrivateIpv6GoogleAccess from its subnetwork.
Implementations§
source§impl PrivateIpv6GoogleAccess
impl PrivateIpv6GoogleAccess
sourcepub fn is_valid(value: i32) -> bool
pub fn is_valid(value: i32) -> bool
Returns true
if value
is a variant of PrivateIpv6GoogleAccess
.
sourcepub fn from_i32(value: i32) -> Option<PrivateIpv6GoogleAccess>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<PrivateIpv6GoogleAccess>
Converts an i32
to a PrivateIpv6GoogleAccess
, or None
if value
is not a valid variant.
source§impl PrivateIpv6GoogleAccess
impl PrivateIpv6GoogleAccess
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for PrivateIpv6GoogleAccess
impl Clone for PrivateIpv6GoogleAccess
source§fn clone(&self) -> PrivateIpv6GoogleAccess
fn clone(&self) -> PrivateIpv6GoogleAccess
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PrivateIpv6GoogleAccess
impl Debug for PrivateIpv6GoogleAccess
source§impl Default for PrivateIpv6GoogleAccess
impl Default for PrivateIpv6GoogleAccess
source§fn default() -> PrivateIpv6GoogleAccess
fn default() -> PrivateIpv6GoogleAccess
source§impl From<PrivateIpv6GoogleAccess> for i32
impl From<PrivateIpv6GoogleAccess> for i32
source§fn from(value: PrivateIpv6GoogleAccess) -> i32
fn from(value: PrivateIpv6GoogleAccess) -> i32
source§impl Hash for PrivateIpv6GoogleAccess
impl Hash for PrivateIpv6GoogleAccess
source§impl Ord for PrivateIpv6GoogleAccess
impl Ord for PrivateIpv6GoogleAccess
source§fn cmp(&self, other: &PrivateIpv6GoogleAccess) -> Ordering
fn cmp(&self, other: &PrivateIpv6GoogleAccess) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for PrivateIpv6GoogleAccess
impl PartialEq for PrivateIpv6GoogleAccess
source§fn eq(&self, other: &PrivateIpv6GoogleAccess) -> bool
fn eq(&self, other: &PrivateIpv6GoogleAccess) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for PrivateIpv6GoogleAccess
impl PartialOrd for PrivateIpv6GoogleAccess
source§fn partial_cmp(&self, other: &PrivateIpv6GoogleAccess) -> Option<Ordering>
fn partial_cmp(&self, other: &PrivateIpv6GoogleAccess) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for PrivateIpv6GoogleAccess
impl TryFrom<i32> for PrivateIpv6GoogleAccess
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<PrivateIpv6GoogleAccess, UnknownEnumValue>
fn try_from(value: i32) -> Result<PrivateIpv6GoogleAccess, UnknownEnumValue>
impl Copy for PrivateIpv6GoogleAccess
impl Eq for PrivateIpv6GoogleAccess
impl StructuralPartialEq for PrivateIpv6GoogleAccess
Auto Trait Implementations§
impl Freeze for PrivateIpv6GoogleAccess
impl RefUnwindSafe for PrivateIpv6GoogleAccess
impl Send for PrivateIpv6GoogleAccess
impl Sync for PrivateIpv6GoogleAccess
impl Unpin for PrivateIpv6GoogleAccess
impl UnwindSafe for PrivateIpv6GoogleAccess
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§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