Enum google_api_proto::google::cloud::gkehub::v1beta1::membership::InfrastructureType
source · #[repr(i32)]pub enum InfrastructureType {
Unspecified = 0,
OnPrem = 1,
MultiCloud = 2,
}
Expand description
Specifies the infrastructure type of a Membership. Infrastructure type is used by Hub to control infrastructure-specific behavior, including pricing.
Each GKE distribution (on-GCP, on-Prem, on-X,…) will set this field automatically, but Attached Clusters customers should specify a type during registration.
Variants§
Unspecified = 0
No type was specified. Some Hub functionality may require a type be specified, and will not support Memberships with this value.
OnPrem = 1
Private infrastructure that is owned or operated by customer. This includes GKE distributions such as GKE-OnPrem and GKE-OnBareMetal.
MultiCloud = 2
Public cloud infrastructure.
Implementations§
source§impl InfrastructureType
impl InfrastructureType
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 InfrastructureType
impl Clone for InfrastructureType
source§fn clone(&self) -> InfrastructureType
fn clone(&self) -> InfrastructureType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for InfrastructureType
impl Debug for InfrastructureType
source§impl Default for InfrastructureType
impl Default for InfrastructureType
source§fn default() -> InfrastructureType
fn default() -> InfrastructureType
source§impl From<InfrastructureType> for i32
impl From<InfrastructureType> for i32
source§fn from(value: InfrastructureType) -> i32
fn from(value: InfrastructureType) -> i32
source§impl Hash for InfrastructureType
impl Hash for InfrastructureType
source§impl Ord for InfrastructureType
impl Ord for InfrastructureType
source§fn cmp(&self, other: &InfrastructureType) -> Ordering
fn cmp(&self, other: &InfrastructureType) -> 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 InfrastructureType
impl PartialEq for InfrastructureType
source§fn eq(&self, other: &InfrastructureType) -> bool
fn eq(&self, other: &InfrastructureType) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for InfrastructureType
impl PartialOrd for InfrastructureType
source§fn partial_cmp(&self, other: &InfrastructureType) -> Option<Ordering>
fn partial_cmp(&self, other: &InfrastructureType) -> 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 InfrastructureType
impl TryFrom<i32> for InfrastructureType
§type Error = DecodeError
type Error = DecodeError
source§fn try_from(value: i32) -> Result<InfrastructureType, DecodeError>
fn try_from(value: i32) -> Result<InfrastructureType, DecodeError>
impl Copy for InfrastructureType
impl Eq for InfrastructureType
impl StructuralPartialEq for InfrastructureType
Auto Trait Implementations§
impl Freeze for InfrastructureType
impl RefUnwindSafe for InfrastructureType
impl Send for InfrastructureType
impl Sync for InfrastructureType
impl Unpin for InfrastructureType
impl UnwindSafe for InfrastructureType
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