google-cloud-dataplex 2.2.0 → 2.3.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/dataplex/version.rb +1 -1
- data/lib/google/cloud/dataplex.rb +70 -8
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 50fa0ba2390fdcbd78b909326565e17d160b4f2c44f3e961a0ead52614c1fe1c
|
|
4
|
+
data.tar.gz: 35409a193291baf7ac34b6a30ddd1bf36db00c5ca810b28ef59ff16363a03742
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5f51d9570705e671431fe6216a5e7f0cb00225fcb49868d41dee9e89a34baabfceb3f3b66e839bc6f6120fb32df380293256c800b5d68aaf9389ebf7dcbd26a9
|
|
7
|
+
data.tar.gz: 14e58acda4fbed794ef0d562e1f2d54034d3cf6369b5bb6014ec1c8ab7a5a45b3313069158d121fe69dd4557b6487082fec18385f74be2a126cf786d7377f122
|
|
@@ -348,11 +348,9 @@ module Google
|
|
|
348
348
|
# `version` parameter. If the ContentService service is
|
|
349
349
|
# supported by that API version, and the corresponding gem is available, the
|
|
350
350
|
# appropriate versioned client will be returned.
|
|
351
|
-
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
|
352
|
-
# the `transport` parameter.
|
|
353
351
|
#
|
|
354
352
|
# Raises an exception if the currently installed versioned client gem for the
|
|
355
|
-
# given API version does not support the
|
|
353
|
+
# given API version does not support the ContentService service.
|
|
356
354
|
# You can determine whether the method will succeed by calling
|
|
357
355
|
# {Google::Cloud::Dataplex.content_service_available?}.
|
|
358
356
|
#
|
|
@@ -363,10 +361,9 @@ module Google
|
|
|
363
361
|
#
|
|
364
362
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
365
363
|
# Defaults to `:v1`.
|
|
366
|
-
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
|
367
364
|
# @return [::Object] A client object for the specified version.
|
|
368
365
|
#
|
|
369
|
-
def self.content_service version: :v1,
|
|
366
|
+
def self.content_service version: :v1, &block
|
|
370
367
|
require "google/cloud/dataplex/#{version.to_s.downcase}"
|
|
371
368
|
|
|
372
369
|
package_name = Google::Cloud::Dataplex
|
|
@@ -374,7 +371,6 @@ module Google
|
|
|
374
371
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
375
372
|
.first
|
|
376
373
|
service_module = Google::Cloud::Dataplex.const_get(package_name).const_get(:ContentService)
|
|
377
|
-
service_module = service_module.const_get(:Rest) if transport == :rest
|
|
378
374
|
service_module.const_get(:Client).new(&block)
|
|
379
375
|
end
|
|
380
376
|
|
|
@@ -387,10 +383,9 @@ module Google
|
|
|
387
383
|
#
|
|
388
384
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
389
385
|
# Defaults to `:v1`.
|
|
390
|
-
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
|
391
386
|
# @return [boolean] Whether the service is available.
|
|
392
387
|
#
|
|
393
|
-
def self.content_service_available? version: :v1
|
|
388
|
+
def self.content_service_available? version: :v1
|
|
394
389
|
require "google/cloud/dataplex/#{version.to_s.downcase}"
|
|
395
390
|
package_name = Google::Cloud::Dataplex
|
|
396
391
|
.constants
|
|
@@ -400,6 +395,73 @@ module Google
|
|
|
400
395
|
service_module = Google::Cloud::Dataplex.const_get package_name
|
|
401
396
|
return false unless service_module.const_defined? :ContentService
|
|
402
397
|
service_module = service_module.const_get :ContentService
|
|
398
|
+
service_module.const_defined? :Client
|
|
399
|
+
rescue ::LoadError
|
|
400
|
+
false
|
|
401
|
+
end
|
|
402
|
+
|
|
403
|
+
##
|
|
404
|
+
# Create a new client object for DataProductService.
|
|
405
|
+
#
|
|
406
|
+
# By default, this returns an instance of
|
|
407
|
+
# [Google::Cloud::Dataplex::V1::DataProductService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-dataplex-v1/latest/Google-Cloud-Dataplex-V1-DataProductService-Client)
|
|
408
|
+
# for a gRPC client for version V1 of the API.
|
|
409
|
+
# However, you can specify a different API version by passing it in the
|
|
410
|
+
# `version` parameter. If the DataProductService service is
|
|
411
|
+
# supported by that API version, and the corresponding gem is available, the
|
|
412
|
+
# appropriate versioned client will be returned.
|
|
413
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
|
414
|
+
# the `transport` parameter.
|
|
415
|
+
#
|
|
416
|
+
# Raises an exception if the currently installed versioned client gem for the
|
|
417
|
+
# given API version does not support the given transport of the DataProductService service.
|
|
418
|
+
# You can determine whether the method will succeed by calling
|
|
419
|
+
# {Google::Cloud::Dataplex.data_product_service_available?}.
|
|
420
|
+
#
|
|
421
|
+
# ## About DataProductService
|
|
422
|
+
#
|
|
423
|
+
# `DataProductService` provides APIs for managing data products and
|
|
424
|
+
# the underlying data assets.
|
|
425
|
+
#
|
|
426
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
427
|
+
# Defaults to `:v1`.
|
|
428
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
|
429
|
+
# @return [::Object] A client object for the specified version.
|
|
430
|
+
#
|
|
431
|
+
def self.data_product_service version: :v1, transport: :grpc, &block
|
|
432
|
+
require "google/cloud/dataplex/#{version.to_s.downcase}"
|
|
433
|
+
|
|
434
|
+
package_name = Google::Cloud::Dataplex
|
|
435
|
+
.constants
|
|
436
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
437
|
+
.first
|
|
438
|
+
service_module = Google::Cloud::Dataplex.const_get(package_name).const_get(:DataProductService)
|
|
439
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
|
440
|
+
service_module.const_get(:Client).new(&block)
|
|
441
|
+
end
|
|
442
|
+
|
|
443
|
+
##
|
|
444
|
+
# Determines whether the DataProductService service is supported by the current client.
|
|
445
|
+
# If true, you can retrieve a client object by calling {Google::Cloud::Dataplex.data_product_service}.
|
|
446
|
+
# If false, that method will raise an exception. This could happen if the given
|
|
447
|
+
# API version does not exist or does not support the DataProductService service,
|
|
448
|
+
# or if the versioned client gem needs an update to support the DataProductService service.
|
|
449
|
+
#
|
|
450
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
451
|
+
# Defaults to `:v1`.
|
|
452
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
|
453
|
+
# @return [boolean] Whether the service is available.
|
|
454
|
+
#
|
|
455
|
+
def self.data_product_service_available? version: :v1, transport: :grpc
|
|
456
|
+
require "google/cloud/dataplex/#{version.to_s.downcase}"
|
|
457
|
+
package_name = Google::Cloud::Dataplex
|
|
458
|
+
.constants
|
|
459
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
460
|
+
.first
|
|
461
|
+
return false unless package_name
|
|
462
|
+
service_module = Google::Cloud::Dataplex.const_get package_name
|
|
463
|
+
return false unless service_module.const_defined? :DataProductService
|
|
464
|
+
service_module = service_module.const_get :DataProductService
|
|
403
465
|
if transport == :rest
|
|
404
466
|
return false unless service_module.const_defined? :Rest
|
|
405
467
|
service_module = service_module.const_get :Rest
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-cloud-dataplex
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 2.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
@@ -64,7 +64,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
64
64
|
requirements:
|
|
65
65
|
- - ">="
|
|
66
66
|
- !ruby/object:Gem::Version
|
|
67
|
-
version: '3.
|
|
67
|
+
version: '3.2'
|
|
68
68
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
69
69
|
requirements:
|
|
70
70
|
- - ">="
|