google-cloud-dataplex 2.1.1 → 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/README.md +8 -0
- data/lib/google/cloud/dataplex/version.rb +1 -1
- data/lib/google/cloud/dataplex.rb +152 -14
- metadata +3 -3
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
|
data/README.md
CHANGED
|
@@ -34,6 +34,14 @@ In order to use this library, you first need to go through the following steps:
|
|
|
34
34
|
1. [Enable the API.](https://console.cloud.google.com/apis/library/dataplex.googleapis.com)
|
|
35
35
|
1. {file:AUTHENTICATION.md Set up authentication.}
|
|
36
36
|
|
|
37
|
+
```ruby
|
|
38
|
+
require "google/cloud/dataplex"
|
|
39
|
+
|
|
40
|
+
client = Google::Cloud::Dataplex.dataplex_service
|
|
41
|
+
request = ::Google::Cloud::Dataplex::V1::CreateLakeRequest.new # (request fields as keyword arguments...)
|
|
42
|
+
response = client.create_lake request
|
|
43
|
+
```
|
|
44
|
+
|
|
37
45
|
## Debug Logging
|
|
38
46
|
|
|
39
47
|
This library comes with opt-in Debug Logging that can help you troubleshoot
|
|
@@ -119,6 +119,81 @@ module Google
|
|
|
119
119
|
false
|
|
120
120
|
end
|
|
121
121
|
|
|
122
|
+
##
|
|
123
|
+
# Create a new client object for BusinessGlossaryService.
|
|
124
|
+
#
|
|
125
|
+
# By default, this returns an instance of
|
|
126
|
+
# [Google::Cloud::Dataplex::V1::BusinessGlossaryService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-dataplex-v1/latest/Google-Cloud-Dataplex-V1-BusinessGlossaryService-Client)
|
|
127
|
+
# for a gRPC client for version V1 of the API.
|
|
128
|
+
# However, you can specify a different API version by passing it in the
|
|
129
|
+
# `version` parameter. If the BusinessGlossaryService service is
|
|
130
|
+
# supported by that API version, and the corresponding gem is available, the
|
|
131
|
+
# appropriate versioned client will be returned.
|
|
132
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
|
133
|
+
# the `transport` parameter.
|
|
134
|
+
#
|
|
135
|
+
# Raises an exception if the currently installed versioned client gem for the
|
|
136
|
+
# given API version does not support the given transport of the BusinessGlossaryService service.
|
|
137
|
+
# You can determine whether the method will succeed by calling
|
|
138
|
+
# {Google::Cloud::Dataplex.business_glossary_service_available?}.
|
|
139
|
+
#
|
|
140
|
+
# ## About BusinessGlossaryService
|
|
141
|
+
#
|
|
142
|
+
# BusinessGlossaryService provides APIs for managing business glossary
|
|
143
|
+
# resources for enterprise customers.
|
|
144
|
+
# The resources currently supported in Business Glossary are:
|
|
145
|
+
# 1. Glossary
|
|
146
|
+
# 2. GlossaryCategory
|
|
147
|
+
# 3. GlossaryTerm
|
|
148
|
+
#
|
|
149
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
150
|
+
# Defaults to `:v1`.
|
|
151
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
|
152
|
+
# @return [::Object] A client object for the specified version.
|
|
153
|
+
#
|
|
154
|
+
def self.business_glossary_service version: :v1, transport: :grpc, &block
|
|
155
|
+
require "google/cloud/dataplex/#{version.to_s.downcase}"
|
|
156
|
+
|
|
157
|
+
package_name = Google::Cloud::Dataplex
|
|
158
|
+
.constants
|
|
159
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
160
|
+
.first
|
|
161
|
+
service_module = Google::Cloud::Dataplex.const_get(package_name).const_get(:BusinessGlossaryService)
|
|
162
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
|
163
|
+
service_module.const_get(:Client).new(&block)
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
##
|
|
167
|
+
# Determines whether the BusinessGlossaryService service is supported by the current client.
|
|
168
|
+
# If true, you can retrieve a client object by calling {Google::Cloud::Dataplex.business_glossary_service}.
|
|
169
|
+
# If false, that method will raise an exception. This could happen if the given
|
|
170
|
+
# API version does not exist or does not support the BusinessGlossaryService service,
|
|
171
|
+
# or if the versioned client gem needs an update to support the BusinessGlossaryService service.
|
|
172
|
+
#
|
|
173
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
174
|
+
# Defaults to `:v1`.
|
|
175
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
|
176
|
+
# @return [boolean] Whether the service is available.
|
|
177
|
+
#
|
|
178
|
+
def self.business_glossary_service_available? version: :v1, transport: :grpc
|
|
179
|
+
require "google/cloud/dataplex/#{version.to_s.downcase}"
|
|
180
|
+
package_name = Google::Cloud::Dataplex
|
|
181
|
+
.constants
|
|
182
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
183
|
+
.first
|
|
184
|
+
return false unless package_name
|
|
185
|
+
service_module = Google::Cloud::Dataplex.const_get package_name
|
|
186
|
+
return false unless service_module.const_defined? :BusinessGlossaryService
|
|
187
|
+
service_module = service_module.const_get :BusinessGlossaryService
|
|
188
|
+
if transport == :rest
|
|
189
|
+
return false unless service_module.const_defined? :Rest
|
|
190
|
+
service_module = service_module.const_get :Rest
|
|
191
|
+
end
|
|
192
|
+
service_module.const_defined? :Client
|
|
193
|
+
rescue ::LoadError
|
|
194
|
+
false
|
|
195
|
+
end
|
|
196
|
+
|
|
122
197
|
##
|
|
123
198
|
# Create a new client object for CatalogService.
|
|
124
199
|
#
|
|
@@ -140,10 +215,10 @@ module Google
|
|
|
140
215
|
# ## About CatalogService
|
|
141
216
|
#
|
|
142
217
|
# The primary resources offered by this service are EntryGroups, EntryTypes,
|
|
143
|
-
# AspectTypes, and
|
|
144
|
-
# manage, secure, and catalog data located across
|
|
145
|
-
# organization in a variety of storage systems,
|
|
146
|
-
# BigQuery.
|
|
218
|
+
# AspectTypes, Entries and EntryLinks. They collectively let data
|
|
219
|
+
# administrators organize, manage, secure, and catalog data located across
|
|
220
|
+
# cloud projects in their organization in a variety of storage systems,
|
|
221
|
+
# including Cloud Storage and BigQuery.
|
|
147
222
|
#
|
|
148
223
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
149
224
|
# Defaults to `:v1`.
|
|
@@ -213,7 +288,7 @@ module Google
|
|
|
213
288
|
#
|
|
214
289
|
# ## About CmekService
|
|
215
290
|
#
|
|
216
|
-
# Dataplex
|
|
291
|
+
# Dataplex Universal Catalog Customer Managed Encryption Keys (CMEK) Service
|
|
217
292
|
#
|
|
218
293
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
219
294
|
# Defaults to `:v1`.
|
|
@@ -273,24 +348,22 @@ module Google
|
|
|
273
348
|
# `version` parameter. If the ContentService service is
|
|
274
349
|
# supported by that API version, and the corresponding gem is available, the
|
|
275
350
|
# appropriate versioned client will be returned.
|
|
276
|
-
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
|
277
|
-
# the `transport` parameter.
|
|
278
351
|
#
|
|
279
352
|
# Raises an exception if the currently installed versioned client gem for the
|
|
280
|
-
# given API version does not support the
|
|
353
|
+
# given API version does not support the ContentService service.
|
|
281
354
|
# You can determine whether the method will succeed by calling
|
|
282
355
|
# {Google::Cloud::Dataplex.content_service_available?}.
|
|
283
356
|
#
|
|
284
357
|
# ## About ContentService
|
|
285
358
|
#
|
|
286
|
-
# ContentService manages Notebook and SQL Scripts for Dataplex
|
|
359
|
+
# ContentService manages Notebook and SQL Scripts for Dataplex Universal
|
|
360
|
+
# Catalog.
|
|
287
361
|
#
|
|
288
362
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
289
363
|
# Defaults to `:v1`.
|
|
290
|
-
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
|
291
364
|
# @return [::Object] A client object for the specified version.
|
|
292
365
|
#
|
|
293
|
-
def self.content_service version: :v1,
|
|
366
|
+
def self.content_service version: :v1, &block
|
|
294
367
|
require "google/cloud/dataplex/#{version.to_s.downcase}"
|
|
295
368
|
|
|
296
369
|
package_name = Google::Cloud::Dataplex
|
|
@@ -298,7 +371,6 @@ module Google
|
|
|
298
371
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
299
372
|
.first
|
|
300
373
|
service_module = Google::Cloud::Dataplex.const_get(package_name).const_get(:ContentService)
|
|
301
|
-
service_module = service_module.const_get(:Rest) if transport == :rest
|
|
302
374
|
service_module.const_get(:Client).new(&block)
|
|
303
375
|
end
|
|
304
376
|
|
|
@@ -311,10 +383,9 @@ module Google
|
|
|
311
383
|
#
|
|
312
384
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
313
385
|
# Defaults to `:v1`.
|
|
314
|
-
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
|
315
386
|
# @return [boolean] Whether the service is available.
|
|
316
387
|
#
|
|
317
|
-
def self.content_service_available? version: :v1
|
|
388
|
+
def self.content_service_available? version: :v1
|
|
318
389
|
require "google/cloud/dataplex/#{version.to_s.downcase}"
|
|
319
390
|
package_name = Google::Cloud::Dataplex
|
|
320
391
|
.constants
|
|
@@ -324,6 +395,73 @@ module Google
|
|
|
324
395
|
service_module = Google::Cloud::Dataplex.const_get package_name
|
|
325
396
|
return false unless service_module.const_defined? :ContentService
|
|
326
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
|
|
327
465
|
if transport == :rest
|
|
328
466
|
return false unless service_module.const_defined? :Rest
|
|
329
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,14 +64,14 @@ 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
|
- - ">="
|
|
71
71
|
- !ruby/object:Gem::Version
|
|
72
72
|
version: '0'
|
|
73
73
|
requirements: []
|
|
74
|
-
rubygems_version: 3.6.
|
|
74
|
+
rubygems_version: 3.6.9
|
|
75
75
|
specification_version: 4
|
|
76
76
|
summary: API Client library for the Dataplex API
|
|
77
77
|
test_files: []
|