google-cloud-dataproc-v1beta2 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dc5697ee3b56bf9c64b10b5e597ed2332edc1b1031fd564cfcaf0bc2cdb4a84a
4
- data.tar.gz: a0aa4e182bb47dc1c13e63d74c976fe8e50bf2d8e6541470ee263f985ddc8c60
3
+ metadata.gz: 15474ab40fc01dc4310ecd10178de2d2789802fff19b168c6cf91366bf5f4de2
4
+ data.tar.gz: 6b7c6695179ef869027279a61369e1a3e52fff2e89484ad1a353ee16170a0dbc
5
5
  SHA512:
6
- metadata.gz: 49149dfed31af6440e594baff734e7ca80c95d705b406809510405e04ddbd01d84db1abacb1eb9bd8edaa482a2d8d36c1025f335c0579705d52689e311128b56
7
- data.tar.gz: feb833b7ef891722581cc0118e491702e3eacb2ce449b6e2fcf4c98da2ae0ad9b0f438d14c8a65fe4a7b64d05ab79c43a220c5c0f497146313eee3347af04718
6
+ metadata.gz: fa1611a8c58295f789462307ba30bc9cf86b947c4044c184e95dd7784c374006efbbaa8869c88f40980c36a306e5d33d8ebe911cbb167e55453fd9d9856b7eb4
7
+ data.tar.gz: d8664bc94efb09efa67cb1ac01ade44f4c2448313d8a23c5ff7d4ae5d587f7185e12b6b8550ac38f8b93ff1b41eb93d3458cc8e5b414912189f75de437c45716
@@ -36,3 +36,6 @@ module Google
36
36
  end
37
37
  end
38
38
  end
39
+
40
+ helper_path = ::File.join __dir__, "v1beta2", "_helpers.rb"
41
+ require "google/cloud/dataproc/v1beta2/_helpers" if ::File.file? helper_path
@@ -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 {::Google::Cloud::Dataproc::V1beta2::CreateClusterRequest CreateClusterRequest} requests with the same
236
- # id, then the second request will be ignored and the
237
- # first {::Google::Longrunning::Operation google.longrunning.Operation} created and stored in the backend
238
- # is returned.
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 {::Google::Cloud::Dataproc::V1beta2::UpdateClusterRequest UpdateClusterRequest} requests with the same
396
- # id, then the second request will be ignored and the
397
- # first {::Google::Longrunning::Operation google.longrunning.Operation} created and stored in the
398
- # backend is returned.
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 {::Google::Cloud::Dataproc::V1beta2::DeleteClusterRequest DeleteClusterRequest} requests with the same
487
- # id, then the second request will be ignored and the
488
- # first {::Google::Longrunning::Operation google.longrunning.Operation} created and stored in the
489
- # backend is returned.
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
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Dataproc
23
23
  module V1beta2
24
- VERSION = "0.3.0"
24
+ VERSION = "0.4.0"
25
25
  end
26
26
  end
27
27
  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 data,
91
- # such as Spark and MapReduce history files.
92
- # If you do not specify a temp bucket,
93
- # Dataproc will determine a Cloud Storage location (US,
94
- # ASIA, or EU) for your cluster's temp bucket according to the
95
- # Compute Engine zone where your cluster is deployed, and then create
96
- # and manage this project-level, per-location bucket. The default bucket has
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 Kubernetes.
152
- # Setting this is considered mutually exclusive with Compute Engine-based
153
- # options such as `gce_cluster_config`, `master_config`, `worker_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 representation of
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: false). Set
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 {::Google::Cloud::Dataproc::V1beta2::CreateClusterRequest CreateClusterRequest} requests with the same
792
- # id, then the second request will be ignored and the
793
- # first {::Google::Longrunning::Operation google.longrunning.Operation} created and stored in the backend
794
- # is returned.
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 {::Google::Cloud::Dataproc::V1beta2::UpdateClusterRequest UpdateClusterRequest} requests with the same
897
- # id, then the second request will be ignored and the
898
- # first {::Google::Longrunning::Operation google.longrunning.Operation} created and stored in the
899
- # backend is returned.
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 {::Google::Cloud::Dataproc::V1beta2::DeleteClusterRequest DeleteClusterRequest} requests with the same
930
- # id, then the second request will be ignored and the
931
- # first {::Google::Longrunning::Operation google.longrunning.Operation} created and stored in the
932
- # backend is returned.
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.3.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-02 00:00:00.000000000 Z
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