pub struct AutoscalingPolicy {
pub basic_algorithm: Option<BasicAutoscalingAlgorithm>,
pub id: Option<String>,
pub labels: Option<HashMap<String, String>>,
pub name: Option<String>,
pub secondary_worker_config: Option<InstanceGroupAutoscalingPolicyConfig>,
pub worker_config: Option<InstanceGroupAutoscalingPolicyConfig>,
}
Expand description
Describes an autoscaling policy for Dataproc cluster autoscaler.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- locations autoscaling policies create projects (request|response)
- locations autoscaling policies get projects (response)
- locations autoscaling policies update projects (request|response)
- regions autoscaling policies create projects (request|response)
- regions autoscaling policies get projects (response)
- regions autoscaling policies update projects (request|response)
Fields§
§basic_algorithm: Option<BasicAutoscalingAlgorithm>
no description provided
id: Option<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.
labels: Option<HashMap<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 (https://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with an autoscaling policy.
name: Option<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}
secondary_worker_config: Option<InstanceGroupAutoscalingPolicyConfig>
Optional. Describes how the autoscaler will operate for secondary workers.
worker_config: Option<InstanceGroupAutoscalingPolicyConfig>
Required. Describes how the autoscaler will operate for primary workers.
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§fn default() -> AutoscalingPolicy
fn default() -> AutoscalingPolicy
Source§impl<'de> Deserialize<'de> for AutoscalingPolicy
impl<'de> Deserialize<'de> for AutoscalingPolicy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for AutoscalingPolicy
impl Serialize for AutoscalingPolicy
impl RequestValue for AutoscalingPolicy
impl ResponseResult 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more