Class AutoscalingPolicy (5.4.3)

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

Describes an autoscaling policy for Dataproc cluster autoscaler.

.. _oneof:


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 - 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}
This field is a member of oneof_ algorithm.
Required. Describes how the autoscaler will operate for primary workers.
Optional. 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



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

The abstract base class for a message.

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.