Enum google_api_proto::google::cloud::dataproc::v1::gke_node_pool_target::Role
source · #[repr(i32)]pub enum Role {
Unspecified = 0,
Default = 1,
Controller = 2,
SparkDriver = 3,
SparkExecutor = 4,
}
Expand description
Role
specifies the tasks that will run on the node pool. Roles can be
specific to workloads. Exactly one
[GkeNodePoolTarget][google.cloud.dataproc.v1.GkeNodePoolTarget] within the
virtual cluster must have the DEFAULT
role, which is used to run all
workloads that are not associated with a node pool.
Variants§
Unspecified = 0
Role is unspecified.
Default = 1
At least one node pool must have the DEFAULT
role.
Work assigned to a role that is not associated with a node pool
is assigned to the node pool with the DEFAULT
role. For example,
work assigned to the CONTROLLER
role will be assigned to the node pool
with the DEFAULT
role if no node pool has the CONTROLLER
role.
Controller = 2
Run work associated with the Dataproc control plane (for example, controllers and webhooks). Very low resource requirements.
SparkDriver = 3
Run work associated with a Spark driver of a job.
SparkExecutor = 4
Run work associated with a Spark executor of a job.
Implementations§
source§impl Role
impl Role
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 Role
impl Ord for Role
source§impl PartialEq for Role
impl PartialEq for Role
source§impl PartialOrd for Role
impl PartialOrd for Role
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 Role
impl TryFrom<i32> for Role
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
impl Copy for Role
impl Eq for Role
impl StructuralPartialEq for Role
Auto Trait Implementations§
impl Freeze for Role
impl RefUnwindSafe for Role
impl Send for Role
impl Sync for Role
impl Unpin for Role
impl UnwindSafe for Role
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