google-cloud-dataproc 2.1.0 → 2.2.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: d3bcfcc052391b4671dc125e462cbd28fe10e0a321219f651c8dbbb14fd17bfa
4
- data.tar.gz: 89a0f273e90cf429943206db7f0786dbc3f414a8b6b1560f22323f57f434e3d2
3
+ metadata.gz: 5d00917acf7fa53dafd7e7833b7c2d923398fab72b1e0cbeaad76a1f01cc3098
4
+ data.tar.gz: ed19aba93109b589a9346798f5eac6557145f7c54f2e8a6f30dc576e55724129
5
5
  SHA512:
6
- metadata.gz: 38a688f37c4324e3161ca2695d145c1781e945fcc8f9a54c77eb2598862daec858ecfc5fe2fc128407308f93db7de8358694e4d5efbadc93f8e6ed0200720b94
7
- data.tar.gz: 1954420163a33b572c0ee27aa7ffdaaae37250c5e06b432961567f4eedc7ce008845f512d9c0895f5789da2ea965728128ad551181122c571f9b503830c1e3f6
6
+ metadata.gz: b7b22953a293572d98c1dd22fc8d665319c0fe45eeb45cc112cc35e171ad1231c6a2834da95e016089802b94d73abb7ce41f3d281a9c0077bff4a938d14035c7
7
+ data.tar.gz: 4f1b2cb1019a036b3cb4e0f30f0845ae938a45886a58e9bb4315c5a9b04905369c6b19f747dfa92a237da3a23e0e8eda96abc0a7a016ed3537851187a5c4975c
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
@@ -45,7 +45,7 @@ See the {file:MIGRATING.md MIGRATING.md} document for more information.
45
45
  ## Enabling Logging
46
46
 
47
47
  To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
48
- The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib/libdoc/logger/rdoc/Logger.html) as shown below,
48
+ The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
49
49
  or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
50
50
  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)
51
51
  and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
@@ -20,7 +20,7 @@
20
20
  module Google
21
21
  module Cloud
22
22
  module Dataproc
23
- VERSION = "2.1.0"
23
+ VERSION = "2.2.0"
24
24
  end
25
25
  end
26
26
  end
@@ -49,8 +49,8 @@ module Google
49
49
  #
50
50
  # By default, this returns an instance of
51
51
  # [Google::Cloud::Dataproc::V1::AutoscalingPolicyService::Client](https://googleapis.dev/ruby/google-cloud-dataproc-v1/latest/Google/Cloud/Dataproc/V1/AutoscalingPolicyService/Client.html)
52
- # for version V1 of the API.
53
- # However, you can specify specify a different API version by passing it in the
52
+ # for a gRPC client for version V1 of the API.
53
+ # However, you can specify a different API version by passing it in the
54
54
  # `version` parameter. If the AutoscalingPolicyService service is
55
55
  # supported by that API version, and the corresponding gem is available, the
56
56
  # appropriate versioned client will be returned.
@@ -62,7 +62,7 @@ module Google
62
62
  #
63
63
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
64
64
  # Defaults to `:v1`.
65
- # @return [AutoscalingPolicyService::Client] A client object for the specified version.
65
+ # @return [::Object] A client object for the specified version.
66
66
  #
67
67
  def self.autoscaling_policy_service version: :v1, &block
68
68
  require "google/cloud/dataproc/#{version.to_s.downcase}"
@@ -71,8 +71,8 @@ module Google
71
71
  .constants
72
72
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
73
73
  .first
74
- package_module = Google::Cloud::Dataproc.const_get package_name
75
- package_module.const_get(:AutoscalingPolicyService).const_get(:Client).new(&block)
74
+ service_module = Google::Cloud::Dataproc.const_get(package_name).const_get(:AutoscalingPolicyService)
75
+ service_module.const_get(:Client).new(&block)
76
76
  end
77
77
 
78
78
  ##
@@ -80,8 +80,8 @@ module Google
80
80
  #
81
81
  # By default, this returns an instance of
82
82
  # [Google::Cloud::Dataproc::V1::BatchController::Client](https://googleapis.dev/ruby/google-cloud-dataproc-v1/latest/Google/Cloud/Dataproc/V1/BatchController/Client.html)
