Struct google_api_proto::google::cloud::dataproc::v1::AutoscalingPolicy
source · pub struct AutoscalingPolicy {
pub id: String,
pub name: String,
pub worker_config: Option<InstanceGroupAutoscalingPolicyConfig>,
pub secondary_worker_config: Option<InstanceGroupAutoscalingPolicyConfig>,
pub labels: BTreeMap<String, String>,
pub algorithm: Option<Algorithm>,
}
Expand description
Describes an autoscaling policy for Dataproc cluster autoscaler.
Fields§
§id: String
Required. The policy id.
The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). Cannot begin or end with underscore or hyphen. Must consist of between 3 and 50 characters.
name: String
Output only. The “resource name” of the autoscaling policy, as described in https://cloud.google.com/apis/design/resource_names.
-
For
projects.regions.autoscalingPolicies
, the resource name of the policy has the following format:projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}
-
For
projects.locations.autoscalingPolicies
, the resource name of the policy has the following format:projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}
worker_config: Option<InstanceGroupAutoscalingPolicyConfig>
Required. Describes how the autoscaler will operate for primary workers.
secondary_worker_config: Option<InstanceGroupAutoscalingPolicyConfig>
Optional. Describes how the autoscaler will operate for secondary workers.
labels: BTreeMap<String, String>
Optional. The labels to associate with this autoscaling policy. Label keys must contain 1 to 63 characters, and must conform to RFC 1035. Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035. No more than 32 labels can be associated with an autoscaling policy.
algorithm: Option<Algorithm>
Autoscaling algorithm for policy.
Trait Implementations§
source§impl Clone for AutoscalingPolicy
impl Clone for AutoscalingPolicy
source§fn clone(&self) -> AutoscalingPolicy
fn clone(&self) -> AutoscalingPolicy
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AutoscalingPolicy
impl Debug for AutoscalingPolicy
source§impl Default for AutoscalingPolicy
impl Default for AutoscalingPolicy
source§impl Message for AutoscalingPolicy
impl Message for AutoscalingPolicy
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 AutoscalingPolicy
impl PartialEq for AutoscalingPolicy
source§fn eq(&self, other: &AutoscalingPolicy) -> bool
fn eq(&self, other: &AutoscalingPolicy) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AutoscalingPolicy
Auto Trait Implementations§
impl Freeze for AutoscalingPolicy
impl RefUnwindSafe for AutoscalingPolicy
impl Send for AutoscalingPolicy
impl Sync for AutoscalingPolicy
impl Unpin for AutoscalingPolicy
impl UnwindSafe for AutoscalingPolicy
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