google-cloud-dataproc-v1beta2 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +169 -0
- data/LICENSE.md +203 -0
- data/README.md +71 -0
- data/lib/google-cloud-dataproc-v1beta2.rb +21 -0
- data/lib/google/cloud/common_resources_pb.rb +15 -0
- data/lib/google/cloud/dataproc/v1beta2.rb +38 -0
- data/lib/google/cloud/dataproc/v1beta2/autoscaling_policies_pb.rb +81 -0
- data/lib/google/cloud/dataproc/v1beta2/autoscaling_policies_services_pb.rb +58 -0
- data/lib/google/cloud/dataproc/v1beta2/autoscaling_policy_service.rb +50 -0
- data/lib/google/cloud/dataproc/v1beta2/autoscaling_policy_service/client.rb +734 -0
- data/lib/google/cloud/dataproc/v1beta2/autoscaling_policy_service/credentials.rb +51 -0
- data/lib/google/cloud/dataproc/v1beta2/autoscaling_policy_service/paths.rb +110 -0
- data/lib/google/cloud/dataproc/v1beta2/cluster_controller.rb +50 -0
- data/lib/google/cloud/dataproc/v1beta2/cluster_controller/client.rb +979 -0
- data/lib/google/cloud/dataproc/v1beta2/cluster_controller/credentials.rb +51 -0
- data/lib/google/cloud/dataproc/v1beta2/cluster_controller/operations.rb +564 -0
- data/lib/google/cloud/dataproc/v1beta2/clusters_pb.rb +255 -0
- data/lib/google/cloud/dataproc/v1beta2/clusters_services_pb.rb +68 -0
- data/lib/google/cloud/dataproc/v1beta2/job_controller.rb +49 -0
- data/lib/google/cloud/dataproc/v1beta2/job_controller/client.rb +980 -0
- data/lib/google/cloud/dataproc/v1beta2/job_controller/credentials.rb +51 -0
- data/lib/google/cloud/dataproc/v1beta2/job_controller/operations.rb +564 -0
- data/lib/google/cloud/dataproc/v1beta2/jobs_pb.rb +283 -0
- data/lib/google/cloud/dataproc/v1beta2/jobs_services_pb.rb +62 -0
- data/lib/google/cloud/dataproc/v1beta2/operations_pb.rb +45 -0
- data/lib/google/cloud/dataproc/v1beta2/shared_pb.rb +35 -0
- data/lib/google/cloud/dataproc/v1beta2/version.rb +28 -0
- data/lib/google/cloud/dataproc/v1beta2/workflow_template_service.rb +51 -0
- data/lib/google/cloud/dataproc/v1beta2/workflow_template_service/client.rb +1028 -0
- data/lib/google/cloud/dataproc/v1beta2/workflow_template_service/credentials.rb +51 -0
- data/lib/google/cloud/dataproc/v1beta2/workflow_template_service/operations.rb +564 -0
- data/lib/google/cloud/dataproc/v1beta2/workflow_template_service/paths.rb +110 -0
- data/lib/google/cloud/dataproc/v1beta2/workflow_templates_pb.rb +189 -0
- data/lib/google/cloud/dataproc/v1beta2/workflow_templates_services_pb.rb +104 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/field_behavior.rb +59 -0
- data/proto_docs/google/api/resource.rb +247 -0
- data/proto_docs/google/cloud/dataproc/v1beta2/autoscaling_policies.rb +272 -0
- data/proto_docs/google/cloud/dataproc/v1beta2/clusters.rb +1032 -0
- data/proto_docs/google/cloud/dataproc/v1beta2/jobs.rb +984 -0
- data/proto_docs/google/cloud/dataproc/v1beta2/operations.rb +98 -0
- data/proto_docs/google/cloud/dataproc/v1beta2/shared.rb +68 -0
- data/proto_docs/google/cloud/dataproc/v1beta2/workflow_templates.rb +706 -0
- data/proto_docs/google/longrunning/operations.rb +150 -0
- data/proto_docs/google/protobuf/any.rb +138 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +36 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/timestamp.rb +120 -0
- data/proto_docs/google/rpc/status.rb +46 -0
- metadata +205 -0
@@ -0,0 +1,247 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2020 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Api
|
22
|
+
# A simple descriptor of a resource type.
|
23
|
+
#
|
24
|
+
# ResourceDescriptor annotates a resource message (either by means of a
|
25
|
+
# protobuf annotation or use in the service config), and associates the
|
26
|
+
# resource's schema, the resource type, and the pattern of the resource name.
|
27
|
+
#
|
28
|
+
# Example:
|
29
|
+
#
|
30
|
+
# message Topic {
|
31
|
+
# // Indicates this message defines a resource schema.
|
32
|
+
# // Declares the resource type in the format of {service}/{kind}.
|
33
|
+
# // For Kubernetes resources, the format is {api group}/{kind}.
|
34
|
+
# option (google.api.resource) = {
|
35
|
+
# type: "pubsub.googleapis.com/Topic"
|
36
|
+
# name_descriptor: {
|
37
|
+
# pattern: "projects/{project}/topics/{topic}"
|
38
|
+
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
39
|
+
# parent_name_extractor: "projects/{project}"
|
40
|
+
# }
|
41
|
+
# };
|
42
|
+
# }
|
43
|
+
#
|
44
|
+
# The ResourceDescriptor Yaml config will look like:
|
45
|
+
#
|
46
|
+
# resources:
|
47
|
+
# - type: "pubsub.googleapis.com/Topic"
|
48
|
+
# name_descriptor:
|
49
|
+
# - pattern: "projects/\\{project}/topics/\\{topic}"
|
50
|
+
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
51
|
+
# parent_name_extractor: "projects/\\{project}"
|
52
|
+
#
|
53
|
+
# Sometimes, resources have multiple patterns, typically because they can
|
54
|
+
# live under multiple parents.
|
55
|
+
#
|
56
|
+
# Example:
|
57
|
+
#
|
58
|
+
# message LogEntry {
|
59
|
+
# option (google.api.resource) = {
|
60
|
+
# type: "logging.googleapis.com/LogEntry"
|
61
|
+
# name_descriptor: {
|
62
|
+
# pattern: "projects/{project}/logs/{log}"
|
63
|
+
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
64
|
+
# parent_name_extractor: "projects/{project}"
|
65
|
+
# }
|
66
|
+
# name_descriptor: {
|
67
|
+
# pattern: "folders/{folder}/logs/{log}"
|
68
|
+
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
69
|
+
# parent_name_extractor: "folders/{folder}"
|
70
|
+
# }
|
71
|
+
# name_descriptor: {
|
72
|
+
# pattern: "organizations/{organization}/logs/{log}"
|
73
|
+
# parent_type: "cloudresourcemanager.googleapis.com/Organization"
|
74
|
+
# parent_name_extractor: "organizations/{organization}"
|
75
|
+
# }
|
76
|
+
# name_descriptor: {
|
77
|
+
# pattern: "billingAccounts/{billing_account}/logs/{log}"
|
78
|
+
# parent_type: "billing.googleapis.com/BillingAccount"
|
79
|
+
# parent_name_extractor: "billingAccounts/{billing_account}"
|
80
|
+
# }
|
81
|
+
# };
|
82
|
+
# }
|
83
|
+
#
|
84
|
+
# The ResourceDescriptor Yaml config will look like:
|
85
|
+
#
|
86
|
+
# resources:
|
87
|
+
# - type: 'logging.googleapis.com/LogEntry'
|
88
|
+
# name_descriptor:
|
89
|
+
# - pattern: "projects/{project}/logs/{log}"
|
90
|
+
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
91
|
+
# parent_name_extractor: "projects/{project}"
|
92
|
+
# - pattern: "folders/{folder}/logs/{log}"
|
93
|
+
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
94
|
+
# parent_name_extractor: "folders/{folder}"
|
95
|
+
# - pattern: "organizations/{organization}/logs/{log}"
|
96
|
+
# parent_type: "cloudresourcemanager.googleapis.com/Organization"
|
97
|
+
# parent_name_extractor: "organizations/{organization}"
|
98
|
+
# - pattern: "billingAccounts/{billing_account}/logs/{log}"
|
99
|
+
# parent_type: "billing.googleapis.com/BillingAccount"
|
100
|
+
# parent_name_extractor: "billingAccounts/{billing_account}"
|
101
|
+
#
|
102
|
+
# For flexible resources, the resource name doesn't contain parent names, but
|
103
|
+
# the resource itself has parents for policy evaluation.
|
104
|
+
#
|
105
|
+
# Example:
|
106
|
+
#
|
107
|
+
# message Shelf {
|
108
|
+
# option (google.api.resource) = {
|
109
|
+
# type: "library.googleapis.com/Shelf"
|
110
|
+
# name_descriptor: {
|
111
|
+
# pattern: "shelves/{shelf}"
|
112
|
+
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
113
|
+
# }
|
114
|
+
# name_descriptor: {
|
115
|
+
# pattern: "shelves/{shelf}"
|
116
|
+
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
117
|
+
# }
|
118
|
+
# };
|
119
|
+
# }
|
120
|
+
#
|
121
|
+
# The ResourceDescriptor Yaml config will look like:
|
122
|
+
#
|
123
|
+
# resources:
|
124
|
+
# - type: 'library.googleapis.com/Shelf'
|
125
|
+
# name_descriptor:
|
126
|
+
# - pattern: "shelves/{shelf}"
|
127
|
+
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
128
|
+
# - pattern: "shelves/{shelf}"
|
129
|
+
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
130
|
+
# @!attribute [rw] type
|
131
|
+
# @return [String]
|
132
|
+
# The resource type. It must be in the format of
|
133
|
+
# \\{service_name}/\\{resource_type_kind}. The `resource_type_kind` must be
|
134
|
+
# singular and must not include version numbers.
|
135
|
+
#
|
136
|
+
# Example: `storage.googleapis.com/Bucket`
|
137
|
+
#
|
138
|
+
# The value of the resource_type_kind must follow the regular expression
|
139
|
+
# /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and
|
140
|
+
# should use PascalCase (UpperCamelCase). The maximum number of
|
141
|
+
# characters allowed for the `resource_type_kind` is 100.
|
142
|
+
# @!attribute [rw] pattern
|
143
|
+
# @return [Array<String>]
|
144
|
+
# Optional. The relative resource name pattern associated with this resource
|
145
|
+
# type. The DNS prefix of the full resource name shouldn't be specified here.
|
146
|
+
#
|
147
|
+
# The path pattern must follow the syntax, which aligns with HTTP binding
|
148
|
+
# syntax:
|
149
|
+
#
|
150
|
+
# Template = Segment { "/" Segment } ;
|
151
|
+
# Segment = LITERAL | Variable ;
|
152
|
+
# Variable = "{" LITERAL "}" ;
|
153
|
+
#
|
154
|
+
# Examples:
|
155
|
+
#
|
156
|
+
# - "projects/\\{project}/topics/\\{topic}"
|
157
|
+
# - "projects/\\{project}/knowledgeBases/\\{knowledge_base}"
|
158
|
+
#
|
159
|
+
# The components in braces correspond to the IDs for each resource in the
|
160
|
+
# hierarchy. It is expected that, if multiple patterns are provided,
|
161
|
+
# the same component name (e.g. "project") refers to IDs of the same
|
162
|
+
# type of resource.
|
163
|
+
# @!attribute [rw] name_field
|
164
|
+
# @return [String]
|
165
|
+
# Optional. The field on the resource that designates the resource name
|
166
|
+
# field. If omitted, this is assumed to be "name".
|
167
|
+
# @!attribute [rw] history
|
168
|
+
# @return [Google::Api::ResourceDescriptor::History]
|
169
|
+
# Optional. The historical or future-looking state of the resource pattern.
|
170
|
+
#
|
171
|
+
# Example:
|
172
|
+
#
|
173
|
+
# // The InspectTemplate message originally only supported resource
|
174
|
+
# // names with organization, and project was added later.
|
175
|
+
# message InspectTemplate {
|
176
|
+
# option (google.api.resource) = {
|
177
|
+
# type: "dlp.googleapis.com/InspectTemplate"
|
178
|
+
# pattern:
|
179
|
+
# "organizations/{organization}/inspectTemplates/{inspect_template}"
|
180
|
+
# pattern: "projects/{project}/inspectTemplates/{inspect_template}"
|
181
|
+
# history: ORIGINALLY_SINGLE_PATTERN
|
182
|
+
# };
|
183
|
+
# }
|
184
|
+
# @!attribute [rw] plural
|
185
|
+
# @return [String]
|
186
|
+
# The plural name used in the resource name, such as 'projects' for
|
187
|
+
# the name of 'projects/\\{project}'. It is the same concept of the `plural`
|
188
|
+
# field in k8s CRD spec
|
189
|
+
# https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
|
190
|
+
# @!attribute [rw] singular
|
191
|
+
# @return [String]
|
192
|
+
# The same concept of the `singular` field in k8s CRD spec
|
193
|
+
# https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
|
194
|
+
# Such as "project" for the `resourcemanager.googleapis.com/Project` type.
|
195
|
+
class ResourceDescriptor
|
196
|
+
include Google::Protobuf::MessageExts
|
197
|
+
extend Google::Protobuf::MessageExts::ClassMethods
|
198
|
+
|
199
|
+
# A description of the historical or future-looking state of the
|
200
|
+
# resource pattern.
|
201
|
+
module History
|
202
|
+
# The "unset" value.
|
203
|
+
HISTORY_UNSPECIFIED = 0
|
204
|
+
|
205
|
+
# The resource originally had one pattern and launched as such, and
|
206
|
+
# additional patterns were added later.
|
207
|
+
ORIGINALLY_SINGLE_PATTERN = 1
|
208
|
+
|
209
|
+
# The resource has one pattern, but the API owner expects to add more
|
210
|
+
# later. (This is the inverse of ORIGINALLY_SINGLE_PATTERN, and prevents
|
211
|
+
# that from being necessary once there are multiple patterns.)
|
212
|
+
FUTURE_MULTI_PATTERN = 2
|
213
|
+
end
|
214
|
+
end
|
215
|
+
|
216
|
+
# Defines a proto annotation that describes a string field that refers to
|
217
|
+
# an API resource.
|
218
|
+
# @!attribute [rw] type
|
219
|
+
# @return [String]
|
220
|
+
# The resource type that the annotated field references.
|
221
|
+
#
|
222
|
+
# Example:
|
223
|
+
#
|
224
|
+
# message Subscription {
|
225
|
+
# string topic = 2 [(google.api.resource_reference) = {
|
226
|
+
# type: "pubsub.googleapis.com/Topic"
|
227
|
+
# }];
|
228
|
+
# }
|
229
|
+
# @!attribute [rw] child_type
|
230
|
+
# @return [String]
|
231
|
+
# The resource type of a child collection that the annotated field
|
232
|
+
# references. This is useful for annotating the `parent` field that
|
233
|
+
# doesn't have a fixed resource type.
|
234
|
+
#
|
235
|
+
# Example:
|
236
|
+
#
|
237
|
+
# message ListLogEntriesRequest {
|
238
|
+
# string parent = 1 [(google.api.resource_reference) = {
|
239
|
+
# child_type: "logging.googleapis.com/LogEntry"
|
240
|
+
# };
|
241
|
+
# }
|
242
|
+
class ResourceReference
|
243
|
+
include Google::Protobuf::MessageExts
|
244
|
+
extend Google::Protobuf::MessageExts::ClassMethods
|
245
|
+
end
|
246
|
+
end
|
247
|
+
end
|
@@ -0,0 +1,272 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2020 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module Dataproc
|
23
|
+
module V1beta2
|
24
|
+
# Describes an autoscaling policy for Dataproc cluster autoscaler.
|
25
|
+
# @!attribute [rw] id
|
26
|
+
# @return [String]
|
27
|
+
# Required. The policy id.
|
28
|
+
#
|
29
|
+
# The id must contain only letters (a-z, A-Z), numbers (0-9),
|
30
|
+
# underscores (_), and hyphens (-). Cannot begin or end with underscore
|
31
|
+
# or hyphen. Must consist of between 3 and 50 characters.
|
32
|
+
# @!attribute [r] name
|
33
|
+
# @return [String]
|
34
|
+
# Output only. The "resource name" of the autoscaling policy, as described
|
35
|
+
# in https://cloud.google.com/apis/design/resource_names.
|
36
|
+
#
|
37
|
+
# * For `projects.regions.autoscalingPolicies`, the resource name of the
|
38
|
+
# policy has the following format:
|
39
|
+
# `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`
|
40
|
+
#
|
41
|
+
# * For `projects.locations.autoscalingPolicies`, the resource name of the
|
42
|
+
# policy has the following format:
|
43
|
+
# `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}`
|
44
|
+
# @!attribute [rw] basic_algorithm
|
45
|
+
# @return [Google::Cloud::Dataproc::V1beta2::BasicAutoscalingAlgorithm]
|
46
|
+
# @!attribute [rw] worker_config
|
47
|
+
# @return [Google::Cloud::Dataproc::V1beta2::InstanceGroupAutoscalingPolicyConfig]
|
48
|
+
# Required. Describes how the autoscaler will operate for primary workers.
|
49
|
+
# @!attribute [rw] secondary_worker_config
|
50
|
+
# @return [Google::Cloud::Dataproc::V1beta2::InstanceGroupAutoscalingPolicyConfig]
|
51
|
+
# Optional. Describes how the autoscaler will operate for secondary workers.
|
52
|
+
class AutoscalingPolicy
|
53
|
+
include Google::Protobuf::MessageExts
|
54
|
+
extend Google::Protobuf::MessageExts::ClassMethods
|
55
|
+
end
|
56
|
+
|
57
|
+
# Basic algorithm for autoscaling.
|
58
|
+
# @!attribute [rw] yarn_config
|
59
|
+
# @return [Google::Cloud::Dataproc::V1beta2::BasicYarnAutoscalingConfig]
|
60
|
+
# Required. YARN autoscaling configuration.
|
61
|
+
# @!attribute [rw] cooldown_period
|
62
|
+
# @return [Google::Protobuf::Duration]
|
63
|
+
# Optional. Duration between scaling events. A scaling period starts after
|
64
|
+
# the update operation from the previous event has completed.
|
65
|
+
#
|
66
|
+
# Bounds: [2m, 1d]. Default: 2m.
|
67
|
+
class BasicAutoscalingAlgorithm
|
68
|
+
include Google::Protobuf::MessageExts
|
69
|
+
extend Google::Protobuf::MessageExts::ClassMethods
|
70
|
+
end
|
71
|
+
|
72
|
+
# Basic autoscaling configurations for YARN.
|
73
|
+
# @!attribute [rw] graceful_decommission_timeout
|
74
|
+
# @return [Google::Protobuf::Duration]
|
75
|
+
# Required. Timeout for YARN graceful decommissioning of Node Managers.
|
76
|
+
# Specifies the duration to wait for jobs to complete before forcefully
|
77
|
+
# removing workers (and potentially interrupting jobs). Only applicable to
|
78
|
+
# downscaling operations.
|
79
|
+
#
|
80
|
+
# Bounds: [0s, 1d].
|
81
|
+
# @!attribute [rw] scale_up_factor
|
82
|
+
# @return [Float]
|
83
|
+
# Required. Fraction of average pending memory in the last cooldown period
|
84
|
+
# for which to add workers. A scale-up factor of 1.0 will result in scaling
|
85
|
+
# up so that there is no pending memory remaining after the update (more
|
86
|
+
# aggressive scaling). A scale-up factor closer to 0 will result in a smaller
|
87
|
+
# magnitude of scaling up (less aggressive scaling).
|
88
|
+
#
|
89
|
+
# Bounds: [0.0, 1.0].
|
90
|
+
# @!attribute [rw] scale_down_factor
|
91
|
+
# @return [Float]
|
92
|
+
# Required. Fraction of average pending memory in the last cooldown period
|
93
|
+
# for which to remove workers. A scale-down factor of 1 will result in
|
94
|
+
# scaling down so that there is no available memory remaining after the
|
95
|
+
# update (more aggressive scaling). A scale-down factor of 0 disables
|
96
|
+
# removing workers, which can be beneficial for autoscaling a single job.
|
97
|
+
#
|
98
|
+
# Bounds: [0.0, 1.0].
|
99
|
+
# @!attribute [rw] scale_up_min_worker_fraction
|
100
|
+
# @return [Float]
|
101
|
+
# Optional. Minimum scale-up threshold as a fraction of total cluster size
|
102
|
+
# before scaling occurs. For example, in a 20-worker cluster, a threshold of
|
103
|
+
# 0.1 means the autoscaler must recommend at least a 2-worker scale-up for
|
104
|
+
# the cluster to scale. A threshold of 0 means the autoscaler will scale up
|
105
|
+
# on any recommended change.
|
106
|
+
#
|
107
|
+
# Bounds: [0.0, 1.0]. Default: 0.0.
|
108
|
+
# @!attribute [rw] scale_down_min_worker_fraction
|
109
|
+
# @return [Float]
|
110
|
+
# Optional. Minimum scale-down threshold as a fraction of total cluster size
|
111
|
+
# before scaling occurs. For example, in a 20-worker cluster, a threshold of
|
112
|
+
# 0.1 means the autoscaler must recommend at least a 2 worker scale-down for
|
113
|
+
# the cluster to scale. A threshold of 0 means the autoscaler will scale down
|
114
|
+
# on any recommended change.
|
115
|
+
#
|
116
|
+
# Bounds: [0.0, 1.0]. Default: 0.0.
|
117
|
+
class BasicYarnAutoscalingConfig
|
118
|
+
include Google::Protobuf::MessageExts
|
119
|
+
extend Google::Protobuf::MessageExts::ClassMethods
|
120
|
+
end
|
121
|
+
|
122
|
+
# Configuration for the size bounds of an instance group, including its
|
123
|
+
# proportional size to other groups.
|
124
|
+
# @!attribute [rw] min_instances
|
125
|
+
# @return [Integer]
|
126
|
+
# Optional. Minimum number of instances for this group.
|
127
|
+
#
|
128
|
+
# Primary workers - Bounds: [2, max_instances]. Default: 2.
|
129
|
+
# Secondary workers - Bounds: [0, max_instances]. Default: 0.
|
130
|
+
# @!attribute [rw] max_instances
|
131
|
+
# @return [Integer]
|
132
|
+
# Optional. Maximum number of instances for this group. Required for primary
|
133
|
+
# workers. Note that by default, clusters will not use secondary workers.
|
134
|
+
# Required for secondary workers if the minimum secondary instances is set.
|
135
|
+
#
|
136
|
+
# Primary workers - Bounds: [min_instances, ). Required.
|
137
|
+
# Secondary workers - Bounds: [min_instances, ). Default: 0.
|
138
|
+
# @!attribute [rw] weight
|
139
|
+
# @return [Integer]
|
140
|
+
# Optional. Weight for the instance group, which is used to determine the
|
141
|
+
# fraction of total workers in the cluster from this instance group.
|
142
|
+
# For example, if primary workers have weight 2, and secondary workers have
|
143
|
+
# weight 1, the cluster will have approximately 2 primary workers for each
|
144
|
+
# secondary worker.
|
145
|
+
#
|
146
|
+
# The cluster may not reach the specified balance if constrained
|
147
|
+
# by min/max bounds or other autoscaling settings. For example, if
|
148
|
+
# `max_instances` for secondary workers is 0, then only primary workers will
|
149
|
+
# be added. The cluster can also be out of balance when created.
|
150
|
+
#
|
151
|
+
# If weight is not set on any instance group, the cluster will default to
|
152
|
+
# equal weight for all groups: the cluster will attempt to maintain an equal
|
153
|
+
# number of workers in each group within the configured size bounds for each
|
154
|
+
# group. If weight is set for one group only, the cluster will default to
|
155
|
+
# zero weight on the unset group. For example if weight is set only on
|
156
|
+
# primary workers, the cluster will use primary workers only and no
|
157
|
+
# secondary workers.
|
158
|
+
class InstanceGroupAutoscalingPolicyConfig
|
159
|
+
include Google::Protobuf::MessageExts
|
160
|
+
extend Google::Protobuf::MessageExts::ClassMethods
|
161
|
+
end
|
162
|
+
|
163
|
+
# A request to create an autoscaling policy.
|
164
|
+
# @!attribute [rw] parent
|
165
|
+
# @return [String]
|
166
|
+
# Required. The "resource name" of the region or location, as described
|
167
|
+
# in https://cloud.google.com/apis/design/resource_names.
|
168
|
+
#
|
169
|
+
# * For `projects.regions.autoscalingPolicies.create`, the resource name
|
170
|
+
# has the following format:
|
171
|
+
# `projects/{project_id}/regions/{region}`
|
172
|
+
#
|
173
|
+
# * For `projects.locations.autoscalingPolicies.create`, the resource name
|
174
|
+
# has the following format:
|
175
|
+
# `projects/{project_id}/locations/{location}`
|
176
|
+
# @!attribute [rw] policy
|
177
|
+
# @return [Google::Cloud::Dataproc::V1beta2::AutoscalingPolicy]
|
178
|
+
# Required. The autoscaling policy to create.
|
179
|
+
class CreateAutoscalingPolicyRequest
|
180
|
+
include Google::Protobuf::MessageExts
|
181
|
+
extend Google::Protobuf::MessageExts::ClassMethods
|
182
|
+
end
|
183
|
+
|
184
|
+
# A request to fetch an autoscaling policy.
|
185
|
+
# @!attribute [rw] name
|
186
|
+
# @return [String]
|
187
|
+
# Required. The "resource name" of the autoscaling policy, as described
|
188
|
+
# in https://cloud.google.com/apis/design/resource_names.
|
189
|
+
#
|
190
|
+
# * For `projects.regions.autoscalingPolicies.get`, the resource name
|
191
|
+
# of the policy has the following format:
|
192
|
+
# `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`
|
193
|
+
#
|
194
|
+
# * For `projects.locations.autoscalingPolicies.get`, the resource name
|
195
|
+
# of the policy has the following format:
|
196
|
+
# `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}`
|
197
|
+
class GetAutoscalingPolicyRequest
|
198
|
+
include Google::Protobuf::MessageExts
|
199
|
+
extend Google::Protobuf::MessageExts::ClassMethods
|
200
|
+
end
|
201
|
+
|
202
|
+
# A request to update an autoscaling policy.
|
203
|
+
# @!attribute [rw] policy
|
204
|
+
# @return [Google::Cloud::Dataproc::V1beta2::AutoscalingPolicy]
|
205
|
+
# Required. The updated autoscaling policy.
|
206
|
+
class UpdateAutoscalingPolicyRequest
|
207
|
+
include Google::Protobuf::MessageExts
|
208
|
+
extend Google::Protobuf::MessageExts::ClassMethods
|
209
|
+
end
|
210
|
+
|
211
|
+
# A request to delete an autoscaling policy.
|
212
|
+
#
|
213
|
+
# Autoscaling policies in use by one or more clusters will not be deleted.
|
214
|
+
# @!attribute [rw] name
|
215
|
+
# @return [String]
|
216
|
+
# Required. The "resource name" of the autoscaling policy, as described
|
217
|
+
# in https://cloud.google.com/apis/design/resource_names.
|
218
|
+
#
|
219
|
+
# * For `projects.regions.autoscalingPolicies.delete`, the resource name
|
220
|
+
# of the policy has the following format:
|
221
|
+
# `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`
|
222
|
+
#
|
223
|
+
# * For `projects.locations.autoscalingPolicies.delete`, the resource name
|
224
|
+
# of the policy has the following format:
|
225
|
+
# `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}`
|
226
|
+
class DeleteAutoscalingPolicyRequest
|
227
|
+
include Google::Protobuf::MessageExts
|
228
|
+
extend Google::Protobuf::MessageExts::ClassMethods
|
229
|
+
end
|
230
|
+
|
231
|
+
# A request to list autoscaling policies in a project.
|
232
|
+
# @!attribute [rw] parent
|
233
|
+
# @return [String]
|
234
|
+
# Required. The "resource name" of the region or location, as described
|
235
|
+
# in https://cloud.google.com/apis/design/resource_names.
|
236
|
+
#
|
237
|
+
# * For `projects.regions.autoscalingPolicies.list`, the resource name
|
238
|
+
# of the region has the following format:
|
239
|
+
# `projects/{project_id}/regions/{region}`
|
240
|
+
#
|
241
|
+
# * For `projects.locations.autoscalingPolicies.list`, the resource name
|
242
|
+
# of the location has the following format:
|
243
|
+
# `projects/{project_id}/locations/{location}`
|
244
|
+
# @!attribute [rw] page_size
|
245
|
+
# @return [Integer]
|
246
|
+
# Optional. The maximum number of results to return in each response.
|
247
|
+
# Must be less than or equal to 1000. Defaults to 100.
|
248
|
+
# @!attribute [rw] page_token
|
249
|
+
# @return [String]
|
250
|
+
# Optional. The page token, returned by a previous call, to request the
|
251
|
+
# next page of results.
|
252
|
+
class ListAutoscalingPoliciesRequest
|
253
|
+
include Google::Protobuf::MessageExts
|
254
|
+
extend Google::Protobuf::MessageExts::ClassMethods
|
255
|
+
end
|
256
|
+
|
257
|
+
# A response to a request to list autoscaling policies in a project.
|
258
|
+
# @!attribute [r] policies
|
259
|
+
# @return [Array<Google::Cloud::Dataproc::V1beta2::AutoscalingPolicy>]
|
260
|
+
# Output only. Autoscaling policies list.
|
261
|
+
# @!attribute [r] next_page_token
|
262
|
+
# @return [String]
|
263
|
+
# Output only. This token is included in the response if there are more
|
264
|
+
# results to fetch.
|
265
|
+
class ListAutoscalingPoliciesResponse
|
266
|
+
include Google::Protobuf::MessageExts
|
267
|
+
extend Google::Protobuf::MessageExts::ClassMethods
|
268
|
+
end
|
269
|
+
end
|
270
|
+
end
|
271
|
+
end
|
272
|
+
end
|