Class AutoscalingPolicy (3.2.0)

AutoscalingPolicy(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Describes an autoscaling policy for Dataproc cluster autoscaler.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes

NameDescription
id str
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 str
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}
basic_algorithm google.cloud.dataproc_v1.types.BasicAutoscalingAlgorithm
This field is a member of oneof_ algorithm.
worker_config google.cloud.dataproc_v1.types.InstanceGroupAutoscalingPolicyConfig
Required. Describes how the autoscaler will operate for primary workers.
secondary_worker_config google.cloud.dataproc_v1.types.InstanceGroupAutoscalingPolicyConfig
Optional. Describes how the autoscaler will operate for secondary workers.
labels Sequence[google.cloud.dataproc_v1.types.AutoscalingPolicy.LabelsEntry]
Optional. The labels to associate with this autoscaling policy. Label **keys** must contain 1 to 63 characters, and must conform to `RFC 1035

Classes

LabelsEntry

LabelsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The abstract base class for a message.

Parameters
NameDescription
kwargs dict

Keys and values corresponding to the fields of the message.

mapping Union[dict, .Message]

A dictionary or message to be used to determine the values for this message.

ignore_unknown_fields Optional(bool)

If True, do not raise errors for unknown fields. Only applied if mapping is a mapping type or there are keyword parameters.