google-cloud-dataproc-v1 0.12.0 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +1 -1
- data/README.md +1 -1
- data/lib/google/cloud/dataproc/v1/cluster_controller/client.rb +14 -12
- data/lib/google/cloud/dataproc/v1/cluster_controller/paths.rb +21 -0
- data/lib/google/cloud/dataproc/v1/clusters_pb.rb +38 -0
- data/lib/google/cloud/dataproc/v1/clusters_services_pb.rb +2 -1
- data/lib/google/cloud/dataproc/v1/jobs_pb.rb +6 -0
- data/lib/google/cloud/dataproc/v1/node_group_controller/client.rb +662 -0
- data/lib/google/cloud/dataproc/v1/node_group_controller/credentials.rb +51 -0
- data/lib/google/cloud/dataproc/v1/node_group_controller/operations.rb +770 -0
- data/lib/google/cloud/dataproc/v1/node_group_controller/paths.rb +73 -0
- data/lib/google/cloud/dataproc/v1/node_group_controller.rb +51 -0
- data/lib/google/cloud/dataproc/v1/node_groups_pb.rb +44 -0
- data/lib/google/cloud/dataproc/v1/node_groups_services_pb.rb +55 -0
- data/lib/google/cloud/dataproc/v1/operations_pb.rb +19 -0
- data/lib/google/cloud/dataproc/v1/version.rb +1 -1
- data/lib/google/cloud/dataproc/v1/workflow_template_service/paths.rb +21 -0
- data/lib/google/cloud/dataproc/v1.rb +1 -0
- data/proto_docs/google/api/client.rb +318 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/cloud/dataproc/v1/clusters.rb +205 -46
- data/proto_docs/google/cloud/dataproc/v1/jobs.rb +33 -18
- data/proto_docs/google/cloud/dataproc/v1/node_groups.rb +115 -0
- data/proto_docs/google/cloud/dataproc/v1/operations.rb +57 -0
- data/proto_docs/google/protobuf/empty.rb +0 -2
- data/proto_docs/google/rpc/status.rb +4 -2
- metadata +14 -4
@@ -0,0 +1,115 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2022 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 V1
|
24
|
+
# A request to create a node group.
|
25
|
+
# @!attribute [rw] parent
|
26
|
+
# @return [::String]
|
27
|
+
# Required. The parent resource where this node group will be created.
|
28
|
+
# Format: `projects/{project}/regions/{region}/clusters/{cluster}`
|
29
|
+
# @!attribute [rw] node_group
|
30
|
+
# @return [::Google::Cloud::Dataproc::V1::NodeGroup]
|
31
|
+
# Required. The node group to create.
|
32
|
+
# @!attribute [rw] node_group_id
|
33
|
+
# @return [::String]
|
34
|
+
# Optional. An optional node group ID. Generated if not specified.
|
35
|
+
#
|
36
|
+
# The ID must contain only letters (a-z, A-Z), numbers (0-9),
|
37
|
+
# underscores (_), and hyphens (-). Cannot begin or end with underscore
|
38
|
+
# or hyphen. Must consist of from 3 to 33 characters.
|
39
|
+
# @!attribute [rw] request_id
|
40
|
+
# @return [::String]
|
41
|
+
# Optional. A unique ID used to identify the request. If the server receives
|
42
|
+
# two
|
43
|
+
# [CreateNodeGroupRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateNodeGroupRequests)
|
44
|
+
# with the same ID, the second request is ignored and the
|
45
|
+
# first {::Google::Longrunning::Operation google.longrunning.Operation} created
|
46
|
+
# and stored in the backend is returned.
|
47
|
+
#
|
48
|
+
# Recommendation: Set this value to a
|
49
|
+
# [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
|
50
|
+
#
|
51
|
+
# The ID must contain only letters (a-z, A-Z), numbers (0-9),
|
52
|
+
# underscores (_), and hyphens (-). The maximum length is 40 characters.
|
53
|
+
class CreateNodeGroupRequest
|
54
|
+
include ::Google::Protobuf::MessageExts
|
55
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
56
|
+
end
|
57
|
+
|
58
|
+
# A request to resize a node group.
|
59
|
+
# @!attribute [rw] name
|
60
|
+
# @return [::String]
|
61
|
+
# Required. The name of the node group to resize.
|
62
|
+
# Format:
|
63
|
+
# `projects/{project}/regions/{region}/clusters/{cluster}/nodeGroups/{nodeGroup}`
|
64
|
+
# @!attribute [rw] size
|
65
|
+
# @return [::Integer]
|
66
|
+
# Required. The number of running instances for the node group to maintain.
|
67
|
+
# The group adds or removes instances to maintain the number of instances
|
68
|
+
# specified by this parameter.
|
69
|
+
# @!attribute [rw] request_id
|
70
|
+
# @return [::String]
|
71
|
+
# Optional. A unique ID used to identify the request. If the server receives
|
72
|
+
# two
|
73
|
+
# [ResizeNodeGroupRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.ResizeNodeGroupRequests)
|
74
|
+
# with the same ID, the second request is ignored and the
|
75
|
+
# first {::Google::Longrunning::Operation google.longrunning.Operation} created
|
76
|
+
# and stored in the backend is returned.
|
77
|
+
#
|
78
|
+
# Recommendation: Set this value to a
|
79
|
+
# [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
|
80
|
+
#
|
81
|
+
# The ID must contain only letters (a-z, A-Z), numbers (0-9),
|
82
|
+
# underscores (_), and hyphens (-). The maximum length is 40 characters.
|
83
|
+
# @!attribute [rw] graceful_decommission_timeout
|
84
|
+
# @return [::Google::Protobuf::Duration]
|
85
|
+
# Optional. Timeout for graceful YARN decommissioning. [Graceful
|
86
|
+
# decommissioning]
|
87
|
+
# (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/scaling-clusters#graceful_decommissioning)
|
88
|
+
# allows the removal of nodes from the Compute Engine node group
|
89
|
+
# without interrupting jobs in progress. This timeout specifies how long to
|
90
|
+
# wait for jobs in progress to finish before forcefully removing nodes (and
|
91
|
+
# potentially interrupting jobs). Default timeout is 0 (for forceful
|
92
|
+
# decommission), and the maximum allowed timeout is 1 day. (see JSON
|
93
|
+
# representation of
|
94
|
+
# [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
|
95
|
+
#
|
96
|
+
# Only supported on Dataproc image versions 1.2 and higher.
|
97
|
+
class ResizeNodeGroupRequest
|
98
|
+
include ::Google::Protobuf::MessageExts
|
99
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
100
|
+
end
|
101
|
+
|
102
|
+
# A request to get a node group .
|
103
|
+
# @!attribute [rw] name
|
104
|
+
# @return [::String]
|
105
|
+
# Required. The name of the node group to retrieve.
|
106
|
+
# Format:
|
107
|
+
# `projects/{project}/regions/{region}/clusters/{cluster}/nodeGroups/{nodeGroup}`
|
108
|
+
class GetNodeGroupRequest
|
109
|
+
include ::Google::Protobuf::MessageExts
|
110
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
111
|
+
end
|
112
|
+
end
|
113
|
+
end
|
114
|
+
end
|
115
|
+
end
|
@@ -140,6 +140,63 @@ module Google
|
|
140
140
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
141
141
|
end
|
142
142
|
end
|
143
|
+
|
144
|
+
# Metadata describing the node group operation.
|
145
|
+
# @!attribute [r] node_group_id
|
146
|
+
# @return [::String]
|
147
|
+
# Output only. Node group ID for the operation.
|
148
|
+
# @!attribute [r] cluster_uuid
|
149
|
+
# @return [::String]
|
150
|
+
# Output only. Cluster UUID associated with the node group operation.
|
151
|
+
# @!attribute [r] status
|
152
|
+
# @return [::Google::Cloud::Dataproc::V1::ClusterOperationStatus]
|
153
|
+
# Output only. Current operation status.
|
154
|
+
# @!attribute [r] status_history
|
155
|
+
# @return [::Array<::Google::Cloud::Dataproc::V1::ClusterOperationStatus>]
|
156
|
+
# Output only. The previous operation status.
|
157
|
+
# @!attribute [rw] operation_type
|
158
|
+
# @return [::Google::Cloud::Dataproc::V1::NodeGroupOperationMetadata::NodeGroupOperationType]
|
159
|
+
# The operation type.
|
160
|
+
# @!attribute [r] description
|
161
|
+
# @return [::String]
|
162
|
+
# Output only. Short description of operation.
|
163
|
+
# @!attribute [r] labels
|
164
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
165
|
+
# Output only. Labels associated with the operation.
|
166
|
+
# @!attribute [r] warnings
|
167
|
+
# @return [::Array<::String>]
|
168
|
+
# Output only. Errors encountered during operation execution.
|
169
|
+
class NodeGroupOperationMetadata
|
170
|
+
include ::Google::Protobuf::MessageExts
|
171
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
172
|
+
|
173
|
+
# @!attribute [rw] key
|
174
|
+
# @return [::String]
|
175
|
+
# @!attribute [rw] value
|
176
|
+
# @return [::String]
|
177
|
+
class LabelsEntry
|
178
|
+
include ::Google::Protobuf::MessageExts
|
179
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
180
|
+
end
|
181
|
+
|
182
|
+
# Operation type for node group resources.
|
183
|
+
module NodeGroupOperationType
|
184
|
+
# Node group operation type is unknown.
|
185
|
+
NODE_GROUP_OPERATION_TYPE_UNSPECIFIED = 0
|
186
|
+
|
187
|
+
# Create node group operation type.
|
188
|
+
CREATE = 1
|
189
|
+
|
190
|
+
# Update node group operation type.
|
191
|
+
UPDATE = 2
|
192
|
+
|
193
|
+
# Delete node group operation type.
|
194
|
+
DELETE = 3
|
195
|
+
|
196
|
+
# Resize node group operation type.
|
197
|
+
RESIZE = 4
|
198
|
+
end
|
199
|
+
end
|
143
200
|
end
|
144
201
|
end
|
145
202
|
end
|
@@ -26,8 +26,6 @@ module Google
|
|
26
26
|
# service Foo {
|
27
27
|
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
28
28
|
# }
|
29
|
-
#
|
30
|
-
# The JSON representation for `Empty` is empty JSON object `{}`.
|
31
29
|
class Empty
|
32
30
|
include ::Google::Protobuf::MessageExts
|
33
31
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -28,12 +28,14 @@ module Google
|
|
28
28
|
# [API Design Guide](https://cloud.google.com/apis/design/errors).
|
29
29
|
# @!attribute [rw] code
|
30
30
|
# @return [::Integer]
|
31
|
-
# The status code, which should be an enum value of
|
31
|
+
# The status code, which should be an enum value of
|
32
|
+
# [google.rpc.Code][google.rpc.Code].
|
32
33
|
# @!attribute [rw] message
|
33
34
|
# @return [::String]
|
34
35
|
# A developer-facing error message, which should be in English. Any
|
35
36
|
# user-facing error message should be localized and sent in the
|
36
|
-
# {::Google::Rpc::Status#details google.rpc.Status.details} field, or localized
|
37
|
+
# {::Google::Rpc::Status#details google.rpc.Status.details} field, or localized
|
38
|
+
# by the client.
|
37
39
|
# @!attribute [rw] details
|
38
40
|
# @return [::Array<::Google::Protobuf::Any>]
|
39
41
|
# A list of messages that carry the error details. There is a common set of
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-dataproc-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.14.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-12-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.12'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0.
|
29
|
+
version: '0.12'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -197,6 +197,13 @@ files:
|
|
197
197
|
- lib/google/cloud/dataproc/v1/job_controller/operations.rb
|
198
198
|
- lib/google/cloud/dataproc/v1/jobs_pb.rb
|
199
199
|
- lib/google/cloud/dataproc/v1/jobs_services_pb.rb
|
200
|
+
- lib/google/cloud/dataproc/v1/node_group_controller.rb
|
201
|
+
- lib/google/cloud/dataproc/v1/node_group_controller/client.rb
|
202
|
+
- lib/google/cloud/dataproc/v1/node_group_controller/credentials.rb
|
203
|
+
- lib/google/cloud/dataproc/v1/node_group_controller/operations.rb
|
204
|
+
- lib/google/cloud/dataproc/v1/node_group_controller/paths.rb
|
205
|
+
- lib/google/cloud/dataproc/v1/node_groups_pb.rb
|
206
|
+
- lib/google/cloud/dataproc/v1/node_groups_services_pb.rb
|
200
207
|
- lib/google/cloud/dataproc/v1/operations_pb.rb
|
201
208
|
- lib/google/cloud/dataproc/v1/shared_pb.rb
|
202
209
|
- lib/google/cloud/dataproc/v1/version.rb
|
@@ -208,12 +215,15 @@ files:
|
|
208
215
|
- lib/google/cloud/dataproc/v1/workflow_templates_pb.rb
|
209
216
|
- lib/google/cloud/dataproc/v1/workflow_templates_services_pb.rb
|
210
217
|
- proto_docs/README.md
|
218
|
+
- proto_docs/google/api/client.rb
|
211
219
|
- proto_docs/google/api/field_behavior.rb
|
220
|
+
- proto_docs/google/api/launch_stage.rb
|
212
221
|
- proto_docs/google/api/resource.rb
|
213
222
|
- proto_docs/google/cloud/dataproc/v1/autoscaling_policies.rb
|
214
223
|
- proto_docs/google/cloud/dataproc/v1/batches.rb
|
215
224
|
- proto_docs/google/cloud/dataproc/v1/clusters.rb
|
216
225
|
- proto_docs/google/cloud/dataproc/v1/jobs.rb
|
226
|
+
- proto_docs/google/cloud/dataproc/v1/node_groups.rb
|
217
227
|
- proto_docs/google/cloud/dataproc/v1/operations.rb
|
218
228
|
- proto_docs/google/cloud/dataproc/v1/shared.rb
|
219
229
|
- proto_docs/google/cloud/dataproc/v1/workflow_templates.rb
|