83
- # for version V1 of the API.
84
- # However, you can specify specify a different API version by passing it in the
83
+ # for a gRPC client for version V1 of the API.
84
+ # However, you can specify a different API version by passing it in the
85
85
  # `version` parameter. If the BatchController service is
86
86
  # supported by that API version, and the corresponding gem is available, the
87
87
  # appropriate versioned client will be returned.
@@ -92,7 +92,7 @@ module Google
92
92
  #
93
93
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
94
94
  # Defaults to `:v1`.
95
- # @return [BatchController::Client] A client object for the specified version.
95
+ # @return [::Object] A client object for the specified version.
96
96
  #
97
97
  def self.batch_controller version: :v1, &block
98
98
  require "google/cloud/dataproc/#{version.to_s.downcase}"
@@ -101,8 +101,8 @@ module Google
101
101
  .constants
102
102
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
103
103
  .first
104
- package_module = Google::Cloud::Dataproc.const_get package_name
105
- package_module.const_get(:BatchController).const_get(:Client).new(&block)
104
+ service_module = Google::Cloud::Dataproc.const_get(package_name).const_get(:BatchController)
105
+ service_module.const_get(:Client).new(&block)
106
106
  end
107
107
 
108
108
  ##
@@ -110,8 +110,8 @@ module Google
110
110
  #
111
111
  # By default, this returns an instance of
112
112
  # [Google::Cloud::Dataproc::V1::ClusterController::Client](https://googleapis.dev/ruby/google-cloud-dataproc-v1/latest/Google/Cloud/Dataproc/V1/ClusterController/Client.html)
113
- # for version V1 of the API.
114
- # However, you can specify specify a different API version by passing it in the
113
+ # for a gRPC client for version V1 of the API.
114
+ # However, you can specify a different API version by passing it in the
115
115
  # `version` parameter. If the ClusterController service is
116
116
  # supported by that API version, and the corresponding gem is available, the
117
117
  # appropriate versioned client will be returned.
@@ -123,7 +123,7 @@ module Google
123
123
  #
124
124
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
125
125
  # Defaults to `:v1`.
126
- # @return [ClusterController::Client] A client object for the specified version.
126
+ # @return [::Object] A client object for the specified version.
127
127
  #
128
128
  def self.cluster_controller version: :v1, &block
129
129
  require "google/cloud/dataproc/#{version.to_s.downcase}"
@@ -132,8 +132,8 @@ module Google
132
132
  .constants
133
133
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
134
134
  .first
135
- package_module = Google::Cloud::Dataproc.const_get package_name
136
- package_module.const_get(:ClusterController).const_get(:Client).new(&block)
135
+ service_module = Google::Cloud::Dataproc.const_get(package_name).const_get(:ClusterController)
136
+ service_module.const_get(:Client).new(&block)
137
137
  end
138
138
 
139
139
  ##
@@ -141,8 +141,8 @@ module Google
141
141
  #
142
142
  # By default, this returns an instance of
143
143
  # [Google::Cloud::Dataproc::V1::JobController::Client](https://googleapis.dev/ruby/google-cloud-dataproc-v1/latest/Google/Cloud/Dataproc/V1/JobController/Client.html)
144
- # for version V1 of the API.
145
- # However, you can specify specify a different API version by passing it in the
144
+ # for a gRPC client for version V1 of the API.
145
+ # However, you can specify a different API version by passing it in the
146
146
  # `version` parameter. If the JobController service is
147
147
  # supported by that API version, and the corresponding gem is available, the
148
148
  # appropriate versioned client will be returned.
@@ -153,7 +153,7 @@ module Google
153
153
  #
154
154
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
155
155
  # Defaults to `:v1`.
156
- # @return [JobController::Client] A client object for the specified version.
156
+ # @return [::Object] A client object for the specified version.
157
157
  #
158
158
  def self.job_controller version: :v1, &block
159
159
  require "google/cloud/dataproc/#{version.to_s.downcase}"
@@ -162,8 +162,8 @@ module Google
162
162
  .constants
163
163
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
164
164
  .first
165
- package_module = Google::Cloud::Dataproc.const_get package_name
166
- package_module.const_get(:JobController).const_get(:Client).new(&block)
165
+ service_module = Google::Cloud::Dataproc.const_get(package_name).const_get(:JobController)
166
+ service_module.const_get(:Client).new(&block)
167
167
  end
