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
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/AUTHENTICATION.md
CHANGED
@@ -114,7 +114,7 @@ credentials are discovered.
|
|
114
114
|
To configure your system for this, simply:
|
115
115
|
|
116
116
|
1. [Download and install the Cloud SDK](https://cloud.google.com/sdk)
|
117
|
-
2. Authenticate using OAuth 2.0 `$ gcloud auth login`
|
117
|
+
2. Authenticate using OAuth 2.0 `$ gcloud auth application-default login`
|
118
118
|
3. Write code as if already authenticated.
|
119
119
|
|
120
120
|
**NOTE:** This is _not_ recommended for running in production. The Cloud SDK
|
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
|
#
|
@@ -41,6 +41,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
41
41
|
optional :lifecycle_config, :message, 17, "google.cloud.dataproc.v1.LifecycleConfig"
|
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
|
+
optional :dataproc_metric_config, :message, 23, "google.cloud.dataproc.v1.DataprocMetricConfig"
|
45
|
+
repeated :auxiliary_node_groups, :message, 25, "google.cloud.dataproc.v1.AuxiliaryNodeGroup"
|
44
46
|
end
|
45
47
|
add_message "google.cloud.dataproc.v1.VirtualClusterConfig" do
|
46
48
|
optional :staging_bucket, :string, 1
|
@@ -126,6 +128,20 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
126
128
|
optional :num_local_ssds, :int32, 2
|
127
129
|
optional :local_ssd_interface, :string, 4
|
128
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
|
129
145
|
add_message "google.cloud.dataproc.v1.NodeInitializationAction" do
|
130
146
|
optional :executable_file, :string, 1
|
131
147
|
optional :execution_timeout, :message, 2, "google.protobuf.Duration"
|
@@ -193,6 +209,22 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
193
209
|
add_message "google.cloud.dataproc.v1.MetastoreConfig" do
|
194
210
|
optional :dataproc_metastore_service, :string, 1
|
195
211
|
end
|
212
|
+
add_message "google.cloud.dataproc.v1.DataprocMetricConfig" do
|
213
|
+
repeated :metrics, :message, 1, "google.cloud.dataproc.v1.DataprocMetricConfig.Metric"
|
214
|
+
end
|
215
|
+
add_message "google.cloud.dataproc.v1.DataprocMetricConfig.Metric" do
|
216
|
+
optional :metric_source, :enum, 1, "google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource"
|
217
|
+
repeated :metric_overrides, :string, 2
|
218
|
+
end
|
219
|
+
add_enum "google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource" do
|
220
|
+
value :METRIC_SOURCE_UNSPECIFIED, 0
|
221
|
+
value :MONITORING_AGENT_DEFAULTS, 1
|
222
|
+
value :HDFS, 2
|
223
|
+
value :SPARK, 3
|
224
|
+
value :YARN, 4
|
225
|
+
value :SPARK_HISTORY_SERVER, 5
|
226
|
+
value :HIVESERVER2, 6
|
227
|
+
end
|
196
228
|
add_message "google.cloud.dataproc.v1.ClusterMetrics" do
|
197
229
|
map :hdfs_metrics, :string, :int64, 1
|
198
230
|
map :yarn_metrics, :string, :int64, 2
|
@@ -293,6 +325,9 @@ module Google
|
|
293
325
|
ManagedGroupConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.ManagedGroupConfig").msgclass
|
294
326
|
AcceleratorConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.AcceleratorConfig").msgclass
|
295
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
|
296
331
|
NodeInitializationAction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.NodeInitializationAction").msgclass
|
297
332
|
ClusterStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.ClusterStatus").msgclass
|
298
333
|
ClusterStatus::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.ClusterStatus.State").enummodule
|
@@ -303,6 +338,9 @@ module Google
|
|
303
338
|
SoftwareConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.SoftwareConfig").msgclass
|
304
339
|
LifecycleConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.LifecycleConfig").msgclass
|
305
340
|
MetastoreConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.MetastoreConfig").msgclass
|
341
|
+
DataprocMetricConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.DataprocMetricConfig").msgclass
|
342
|
+
DataprocMetricConfig::Metric = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.DataprocMetricConfig.Metric").msgclass
|
343
|
+
DataprocMetricConfig::MetricSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource").enummodule
|
306
344
|
ClusterMetrics = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.ClusterMetrics").msgclass
|
307
345
|
CreateClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.CreateClusterRequest").msgclass
|
308
346
|
UpdateClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.UpdateClusterRequest").msgclass
|
@@ -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
|