google-cloud-dataproc 2.6.1 → 2.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +31 -1
- data/lib/google/cloud/dataproc/version.rb +1 -1
- data/lib/google/cloud/dataproc.rb +288 -0
- metadata +4 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 41c4a566ab0f6118e43305057aca7187ef7d85cbd503720d0df1c2dbb1882d13
|
4
|
+
data.tar.gz: f536cc8a17614744b957dd0e410003727815df9e7eeb095255f8829edff993ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3f48ac6b0c5abab427d05863829fe1e24a688f625efbe8e693a605710121058f8f3e32e29e0e74a2295b56fb7b01b638b6fabd2bd617ea098f76abac4b2275a8
|
7
|
+
data.tar.gz: 3084bbf755752fe3f0cd48f6ce02016398d07c0bb6b839eea019c69dd64bc2932a5d13f8292f4698e655eb54e762b4627b2ad5bff6c5c61325d6de63760dd927
|
data/README.md
CHANGED
@@ -42,9 +42,39 @@ and includes substantial interface changes. Existing code written for earlier
|
|
42
42
|
versions of this library will likely require updates to use this version.
|
43
43
|
See the {file:MIGRATING.md MIGRATING.md} document for more information.
|
44
44
|
|
45
|
+
## Debug Logging
|
46
|
+
|
47
|
+
This library comes with opt-in Debug Logging that can help you troubleshoot
|
48
|
+
your application's integration with the API. When logging is activated, key
|
49
|
+
events such as requests and responses, along with data payloads and metadata
|
50
|
+
such as headers and client configuration, are logged to the standard error
|
51
|
+
stream.
|
52
|
+
|
53
|
+
**WARNING:** Client Library Debug Logging includes your data payloads in
|
54
|
+
plaintext, which could include sensitive data such as PII for yourself or your
|
55
|
+
customers, private keys, or other security data that could be compromising if
|
56
|
+
leaked. Always practice good data hygiene with your application logs, and follow
|
57
|
+
the principle of least access. Google also recommends that Client Library Debug
|
58
|
+
Logging be enabled only temporarily during active debugging, and not used
|
59
|
+
permanently in production.
|
60
|
+
|
61
|
+
To enable logging, set the environment variable `GOOGLE_SDK_RUBY_LOGGING_GEMS`
|
62
|
+
to the value `all`. Alternatively, you can set the value to a comma-delimited
|
63
|
+
list of client library gem names. This will select the default logging behavior,
|
64
|
+
which writes logs to the standard error stream. On a local workstation, this may
|
65
|
+
result in logs appearing on the console. When running on a Google Cloud hosting
|
66
|
+
service such as [Google Cloud Run](https://cloud.google.com/run), this generally
|
67
|
+
results in logs appearing alongside your application logs in the
|
68
|
+
[Google Cloud Logging](https://cloud.google.com/logging/) service.
|
69
|
+
|
70
|
+
Debug logging also requires that the versioned clients for this service be
|
71
|
+
sufficiently recent, released after about Dec 10, 2024. If logging is not
|
72
|
+
working, try updating the versioned clients in your bundle or installed gems:
|
73
|
+
[google-cloud-dataproc-v1](https://cloud.google.com/ruby/docs/reference/google-cloud-dataproc-v1/latest).
|
74
|
+
|
45
75
|
## Supported Ruby Versions
|
46
76
|
|
47
|
-
This library is supported on Ruby
|
77
|
+
This library is supported on Ruby 3.0+.
|
48
78
|
|
49
79
|
Google provides official support for Ruby versions that are actively supported
|
50
80
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
@@ -58,6 +58,11 @@ module Google
|
|
58
58
|
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
59
59
|
# the `transport` parameter.
|
60
60
|
#
|
61
|
+
# Raises an exception if the currently installed versioned client gem for the
|
62
|
+
# given API version does not support the given transport of the AutoscalingPolicyService service.
|
63
|
+
# You can determine whether the method will succeed by calling
|
64
|
+
# {Google::Cloud::Dataproc.autoscaling_policy_service_available?}.
|
65
|
+
#
|
61
66
|
# ## About AutoscalingPolicyService
|
62
67
|
#
|
63
68
|
# The API interface for managing autoscaling policies in the
|
@@ -80,6 +85,37 @@ module Google
|
|
80
85
|
service_module.const_get(:Client).new(&block)
|
81
86
|
end
|
82
87
|
|
88
|
+
##
|
89
|
+
# Determines whether the AutoscalingPolicyService service is supported by the current client.
|
90
|
+
# If true, you can retrieve a client object by calling {Google::Cloud::Dataproc.autoscaling_policy_service}.
|
91
|
+
# If false, that method will raise an exception. This could happen if the given
|
92
|
+
# API version does not exist or does not support the AutoscalingPolicyService service,
|
93
|
+
# or if the versioned client gem needs an update to support the AutoscalingPolicyService service.
|
94
|
+
#
|
95
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
96
|
+
# Defaults to `:v1`.
|
97
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
98
|
+
# @return [boolean] Whether the service is available.
|
99
|
+
#
|
100
|
+
def self.autoscaling_policy_service_available? version: :v1, transport: :grpc
|
101
|
+
require "google/cloud/dataproc/#{version.to_s.downcase}"
|
102
|
+
package_name = Google::Cloud::Dataproc
|
103
|
+
.constants
|
104
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
105
|
+
.first
|
106
|
+
return false unless package_name
|
107
|
+
service_module = Google::Cloud::Dataproc.const_get package_name
|
108
|
+
return false unless service_module.const_defined? :AutoscalingPolicyService
|
109
|
+
service_module = service_module.const_get :AutoscalingPolicyService
|
110
|
+
if transport == :rest
|
111
|
+
return false unless service_module.const_defined? :Rest
|
112
|
+
service_module = service_module.const_get :Rest
|
113
|
+
end
|
114
|
+
service_module.const_defined? :Client
|
115
|
+
rescue ::LoadError
|
116
|
+
false
|
117
|
+
end
|
118
|
+
|
83
119
|
##
|
84
120
|
# Create a new client object for BatchController.
|
85
121
|
#
|
@@ -93,6 +129,11 @@ module Google
|
|
93
129
|
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
94
130
|
# the `transport` parameter.
|
95
131
|
#
|
132
|
+
# Raises an exception if the currently installed versioned client gem for the
|
133
|
+
# given API version does not support the given transport of the BatchController service.
|
134
|
+
# You can determine whether the method will succeed by calling
|
135
|
+
# {Google::Cloud::Dataproc.batch_controller_available?}.
|
136
|
+
#
|
96
137
|
# ## About BatchController
|
97
138
|
#
|
98
139
|
# The BatchController provides methods to manage batch workloads.
|
@@ -114,6 +155,37 @@ module Google
|
|
114
155
|
service_module.const_get(:Client).new(&block)
|
115
156
|
end
|
116
157
|
|
158
|
+
##
|
159
|
+
# Determines whether the BatchController service is supported by the current client.
|
160
|
+
# If true, you can retrieve a client object by calling {Google::Cloud::Dataproc.batch_controller}.
|
161
|
+
# If false, that method will raise an exception. This could happen if the given
|
162
|
+
# API version does not exist or does not support the BatchController service,
|
163
|
+
# or if the versioned client gem needs an update to support the BatchController service.
|
164
|
+
#
|
165
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
166
|
+
# Defaults to `:v1`.
|
167
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
168
|
+
# @return [boolean] Whether the service is available.
|
169
|
+
#
|
170
|
+
def self.batch_controller_available? version: :v1, transport: :grpc
|
171
|
+
require "google/cloud/dataproc/#{version.to_s.downcase}"
|
172
|
+
package_name = Google::Cloud::Dataproc
|
173
|
+
.constants
|
174
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
175
|
+
.first
|
176
|
+
return false unless package_name
|
177
|
+
service_module = Google::Cloud::Dataproc.const_get package_name
|
178
|
+
return false unless service_module.const_defined? :BatchController
|
179
|
+
service_module = service_module.const_get :BatchController
|
180
|
+
if transport == :rest
|
181
|
+
return false unless service_module.const_defined? :Rest
|
182
|
+
service_module = service_module.const_get :Rest
|
183
|
+
end
|
184
|
+
service_module.const_defined? :Client
|
185
|
+
rescue ::LoadError
|
186
|
+
false
|
187
|
+
end
|
188
|
+
|
117
189
|
##
|
118
190
|
# Create a new client object for ClusterController.
|
119
191
|
#
|
@@ -127,6 +199,11 @@ module Google
|
|
127
199
|
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
128
200
|
# the `transport` parameter.
|
129
201
|
#
|
202
|
+
# Raises an exception if the currently installed versioned client gem for the
|
203
|
+
# given API version does not support the given transport of the ClusterController service.
|
204
|
+
# You can determine whether the method will succeed by calling
|
205
|
+
# {Google::Cloud::Dataproc.cluster_controller_available?}.
|
206
|
+
#
|
130
207
|
# ## About ClusterController
|
131
208
|
#
|
132
209
|
# The ClusterControllerService provides methods to manage clusters
|
@@ -149,6 +226,37 @@ module Google
|
|
149
226
|
service_module.const_get(:Client).new(&block)
|
150
227
|
end
|
151
228
|
|
229
|
+
##
|
230
|
+
# Determines whether the ClusterController service is supported by the current client.
|
231
|
+
# If true, you can retrieve a client object by calling {Google::Cloud::Dataproc.cluster_controller}.
|
232
|
+
# If false, that method will raise an exception. This could happen if the given
|
233
|
+
# API version does not exist or does not support the ClusterController service,
|
234
|
+
# or if the versioned client gem needs an update to support the ClusterController service.
|
235
|
+
#
|
236
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
237
|
+
# Defaults to `:v1`.
|
238
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
239
|
+
# @return [boolean] Whether the service is available.
|
240
|
+
#
|
241
|
+
def self.cluster_controller_available? version: :v1, transport: :grpc
|
242
|
+
require "google/cloud/dataproc/#{version.to_s.downcase}"
|
243
|
+
package_name = Google::Cloud::Dataproc
|
244
|
+
.constants
|
245
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
246
|
+
.first
|
247
|
+
return false unless package_name
|
248
|
+
service_module = Google::Cloud::Dataproc.const_get package_name
|
249
|
+
return false unless service_module.const_defined? :ClusterController
|
250
|
+
service_module = service_module.const_get :ClusterController
|
251
|
+
if transport == :rest
|
252
|
+
return false unless service_module.const_defined? :Rest
|
253
|
+
service_module = service_module.const_get :Rest
|
254
|
+
end
|
255
|
+
service_module.const_defined? :Client
|
256
|
+
rescue ::LoadError
|
257
|
+
false
|
258
|
+
end
|
259
|
+
|
152
260
|
##
|
153
261
|
# Create a new client object for JobController.
|
154
262
|
#
|
@@ -162,6 +270,11 @@ module Google
|
|
162
270
|
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
163
271
|
# the `transport` parameter.
|
164
272
|
#
|
273
|
+
# Raises an exception if the currently installed versioned client gem for the
|
274
|
+
# given API version does not support the given transport of the JobController service.
|
275
|
+
# You can determine whether the method will succeed by calling
|
276
|
+
# {Google::Cloud::Dataproc.job_controller_available?}.
|
277
|
+
#
|
165
278
|
# ## About JobController
|
166
279
|
#
|
167
280
|
# The JobController provides methods to manage jobs.
|
@@ -183,6 +296,37 @@ module Google
|
|
183
296
|
service_module.const_get(:Client).new(&block)
|
184
297
|
end
|
185
298
|
|
299
|
+
##
|
300
|
+
# Determines whether the JobController service is supported by the current client.
|
301
|
+
# If true, you can retrieve a client object by calling {Google::Cloud::Dataproc.job_controller}.
|
302
|
+
# If false, that method will raise an exception. This could happen if the given
|
303
|
+
# API version does not exist or does not support the JobController service,
|
304
|
+
# or if the versioned client gem needs an update to support the JobController service.
|
305
|
+
#
|
306
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
307
|
+
# Defaults to `:v1`.
|
308
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
309
|
+
# @return [boolean] Whether the service is available.
|
310
|
+
#
|
311
|
+
def self.job_controller_available? version: :v1, transport: :grpc
|
312
|
+
require "google/cloud/dataproc/#{version.to_s.downcase}"
|
313
|
+
package_name = Google::Cloud::Dataproc
|
314
|
+
.constants
|
315
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
316
|
+
.first
|
317
|
+
return false unless package_name
|
318
|
+
service_module = Google::Cloud::Dataproc.const_get package_name
|
319
|
+
return false unless service_module.const_defined? :JobController
|
320
|
+
service_module = service_module.const_get :JobController
|
321
|
+
if transport == :rest
|
322
|
+
return false unless service_module.const_defined? :Rest
|
323
|
+
service_module = service_module.const_get :Rest
|
324
|
+
end
|
325
|
+
service_module.const_defined? :Client
|
326
|
+
rescue ::LoadError
|
327
|
+
false
|
328
|
+
end
|
329
|
+
|
186
330
|
##
|
187
331
|
# Create a new client object for NodeGroupController.
|
188
332
|
#
|
@@ -196,6 +340,11 @@ module Google
|
|
196
340
|
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
197
341
|
# the `transport` parameter.
|
198
342
|
#
|
343
|
+
# Raises an exception if the currently installed versioned client gem for the
|
344
|
+
# given API version does not support the given transport of the NodeGroupController service.
|
345
|
+
# You can determine whether the method will succeed by calling
|
346
|
+
# {Google::Cloud::Dataproc.node_group_controller_available?}.
|
347
|
+
#
|
199
348
|
# ## About NodeGroupController
|
200
349
|
#
|
201
350
|
# The `NodeGroupControllerService` provides methods to manage node groups
|
@@ -218,6 +367,37 @@ module Google
|
|
218
367
|
service_module.const_get(:Client).new(&block)
|
219
368
|
end
|
220
369
|
|
370
|
+
##
|
371
|
+
# Determines whether the NodeGroupController service is supported by the current client.
|
372
|
+
# If true, you can retrieve a client object by calling {Google::Cloud::Dataproc.node_group_controller}.
|
373
|
+
# If false, that method will raise an exception. This could happen if the given
|
374
|
+
# API version does not exist or does not support the NodeGroupController service,
|
375
|
+
# or if the versioned client gem needs an update to support the NodeGroupController service.
|
376
|
+
#
|
377
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
378
|
+
# Defaults to `:v1`.
|
379
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
380
|
+
# @return [boolean] Whether the service is available.
|
381
|
+
#
|
382
|
+
def self.node_group_controller_available? version: :v1, transport: :grpc
|
383
|
+
require "google/cloud/dataproc/#{version.to_s.downcase}"
|
384
|
+
package_name = Google::Cloud::Dataproc
|
385
|
+
.constants
|
386
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
387
|
+
.first
|
388
|
+
return false unless package_name
|
389
|
+
service_module = Google::Cloud::Dataproc.const_get package_name
|
390
|
+
return false unless service_module.const_defined? :NodeGroupController
|
391
|
+
service_module = service_module.const_get :NodeGroupController
|
392
|
+
if transport == :rest
|
393
|
+
return false unless service_module.const_defined? :Rest
|
394
|
+
service_module = service_module.const_get :Rest
|
395
|
+
end
|
396
|
+
service_module.const_defined? :Client
|
397
|
+
rescue ::LoadError
|
398
|
+
false
|
399
|
+
end
|
400
|
+
|
221
401
|
##
|
222
402
|
# Create a new client object for SessionController.
|
223
403
|
#
|
@@ -231,6 +411,11 @@ module Google
|
|
231
411
|
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
232
412
|
# the `transport` parameter.
|
233
413
|
#
|
414
|
+
# Raises an exception if the currently installed versioned client gem for the
|
415
|
+
# given API version does not support the given transport of the SessionController service.
|
416
|
+
# You can determine whether the method will succeed by calling
|
417
|
+
# {Google::Cloud::Dataproc.session_controller_available?}.
|
418
|
+
#
|
234
419
|
# ## About SessionController
|
235
420
|
#
|
236
421
|
# The `SessionController` provides methods to manage interactive sessions.
|
@@ -252,6 +437,37 @@ module Google
|
|
252
437
|
service_module.const_get(:Client).new(&block)
|
253
438
|
end
|
254
439
|
|
440
|
+
##
|
441
|
+
# Determines whether the SessionController service is supported by the current client.
|
442
|
+
# If true, you can retrieve a client object by calling {Google::Cloud::Dataproc.session_controller}.
|
443
|
+
# If false, that method will raise an exception. This could happen if the given
|
444
|
+
# API version does not exist or does not support the SessionController service,
|
445
|
+
# or if the versioned client gem needs an update to support the SessionController service.
|
446
|
+
#
|
447
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
448
|
+
# Defaults to `:v1`.
|
449
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
450
|
+
# @return [boolean] Whether the service is available.
|
451
|
+
#
|
452
|
+
def self.session_controller_available? version: :v1, transport: :grpc
|
453
|
+
require "google/cloud/dataproc/#{version.to_s.downcase}"
|
454
|
+
package_name = Google::Cloud::Dataproc
|
455
|
+
.constants
|
456
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
457
|
+
.first
|
458
|
+
return false unless package_name
|
459
|
+
service_module = Google::Cloud::Dataproc.const_get package_name
|
460
|
+
return false unless service_module.const_defined? :SessionController
|
461
|
+
service_module = service_module.const_get :SessionController
|
462
|
+
if transport == :rest
|
463
|
+
return false unless service_module.const_defined? :Rest
|
464
|
+
service_module = service_module.const_get :Rest
|
465
|
+
end
|
466
|
+
service_module.const_defined? :Client
|
467
|
+
rescue ::LoadError
|
468
|
+
false
|
469
|
+
end
|
470
|
+
|
255
471
|
##
|
256
472
|
# Create a new client object for SessionTemplateController.
|
257
473
|
#
|
@@ -265,6 +481,11 @@ module Google
|
|
265
481
|
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
266
482
|
# the `transport` parameter.
|
267
483
|
#
|
484
|
+
# Raises an exception if the currently installed versioned client gem for the
|
485
|
+
# given API version does not support the given transport of the SessionTemplateController service.
|
486
|
+
# You can determine whether the method will succeed by calling
|
487
|
+
# {Google::Cloud::Dataproc.session_template_controller_available?}.
|
488
|
+
#
|
268
489
|
# ## About SessionTemplateController
|
269
490
|
#
|
270
491
|
# The SessionTemplateController provides methods to manage session templates.
|
@@ -286,6 +507,37 @@ module Google
|
|
286
507
|
service_module.const_get(:Client).new(&block)
|
287
508
|
end
|
288
509
|
|
510
|
+
##
|
511
|
+
# Determines whether the SessionTemplateController service is supported by the current client.
|
512
|
+
# If true, you can retrieve a client object by calling {Google::Cloud::Dataproc.session_template_controller}.
|
513
|
+
# If false, that method will raise an exception. This could happen if the given
|
514
|
+
# API version does not exist or does not support the SessionTemplateController service,
|
515
|
+
# or if the versioned client gem needs an update to support the SessionTemplateController service.
|
516
|
+
#
|
517
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
518
|
+
# Defaults to `:v1`.
|
519
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
520
|
+
# @return [boolean] Whether the service is available.
|
521
|
+
#
|
522
|
+
def self.session_template_controller_available? version: :v1, transport: :grpc
|
523
|
+
require "google/cloud/dataproc/#{version.to_s.downcase}"
|
524
|
+
package_name = Google::Cloud::Dataproc
|
525
|
+
.constants
|
526
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
527
|
+
.first
|
528
|
+
return false unless package_name
|
529
|
+
service_module = Google::Cloud::Dataproc.const_get package_name
|
530
|
+
return false unless service_module.const_defined? :SessionTemplateController
|
531
|
+
service_module = service_module.const_get :SessionTemplateController
|
532
|
+
if transport == :rest
|
533
|
+
return false unless service_module.const_defined? :Rest
|
534
|
+
service_module = service_module.const_get :Rest
|
535
|
+
end
|
536
|
+
service_module.const_defined? :Client
|
537
|
+
rescue ::LoadError
|
538
|
+
false
|
539
|
+
end
|
540
|
+
|
289
541
|
##
|
290
542
|
# Create a new client object for WorkflowTemplateService.
|
291
543
|
#
|
@@ -299,6 +551,11 @@ module Google
|
|
299
551
|
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
300
552
|
# the `transport` parameter.
|
301
553
|
#
|
554
|
+
# Raises an exception if the currently installed versioned client gem for the
|
555
|
+
# given API version does not support the given transport of the WorkflowTemplateService service.
|
556
|
+
# You can determine whether the method will succeed by calling
|
557
|
+
# {Google::Cloud::Dataproc.workflow_template_service_available?}.
|
558
|
+
#
|
302
559
|
# ## About WorkflowTemplateService
|
303
560
|
#
|
304
561
|
# The API interface for managing Workflow Templates in the
|
@@ -321,6 +578,37 @@ module Google
|
|
321
578
|
service_module.const_get(:Client).new(&block)
|
322
579
|
end
|
323
580
|
|
581
|
+
##
|
582
|
+
# Determines whether the WorkflowTemplateService service is supported by the current client.
|
583
|
+
# If true, you can retrieve a client object by calling {Google::Cloud::Dataproc.workflow_template_service}.
|
584
|
+
# If false, that method will raise an exception. This could happen if the given
|
585
|
+
# API version does not exist or does not support the WorkflowTemplateService service,
|
586
|
+
# or if the versioned client gem needs an update to support the WorkflowTemplateService service.
|
587
|
+
#
|
588
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
589
|
+
# Defaults to `:v1`.
|
590
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
591
|
+
# @return [boolean] Whether the service is available.
|
592
|
+
#
|
593
|
+
def self.workflow_template_service_available? version: :v1, transport: :grpc
|
594
|
+
require "google/cloud/dataproc/#{version.to_s.downcase}"
|
595
|
+
package_name = Google::Cloud::Dataproc
|
596
|
+
.constants
|
597
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
598
|
+
.first
|
599
|
+
return false unless package_name
|
600
|
+
service_module = Google::Cloud::Dataproc.const_get package_name
|
601
|
+
return false unless service_module.const_defined? :WorkflowTemplateService
|
602
|
+
service_module = service_module.const_get :WorkflowTemplateService
|
603
|
+
if transport == :rest
|
604
|
+
return false unless service_module.const_defined? :Rest
|
605
|
+
service_module = service_module.const_get :Rest
|
606
|
+
end
|
607
|
+
service_module.const_defined? :Client
|
608
|
+
rescue ::LoadError
|
609
|
+
false
|
610
|
+
end
|
611
|
+
|
324
612
|
##
|
325
613
|
# Configure the google-cloud-dataproc library.
|
326
614
|
#
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-dataproc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 2025-01-29 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: google-cloud-core
|
@@ -62,7 +61,6 @@ homepage: https://github.com/googleapis/google-cloud-ruby
|
|
62
61
|
licenses:
|
63
62
|
- Apache-2.0
|
64
63
|
metadata: {}
|
65
|
-
post_install_message:
|
66
64
|
rdoc_options: []
|
67
65
|
require_paths:
|
68
66
|
- lib
|
@@ -70,15 +68,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
70
68
|
requirements:
|
71
69
|
- - ">="
|
72
70
|
- !ruby/object:Gem::Version
|
73
|
-
version: '
|
71
|
+
version: '3.0'
|
74
72
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
75
73
|
requirements:
|
76
74
|
- - ">="
|
77
75
|
- !ruby/object:Gem::Version
|
78
76
|
version: '0'
|
79
77
|
requirements: []
|
80
|
-
rubygems_version: 3.
|
81
|
-
signing_key:
|
78
|
+
rubygems_version: 3.6.2
|
82
79
|
specification_version: 4
|
83
80
|
summary: API Client library for the Cloud Dataproc API
|
84
81
|
test_files: []
|