168
168
 
169
169
  ##
@@ -171,8 +171,8 @@ module Google
171
171
  #
172
172
  # By default, this returns an instance of
173
173
  # [Google::Cloud::Dataproc::V1::WorkflowTemplateService::Client](https://googleapis.dev/ruby/google-cloud-dataproc-v1/latest/Google/Cloud/Dataproc/V1/WorkflowTemplateService/Client.html)
174
- # for version V1 of the API.
175
- # However, you can specify specify a different API version by passing it in the
174
+ # for a gRPC client for version V1 of the API.
175
+ # However, you can specify a different API version by passing it in the
176
176
  # `version` parameter. If the WorkflowTemplateService service is
177
177
  # supported by that API version, and the corresponding gem is available, the
178
178
  # appropriate versioned client will be returned.
@@ -184,7 +184,7 @@ module Google
184
184
  #
185
185
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
186
186
  # Defaults to `:v1`.
187
- # @return [WorkflowTemplateService::Client] A client object for the specified version.
187
+ # @return [::Object] A client object for the specified version.
188
188
  #
189
189
  def self.workflow_template_service version: :v1, &block
190
190
  require "google/cloud/dataproc/#{version.to_s.downcase}"
@@ -193,8 +193,39 @@ module Google
193
193
  .constants
194
194
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
195
195
  .first
196
- package_module = Google::Cloud::Dataproc.const_get package_name
197
- package_module.const_get(:WorkflowTemplateService).const_get(:Client).new(&block)
196
+ service_module = Google::Cloud::Dataproc.const_get(package_name).const_get(:WorkflowTemplateService)
197
+ service_module.const_get(:Client).new(&block)
198
+ end
199
+
200
+ ##
201
+ # Create a new client object for NodeGroupController.
202
+ #
203
+ # By default, this returns an instance of
204
+ # [Google::Cloud::Dataproc::V1::NodeGroupController::Client](https://googleapis.dev/ruby/google-cloud-dataproc-v1/latest/Google/Cloud/Dataproc/V1/NodeGroupController/Client.html)
205
+ # for a gRPC client for version V1 of the API.
206
+ # However, you can specify a different API version by passing it in the
207
+ # `version` parameter. If the NodeGroupController service is
208
+ # supported by that API version, and the corresponding gem is available, the
209
+ # appropriate versioned client will be returned.
210
+ #
211
+ # ## About NodeGroupController
212
+ #
213
+ # The `NodeGroupControllerService` provides methods to manage node groups
214
+ # of Compute Engine managed instances.
215
+ #
216
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
217
+ # Defaults to `:v1`.
218
+ # @return [::Object] A client object for the specified version.
219
+ #
220
+ def self.node_group_controller version: :v1, &block
221
+ require "google/cloud/dataproc/#{version.to_s.downcase}"
222
+
223
+ package_name = Google::Cloud::Dataproc
224
+ .constants
225
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
226
+ .first
227
+ service_module = Google::Cloud::Dataproc.const_get(package_name).const_get(:NodeGroupController)
228
+ service_module.const_get(:Client).new(&block)
198
229
  end
199
230
 
200
231
  ##
@@ -214,7 +245,7 @@ module Google
214
245
  # * `timeout` (*type:* `Numeric`) -
215
246
  # Default timeout in seconds.
216
247
  # * `metadata` (*type:* `Hash{Symbol=>String}`) -
217
- # Additional gRPC headers to be sent with the call.
248
+ # Additional headers to be sent with the call.
218
249
  # * `retry_policy` (*type:* `Hash`) -
219
250
  # The retry policy. The value is a hash with the following keys:
220
251
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-dataproc
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.2.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-07-02 00:00:00.000000000 Z
11
+ date: 2023-01-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-cloud-core
@@ -30,7 +30,7 @@ dependencies:
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '0.7'
33
+ version: '0.14'
34
34
  - - "<"
35
35
  - !ruby/object:Gem::Version
36
36
  version: 2.a
@@ -40,7 +40,7 @@ dependencies:
40
40
  requirements:
41
41
  - - ">="
42
42
  - !ruby/object:Gem::Version
43
- version: '0.7'
43
+ version: '0.14'
44
44
  - - "<"
45
45
  - !ruby/object:Gem::Version
46
46
  version: 2.a