google-cloud-dataproc-v1beta2 0.3.0 → 0.4.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/lib/google/cloud/dataproc/v1beta2.rb +3 -0
- data/lib/google/cloud/dataproc/v1beta2/cluster_controller.rb +1 -0
- data/lib/google/cloud/dataproc/v1beta2/cluster_controller/client.rb +17 -12
- data/lib/google/cloud/dataproc/v1beta2/cluster_controller/paths.rb +52 -0
- data/lib/google/cloud/dataproc/v1beta2/version.rb +1 -1
- data/lib/google/cloud/dataproc/v1beta2/workflow_template_service/paths.rb +19 -0
- data/proto_docs/google/cloud/dataproc/v1beta2/clusters.rb +30 -28
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 15474ab40fc01dc4310ecd10178de2d2789802fff19b168c6cf91366bf5f4de2
|
4
|
+
data.tar.gz: 6b7c6695179ef869027279a61369e1a3e52fff2e89484ad1a353ee16170a0dbc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fa1611a8c58295f789462307ba30bc9cf86b947c4044c184e95dd7784c374006efbbaa8869c88f40980c36a306e5d33d8ebe911cbb167e55453fd9d9856b7eb4
|
7
|
+
data.tar.gz: d8664bc94efb09efa67cb1ac01ade44f4c2448313d8a23c5ff7d4ae5d587f7185e12b6b8550ac38f8b93ff1b41eb93d3458cc8e5b414912189f75de437c45716
|
@@ -23,6 +23,7 @@ require "gapic/config/method"
|
|
23
23
|
require "google/cloud/dataproc/v1beta2/version"
|
24
24
|
|
25
25
|
require "google/cloud/dataproc/v1beta2/cluster_controller/credentials"
|
26
|
+
require "google/cloud/dataproc/v1beta2/cluster_controller/paths"
|
26
27
|
require "google/cloud/dataproc/v1beta2/cluster_controller/operations"
|
27
28
|
require "google/cloud/dataproc/v1beta2/cluster_controller/client"
|
28
29
|
|
@@ -31,6 +31,8 @@ module Google
|
|
31
31
|
# of Compute Engine instances.
|
32
32
|
#
|
33
33
|
class Client
|
34
|
+
include Paths
|
35
|
+
|
34
36
|
# @private
|
35
37
|
attr_reader :cluster_controller_stub
|
36
38
|
|
@@ -232,10 +234,11 @@ module Google
|
|
232
234
|
# Required. The cluster to create.
|
233
235
|
# @param request_id [::String]
|
234
236
|
# Optional. A unique id used to identify the request. If the server
|
235
|
-
# receives two
|
236
|
-
#
|
237
|
-
#
|
238
|
-
#
|
237
|
+
# receives two
|
238
|
+
# {::Google::Cloud::Dataproc::V1beta2::CreateClusterRequest CreateClusterRequest}
|
239
|
+
# requests with the same id, then the second request will be ignored and the
|
240
|
+
# first {::Google::Longrunning::Operation google.longrunning.Operation} created
|
241
|
+
# and stored in the backend is returned.
|
239
242
|
#
|
240
243
|
# It is recommended to always set this value to a
|
241
244
|
# [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
|
@@ -392,10 +395,11 @@ module Google
|
|
392
395
|
# </table>
|
393
396
|
# @param request_id [::String]
|
394
397
|
# Optional. A unique id used to identify the request. If the server
|
395
|
-
# receives two
|
396
|
-
#
|
397
|
-
#
|
398
|
-
#
|
398
|
+
# receives two
|
399
|
+
# {::Google::Cloud::Dataproc::V1beta2::UpdateClusterRequest UpdateClusterRequest}
|
400
|
+
# requests with the same id, then the second request will be ignored and the
|
401
|
+
# first {::Google::Longrunning::Operation google.longrunning.Operation} created
|
402
|
+
# and stored in the backend is returned.
|
399
403
|
#
|
400
404
|
# It is recommended to always set this value to a
|
401
405
|
# [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
|
@@ -483,10 +487,11 @@ module Google
|
|
483
487
|
# (with error NOT_FOUND) if cluster with specified UUID does not exist.
|
484
488
|
# @param request_id [::String]
|
485
489
|
# Optional. A unique id used to identify the request. If the server
|
486
|
-
# receives two
|
487
|
-
#
|
488
|
-
#
|
489
|
-
#
|
490
|
+
# receives two
|
491
|
+
# {::Google::Cloud::Dataproc::V1beta2::DeleteClusterRequest DeleteClusterRequest}
|
492
|
+
# requests with the same id, then the second request will be ignored and the
|
493
|
+
# first {::Google::Longrunning::Operation google.longrunning.Operation} created
|
494
|
+
# and stored in the backend is returned.
|
490
495
|
#
|
491
496
|
# It is recommended to always set this value to a
|
492
497
|
# [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
|
@@ -0,0 +1,52 @@
|
|
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
|
+
module ClusterController
|
25
|
+
# Path helper methods for the ClusterController API.
|
26
|
+
module Paths
|
27
|
+
##
|
28
|
+
# Create a fully-qualified Cluster resource string.
|
29
|
+
#
|
30
|
+
# The resource will be in the following format:
|
31
|
+
#
|
32
|
+
# `projects/{project}/locations/{location}/clusters/{cluster}`
|
33
|
+
#
|
34
|
+
# @param project [String]
|
35
|
+
# @param location [String]
|
36
|
+
# @param cluster [String]
|
37
|
+
#
|
38
|
+
# @return [::String]
|
39
|
+
def cluster_path project:, location:, cluster:
|
40
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
41
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
42
|
+
|
43
|
+
"projects/#{project}/locations/#{location}/clusters/#{cluster}"
|
44
|
+
end
|
45
|
+
|
46
|
+
extend self
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
@@ -24,6 +24,25 @@ module Google
|
|
24
24
|
module WorkflowTemplateService
|
25
25
|
# Path helper methods for the WorkflowTemplateService API.
|
26
26
|
module Paths
|
27
|
+
##
|
28
|
+
# Create a fully-qualified Cluster resource string.
|
29
|
+
#
|
30
|
+
# The resource will be in the following format:
|
31
|
+
#
|
32
|
+
# `projects/{project}/locations/{location}/clusters/{cluster}`
|
33
|
+
#
|
34
|
+
# @param project [String]
|
35
|
+
# @param location [String]
|
36
|
+
# @param cluster [String]
|
37
|
+
#
|
38
|
+
# @return [::String]
|
39
|
+
def cluster_path project:, location:, cluster:
|
40
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
41
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
42
|
+
|
43
|
+
"projects/#{project}/locations/#{location}/clusters/#{cluster}"
|
44
|
+
end
|
45
|
+
|
27
46
|
##
|
28
47
|
# Create a fully-qualified Location resource string.
|
29
48
|
#
|
@@ -87,15 +87,13 @@ module Google
|
|
87
87
|
# bucket](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
|
88
88
|
# @!attribute [rw] temp_bucket
|
89
89
|
# @return [::String]
|
90
|
-
# Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs
|
91
|
-
# such as Spark and MapReduce history files.
|
92
|
-
#
|
93
|
-
#
|
94
|
-
#
|
95
|
-
#
|
96
|
-
#
|
97
|
-
# a TTL of 90 days, but you can use any TTL (or none) if you specify a
|
98
|
-
# bucket.
|
90
|
+
# Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs
|
91
|
+
# data, such as Spark and MapReduce history files. If you do not specify a
|
92
|
+
# temp bucket, Dataproc will determine a Cloud Storage location (US, ASIA, or
|
93
|
+
# EU) for your cluster's temp bucket according to the Compute Engine zone
|
94
|
+
# where your cluster is deployed, and then create and manage this
|
95
|
+
# project-level, per-location bucket. The default bucket has a TTL of 90
|
96
|
+
# days, but you can use any TTL (or none) if you specify a bucket.
|
99
97
|
# @!attribute [rw] gce_cluster_config
|
100
98
|
# @return [::Google::Cloud::Dataproc::V1beta2::GceClusterConfig]
|
101
99
|
# Optional. The shared Compute Engine config settings for
|
@@ -148,10 +146,10 @@ module Google
|
|
148
146
|
# Optional. Security related configuration.
|
149
147
|
# @!attribute [rw] gke_cluster_config
|
150
148
|
# @return [::Google::Cloud::Dataproc::V1beta2::GkeClusterConfig]
|
151
|
-
# Optional. The Kubernetes Engine config for Dataproc clusters deployed to
|
152
|
-
# Setting this is considered mutually exclusive with Compute
|
153
|
-
# options such as `gce_cluster_config`, `master_config`,
|
154
|
-
# `secondary_worker_config`, and `autoscaling_config`.
|
149
|
+
# Optional. The Kubernetes Engine config for Dataproc clusters deployed to
|
150
|
+
# Kubernetes. Setting this is considered mutually exclusive with Compute
|
151
|
+
# Engine-based options such as `gce_cluster_config`, `master_config`,
|
152
|
+
# `worker_config`, `secondary_worker_config`, and `autoscaling_config`.
|
155
153
|
class ClusterConfig
|
156
154
|
include ::Google::Protobuf::MessageExts
|
157
155
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -505,7 +503,8 @@ module Google
|
|
505
503
|
# [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json).
|
506
504
|
# @!attribute [rw] auto_delete_time
|
507
505
|
# @return [::Google::Protobuf::Timestamp]
|
508
|
-
# Optional. The time when cluster will be auto-deleted. (see JSON
|
506
|
+
# Optional. The time when cluster will be auto-deleted. (see JSON
|
507
|
+
# representation of
|
509
508
|
# [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
|
510
509
|
# @!attribute [rw] auto_delete_ttl
|
511
510
|
# @return [::Google::Protobuf::Duration]
|
@@ -536,8 +535,8 @@ module Google
|
|
536
535
|
# Specifies Kerberos related configuration.
|
537
536
|
# @!attribute [rw] enable_kerberos
|
538
537
|
# @return [::Boolean]
|
539
|
-
# Optional. Flag to indicate whether to Kerberize the cluster (default:
|
540
|
-
# this field to true to enable Kerberos on a cluster.
|
538
|
+
# Optional. Flag to indicate whether to Kerberize the cluster (default:
|
539
|
+
# false). Set this field to true to enable Kerberos on a cluster.
|
541
540
|
# @!attribute [rw] root_principal_password_uri
|
542
541
|
# @return [::String]
|
543
542
|
# Required. The Cloud Storage URI of a KMS encrypted file containing the root
|
@@ -788,10 +787,11 @@ module Google
|
|
788
787
|
# @!attribute [rw] request_id
|
789
788
|
# @return [::String]
|
790
789
|
# Optional. A unique id used to identify the request. If the server
|
791
|
-
# receives two
|
792
|
-
#
|
793
|
-
#
|
794
|
-
#
|
790
|
+
# receives two
|
791
|
+
# {::Google::Cloud::Dataproc::V1beta2::CreateClusterRequest CreateClusterRequest}
|
792
|
+
# requests with the same id, then the second request will be ignored and the
|
793
|
+
# first {::Google::Longrunning::Operation google.longrunning.Operation} created
|
794
|
+
# and stored in the backend is returned.
|
795
795
|
#
|
796
796
|
# It is recommended to always set this value to a
|
797
797
|
# [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
|
@@ -893,10 +893,11 @@ module Google
|
|
893
893
|
# @!attribute [rw] request_id
|
894
894
|
# @return [::String]
|
895
895
|
# Optional. A unique id used to identify the request. If the server
|
896
|
-
# receives two
|
897
|
-
#
|
898
|
-
#
|
899
|
-
#
|
896
|
+
# receives two
|
897
|
+
# {::Google::Cloud::Dataproc::V1beta2::UpdateClusterRequest UpdateClusterRequest}
|
898
|
+
# requests with the same id, then the second request will be ignored and the
|
899
|
+
# first {::Google::Longrunning::Operation google.longrunning.Operation} created
|
900
|
+
# and stored in the backend is returned.
|
900
901
|
#
|
901
902
|
# It is recommended to always set this value to a
|
902
903
|
# [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
|
@@ -926,10 +927,11 @@ module Google
|
|
926
927
|
# @!attribute [rw] request_id
|
927
928
|
# @return [::String]
|
928
929
|
# Optional. A unique id used to identify the request. If the server
|
929
|
-
# receives two
|
930
|
-
#
|
931
|
-
#
|
932
|
-
#
|
930
|
+
# receives two
|
931
|
+
# {::Google::Cloud::Dataproc::V1beta2::DeleteClusterRequest DeleteClusterRequest}
|
932
|
+
# requests with the same id, then the second request will be ignored and the
|
933
|
+
# first {::Google::Longrunning::Operation google.longrunning.Operation} created
|
934
|
+
# and stored in the backend is returned.
|
933
935
|
#
|
934
936
|
# It is recommended to always set this value to a
|
935
937
|
# [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-dataproc-v1beta2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.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: 2020-12-
|
11
|
+
date: 2020-12-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -172,6 +172,7 @@ files:
|
|
172
172
|
- lib/google/cloud/dataproc/v1beta2/cluster_controller/client.rb
|
173
173
|
- lib/google/cloud/dataproc/v1beta2/cluster_controller/credentials.rb
|
174
174
|
- lib/google/cloud/dataproc/v1beta2/cluster_controller/operations.rb
|
175
|
+
- lib/google/cloud/dataproc/v1beta2/cluster_controller/paths.rb
|
175
176
|
- lib/google/cloud/dataproc/v1beta2/clusters_pb.rb
|
176
177
|
- lib/google/cloud/dataproc/v1beta2/clusters_services_pb.rb
|
177
178
|
- lib/google/cloud/dataproc/v1beta2/job_controller.rb
|