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 | |
|---|---|
| Name | Description | 
| id | strRequired. 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 | strOutput 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}- Forprojects.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.BasicAutoscalingAlgorithmThis field is a member of oneof_algorithm. | 
| worker_config | google.cloud.dataproc_v1.types.InstanceGroupAutoscalingPolicyConfigRequired. Describes how the autoscaler will operate for primary workers. | 
| secondary_worker_config | google.cloud.dataproc_v1.types.InstanceGroupAutoscalingPolicyConfigOptional. Describes how the autoscaler will operate for secondary workers. | 
| labels | MutableMapping[str, str]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 | |
|---|---|
| Name | Description | 
| kwargs | dictKeys and values corresponding to the fields of the message. | 
| mapping | Union[dict, 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  |