google-cloud-dataproc-v1 0.13.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/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 +18 -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 +121 -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/rpc/status.rb +4 -2
- metadata +12 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 22b06901c3281cabd3ffd80b6292bd25cf3b7d95b898bf8f6c1e13a98baf43b9
|
4
|
+
data.tar.gz: 0cfe46c1d2c513f2b74a9d025f847a69546d11da3badbcc6b1cee173b870dd65
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 41d08ab37d4b3c1e124cec720747e924b492f6f8cc7634709e01729417ef0a10d0a67b35bd748ac2ccd1d8140d3eba7a9c809275b68eb09026efb8d6b6a41cb3
|
7
|
+
data.tar.gz: 7933dd80afc9836a514ca3b486185e0dc97546ebe87c85cd27edbfa86da1ff41476901cf866251fcd9036f0b229a68de24822272a02e78eb38ac919e067598f1
|
data/README.md
CHANGED
@@ -46,7 +46,7 @@ for general usage information.
|
|
46
46
|
## Enabling Logging
|
47
47
|
|
48
48
|
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
49
|
-
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/
|
49
|
+
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
|
50
50
|
or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
|
51
51
|
that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
52
52
|
and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
@@ -216,11 +216,12 @@ module Google
|
|
216
216
|
# @param cluster [::Google::Cloud::Dataproc::V1::Cluster, ::Hash]
|
217
217
|
# Required. The cluster to create.
|
218
218
|
# @param request_id [::String]
|
219
|
-
# Optional. A unique ID used to identify the request. If the server receives
|
219
|
+
# Optional. A unique ID used to identify the request. If the server receives
|
220
|
+
# two
|
220
221
|
# [CreateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateClusterRequest)s
|
221
222
|
# with the same id, then the second request will be ignored and the
|
222
|
-
# first {::Google::Longrunning::Operation google.longrunning.Operation} created
|
223
|
-
# is returned.
|
223
|
+
# first {::Google::Longrunning::Operation google.longrunning.Operation} created
|
224
|
+
# and stored in the backend is returned.
|
224
225
|
#
|
225
226
|
# It is recommended to always set this value to a
|
226
227
|
# [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
|
@@ -309,7 +310,8 @@ module Google
|
|
309
310
|
# Updates a cluster in a project. The returned
|
310
311
|
# {::Google::Longrunning::Operation#metadata Operation.metadata} will be
|
311
312
|
# [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata).
|
312
|
-
# The cluster must be in a
|
313
|
+
# The cluster must be in a
|
314
|
+
# {::Google::Cloud::Dataproc::V1::ClusterStatus::State `RUNNING`} state or an error
|
313
315
|
# is returned.
|
314
316
|
#
|
315
317
|
# @overload update_cluster(request, options = nil)
|
@@ -403,8 +405,8 @@ module Google
|
|
403
405
|
# receives two
|
404
406
|
# [UpdateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.UpdateClusterRequest)s
|
405
407
|
# with the same id, then the second request will be ignored and the
|
406
|
-
# first {::Google::Longrunning::Operation google.longrunning.Operation} created
|
407
|
-
# backend is returned.
|
408
|
+
# first {::Google::Longrunning::Operation google.longrunning.Operation} created
|
409
|
+
# and stored in the backend is returned.
|
408
410
|
#
|
409
411
|
# It is recommended to always set this value to a
|
410
412
|
# [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
|
@@ -523,8 +525,8 @@ module Google
|
|
523
525
|
# receives two
|
524
526
|
# [StopClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StopClusterRequest)s
|
525
527
|
# with the same id, then the second request will be ignored and the
|
526
|
-
# first {::Google::Longrunning::Operation google.longrunning.Operation} created
|
527
|
-
# backend is returned.
|
528
|
+
# first {::Google::Longrunning::Operation google.longrunning.Operation} created
|
529
|
+
# and stored in the backend is returned.
|
528
530
|
#
|
529
531
|
# Recommendation: Set this value to a
|
530
532
|
# [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
|
@@ -643,8 +645,8 @@ module Google
|
|
643
645
|
# receives two
|
644
646
|
# [StartClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StartClusterRequest)s
|
645
647
|
# with the same id, then the second request will be ignored and the
|
646
|
-
# first {::Google::Longrunning::Operation google.longrunning.Operation} created
|
647
|
-
# backend is returned.
|
648
|
+
# first {::Google::Longrunning::Operation google.longrunning.Operation} created
|
649
|
+
# and stored in the backend is returned.
|
648
650
|
#
|
649
651
|
# Recommendation: Set this value to a
|
650
652
|
# [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
|
@@ -765,8 +767,8 @@ module Google
|
|
765
767
|
# receives two
|
766
768
|
# [DeleteClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.DeleteClusterRequest)s
|
767
769
|
# with the same id, then the second request will be ignored and the
|
768
|
-
# first {::Google::Longrunning::Operation google.longrunning.Operation} created
|
769
|
-
# backend is returned.
|
770
|
+
# first {::Google::Longrunning::Operation google.longrunning.Operation} created
|
771
|
+
# and stored in the backend is returned.
|
770
772
|
#
|
771
773
|
# It is recommended to always set this value to a
|
772
774
|
# [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
|
@@ -24,6 +24,27 @@ module Google
|
|
24
24
|
module ClusterController
|
25
25
|
# Path helper methods for the ClusterController API.
|
26
26
|
module Paths
|
27
|
+
##
|
28
|
+
# Create a fully-qualified NodeGroup resource string.
|
29
|
+
#
|
30
|
+
# The resource will be in the following format:
|
31
|
+
#
|
32
|
+
# `projects/{project}/regions/{region}/clusters/{cluster}/nodeGroups/{node_group}`
|
33
|
+
#
|
34
|
+
# @param project [String]
|
35
|
+
# @param region [String]
|
36
|
+
# @param cluster [String]
|
37
|
+
# @param node_group [String]
|
38
|
+
#
|
39
|
+
# @return [::String]
|
40
|
+
def node_group_path project:, region:, cluster:, node_group:
|
41
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
42
|
+
raise ::ArgumentError, "region cannot contain /" if region.to_s.include? "/"
|
43
|
+
raise ::ArgumentError, "cluster cannot contain /" if cluster.to_s.include? "/"
|
44
|
+
|
45
|
+
"projects/#{project}/regions/#{region}/clusters/#{cluster}/nodeGroups/#{node_group}"
|
46
|
+
end
|
47
|
+
|
27
48
|
##
|
28
49
|
# Create a fully-qualified Service resource string.
|
29
50
|
#
|
@@ -42,6 +42,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
42
42
|
optional :endpoint_config, :message, 19, "google.cloud.dataproc.v1.EndpointConfig"
|
43
43
|
optional :metastore_config, :message, 20, "google.cloud.dataproc.v1.MetastoreConfig"
|
44
44
|
optional :dataproc_metric_config, :message, 23, "google.cloud.dataproc.v1.DataprocMetricConfig"
|
45
|
+
repeated :auxiliary_node_groups, :message, 25, "google.cloud.dataproc.v1.AuxiliaryNodeGroup"
|
45
46
|
end
|
46
47
|
add_message "google.cloud.dataproc.v1.VirtualClusterConfig" do
|
47
48
|
optional :staging_bucket, :string, 1
|
@@ -127,6 +128,20 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
127
128
|
optional :num_local_ssds, :int32, 2
|
128
129
|
optional :local_ssd_interface, :string, 4
|
129
130
|
end
|
131
|
+
add_message "google.cloud.dataproc.v1.AuxiliaryNodeGroup" do
|
132
|
+
optional :node_group, :message, 1, "google.cloud.dataproc.v1.NodeGroup"
|
133
|
+
optional :node_group_id, :string, 2
|
134
|
+
end
|
135
|
+
add_message "google.cloud.dataproc.v1.NodeGroup" do
|
136
|
+
optional :name, :string, 1
|
137
|
+
repeated :roles, :enum, 2, "google.cloud.dataproc.v1.NodeGroup.Role"
|
138
|
+
optional :node_group_config, :message, 3, "google.cloud.dataproc.v1.InstanceGroupConfig"
|
139
|
+
map :labels, :string, :string, 4
|
140
|
+
end
|
141
|
+
add_enum "google.cloud.dataproc.v1.NodeGroup.Role" do
|
142
|
+
value :ROLE_UNSPECIFIED, 0
|
143
|
+
value :DRIVER, 1
|
144
|
+
end
|
130
145
|
add_message "google.cloud.dataproc.v1.NodeInitializationAction" do
|
131
146
|
optional :executable_file, :string, 1
|
132
147
|
optional :execution_timeout, :message, 2, "google.protobuf.Duration"
|
@@ -310,6 +325,9 @@ module Google
|
|
310
325
|
ManagedGroupConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.ManagedGroupConfig").msgclass
|
311
326
|
AcceleratorConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.AcceleratorConfig").msgclass
|
312
327
|
DiskConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.DiskConfig").msgclass
|
328
|
+
AuxiliaryNodeGroup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.AuxiliaryNodeGroup").msgclass
|
329
|
+
NodeGroup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.NodeGroup").msgclass
|
330
|
+
NodeGroup::Role = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.NodeGroup.Role").enummodule
|
313
331
|
NodeInitializationAction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.NodeInitializationAction").msgclass
|
314
332
|
ClusterStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.ClusterStatus").msgclass
|
315
333
|
ClusterStatus::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.ClusterStatus.State").enummodule
|
@@ -41,7 +41,8 @@ module Google
|
|
41
41
|
# Updates a cluster in a project. The returned
|
42
42
|
# [Operation.metadata][google.longrunning.Operation.metadata] will be
|
43
43
|
# [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata).
|
44
|
-
# The cluster must be in a
|
44
|
+
# The cluster must be in a
|
45
|
+
# [`RUNNING`][google.cloud.dataproc.v1.ClusterStatus.State] state or an error
|
45
46
|
# is returned.
|
46
47
|
rpc :UpdateCluster, ::Google::Cloud::Dataproc::V1::UpdateClusterRequest, ::Google::Longrunning::Operation
|
47
48
|
# Stops a cluster in a project.
|
@@ -176,6 +176,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
176
176
|
optional :scheduling, :message, 20, "google.cloud.dataproc.v1.JobScheduling"
|
177
177
|
optional :job_uuid, :string, 22
|
178
178
|
optional :done, :bool, 24
|
179
|
+
optional :driver_scheduling_config, :message, 27, "google.cloud.dataproc.v1.DriverSchedulingConfig"
|
179
180
|
oneof :type_job do
|
180
181
|
optional :hadoop_job, :message, 3, "google.cloud.dataproc.v1.HadoopJob"
|
181
182
|
optional :spark_job, :message, 4, "google.cloud.dataproc.v1.SparkJob"
|
@@ -187,6 +188,10 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
187
188
|
optional :presto_job, :message, 23, "google.cloud.dataproc.v1.PrestoJob"
|
188
189
|
end
|
189
190
|
end
|
191
|
+
add_message "google.cloud.dataproc.v1.DriverSchedulingConfig" do
|
192
|
+
optional :memory_mb, :int32, 1
|
193
|
+
optional :vcores, :int32, 2
|
194
|
+
end
|
190
195
|
add_message "google.cloud.dataproc.v1.JobScheduling" do
|
191
196
|
optional :max_failures_per_hour, :int32, 1
|
192
197
|
optional :max_failures_total, :int32, 2
|
@@ -269,6 +274,7 @@ module Google
|
|
269
274
|
YarnApplication = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.YarnApplication").msgclass
|
270
275
|
YarnApplication::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.YarnApplication.State").enummodule
|
271
276
|
Job = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.Job").msgclass
|
277
|
+
DriverSchedulingConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.DriverSchedulingConfig").msgclass
|
272
278
|
JobScheduling = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.JobScheduling").msgclass
|
273
279
|
SubmitJobRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.SubmitJobRequest").msgclass
|
274
280
|
JobMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.JobMetadata").msgclass
|