Enum google_api_proto::google::cloud::notebooks::v1::execution_template::ScaleTier
source · #[repr(i32)]pub enum ScaleTier {
Unspecified = 0,
Basic = 1,
Standard1 = 2,
Premium1 = 3,
BasicGpu = 4,
BasicTpu = 5,
Custom = 6,
}
Expand description
Required. Specifies the machine types, the number of replicas for workers and parameter servers.
Variants§
Unspecified = 0
Unspecified Scale Tier.
Basic = 1
A single worker instance. This tier is suitable for learning how to use Cloud ML, and for experimenting with new models using small datasets.
Standard1 = 2
Many workers and a few parameter servers.
Premium1 = 3
A large number of workers with many parameter servers.
BasicGpu = 4
A single worker instance with a K80 GPU.
BasicTpu = 5
A single worker instance with a Cloud TPU.
Custom = 6
The CUSTOM tier is not a set tier, but rather enables you to use your own cluster specification. When you use this tier, set values to configure your processing cluster according to these guidelines:
- You must set
ExecutionTemplate.masterType
to specify the type of machine to use for your master node. This is the only required setting.
Implementations§
source§impl ScaleTier
impl ScaleTier
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 Ord for ScaleTier
impl Ord for ScaleTier
source§impl PartialEq for ScaleTier
impl PartialEq for ScaleTier
source§impl PartialOrd for ScaleTier
impl PartialOrd for ScaleTier
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 ScaleTier
impl TryFrom<i32> for ScaleTier
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
impl Copy for ScaleTier
impl Eq for ScaleTier
impl StructuralPartialEq for ScaleTier
Auto Trait Implementations§
impl Freeze for ScaleTier
impl RefUnwindSafe for ScaleTier
impl Send for ScaleTier
impl Sync for ScaleTier
impl Unpin for ScaleTier
impl UnwindSafe for ScaleTier
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