Reference documentation and code samples for the Google Cloud Dataproc V1 Client class AutoscalingPolicy.
Describes an autoscaling policy for Dataproc cluster autoscaler.
Generated from protobuf message google.cloud.dataproc.v1.AutoscalingPolicy
Namespace
Google \ Cloud \ Dataproc \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ 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}
↳ basic_algorithm
↳ worker_config
Google\Cloud\Dataproc\V1\InstanceGroupAutoscalingPolicyConfig
Required. Describes how the autoscaler will operate for primary workers.
↳ secondary_worker_config
Google\Cloud\Dataproc\V1\InstanceGroupAutoscalingPolicyConfig
Optional. Describes how the autoscaler will operate for secondary workers.
↳ labels
array| Google\Protobuf\Internal\MapField
Optional. The labels to associate with this autoscaling policy. Label keysmust contain 1 to 63 characters, and must conform to RFC 1035 . Label valuesmay 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.
getId
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.
string
setId
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.
var
string
$this
getName
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}
string
setName
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}
var
string
$this
getBasicAlgorithm
Generated from protobuf field .google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED];
hasBasicAlgorithm
setBasicAlgorithm
Generated from protobuf field .google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED];
$this
getWorkerConfig
Required. Describes how the autoscaler will operate for primary workers.
hasWorkerConfig
clearWorkerConfig
setWorkerConfig
Required. Describes how the autoscaler will operate for primary workers.
$this
getSecondaryWorkerConfig
Optional. Describes how the autoscaler will operate for secondary workers.
hasSecondaryWorkerConfig
clearSecondaryWorkerConfig
setSecondaryWorkerConfig
Optional. Describes how the autoscaler will operate for secondary workers.
$this
getLabels
Optional. The labels to associate with this autoscaling policy.
Label keysmust contain 1 to 63 characters, and must conform to RFC 1035 . Label valuesmay 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.
setLabels
Optional. The labels to associate with this autoscaling policy.
Label keysmust contain 1 to 63 characters, and must conform to RFC 1035 . Label valuesmay 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.
$this
getAlgorithm
string