Class: Google::Cloud::Dataproc::V1::AutoscalingPolicy

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/dataproc/v1/autoscaling_policies.rb

Overview

Describes an autoscaling policy for Dataproc cluster autoscaler.

Instance Attribute Summary collapse

Instance Attribute Details

#basic_algorithm::Google::Cloud::Dataproc::V1::BasicAutoscalingAlgorithm



52
53
54
55
# File 'proto_docs/google/cloud/dataproc/v1/autoscaling_policies.rb', line 52

class AutoscalingPolicy
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#id::String

Returns 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.

Returns:

  • (::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.



52
53
54
55
# File 'proto_docs/google/cloud/dataproc/v1/autoscaling_policies.rb', line 52

class AutoscalingPolicy
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#name::String (readonly)

Returns 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}.

Returns:

  • (::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}



52
53
54
55
# File 'proto_docs/google/cloud/dataproc/v1/autoscaling_policies.rb', line 52

class AutoscalingPolicy
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#secondary_worker_config::Google::Cloud::Dataproc::V1::InstanceGroupAutoscalingPolicyConfig

Returns Optional. Describes how the autoscaler will operate for secondary workers.

Returns:



52
53
54
55
# File 'proto_docs/google/cloud/dataproc/v1/autoscaling_policies.rb', line 52

class AutoscalingPolicy
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#worker_config::Google::Cloud::Dataproc::V1::InstanceGroupAutoscalingPolicyConfig

Returns Required. Describes how the autoscaler will operate for primary workers.

Returns:



52
53
54
55
# File 'proto_docs/google/cloud/dataproc/v1/autoscaling_policies.rb', line 52

class AutoscalingPolicy
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end