google-cloud-dataplex 1.5.0 → 1.6.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/dataplex/version.rb +1 -1
- data/lib/google/cloud/dataplex.rb +216 -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: 716acd7954b03685b61ceb0c243a9ac6d10da13b303a3cc78897684884788f75
|
4
|
+
data.tar.gz: 537b0b8fd99f3f62d3663f9d80b05ca4a4be62de7665ebb3af5a52c7d7ae16f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bec0163fd809a8e44f1a5f96e4f55cd9a78007cc5eb7795ec697d0f172fee7341dbac689713c1bb1dfa851e7e318184f5aec769ec430a132590865c2be1822fe
|
7
|
+
data.tar.gz: ad843efb617e5511ade95f13cca3204707bb0a76963d1241c1992ba55e66c295ca4cdced355104e601736f0aa07636be4855c02fa9e9babf32668fd9622ce21d
|
data/README.md
CHANGED
@@ -34,9 +34,39 @@ 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
|
+
## Debug Logging
|
38
|
+
|
39
|
+
This library comes with opt-in Debug Logging that can help you troubleshoot
|
40
|
+
your application's integration with the API. When logging is activated, key
|
41
|
+
events such as requests and responses, along with data payloads and metadata
|
42
|
+
such as headers and client configuration, are logged to the standard error
|
43
|
+
stream.
|
44
|
+
|
45
|
+
**WARNING:** Client Library Debug Logging includes your data payloads in
|
46
|
+
plaintext, which could include sensitive data such as PII for yourself or your
|
47
|
+
customers, private keys, or other security data that could be compromising if
|
48
|
+
leaked. Always practice good data hygiene with your application logs, and follow
|
49
|
+
the principle of least access. Google also recommends that Client Library Debug
|
50
|
+
Logging be enabled only temporarily during active debugging, and not used
|
51
|
+
permanently in production.
|
52
|
+
|
53
|
+
To enable logging, set the environment variable `GOOGLE_SDK_RUBY_LOGGING_GEMS`
|
54
|
+
to the value `all`. Alternatively, you can set the value to a comma-delimited
|
55
|
+
list of client library gem names. This will select the default logging behavior,
|
56
|
+
which writes logs to the standard error stream. On a local workstation, this may
|
57
|
+
result in logs appearing on the console. When running on a Google Cloud hosting
|
58
|
+
service such as [Google Cloud Run](https://cloud.google.com/run), this generally
|
59
|
+
results in logs appearing alongside your application logs in the
|
60
|
+
[Google Cloud Logging](https://cloud.google.com/logging/) service.
|
61
|
+
|
62
|
+
Debug logging also requires that the versioned clients for this service be
|
63
|
+
sufficiently recent, released after about Dec 10, 2024. If logging is not
|
64
|
+
working, try updating the versioned clients in your bundle or installed gems:
|
65
|
+
[google-cloud-dataplex-v1](https://cloud.google.com/ruby/docs/reference/google-cloud-dataplex-v1/latest).
|
66
|
+
|
37
67
|
## Supported Ruby Versions
|
38
68
|
|
39
|
-
This library is supported on Ruby
|
69
|
+
This library is supported on Ruby 3.0+.
|
40
70
|
|
41
71
|
Google provides official support for Ruby versions that are actively supported
|
42
72
|
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 DataplexService service.
|
63
|
+
# You can determine whether the method will succeed by calling
|
64
|
+
# {Google::Cloud::Dataplex.dataplex_service_available?}.
|
65
|
+
#
|
61
66
|
# ## About DataplexService
|
62
67
|
#
|
63
68
|
# Dataplex service provides data lakes as a service. The primary resources
|
@@ -83,6 +88,37 @@ module Google
|
|
83
88
|
service_module.const_get(:Client).new(&block)
|
84
89
|
end
|
85
90
|
|
91
|
+
##
|
92
|
+
# Determines whether the DataplexService service is supported by the current client.
|
93
|
+
# If true, you can retrieve a client object by calling {Google::Cloud::Dataplex.dataplex_service}.
|
94
|
+
# If false, that method will raise an exception. This could happen if the given
|
95
|
+
# API version does not exist or does not support the DataplexService service,
|
96
|
+
# or if the versioned client gem needs an update to support the DataplexService service.
|
97
|
+
#
|
98
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
99
|
+
# Defaults to `:v1`.
|
100
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
101
|
+
# @return [boolean] Whether the service is available.
|
102
|
+
#
|
103
|
+
def self.dataplex_service_available? version: :v1, transport: :grpc
|
104
|
+
require "google/cloud/dataplex/#{version.to_s.downcase}"
|
105
|
+
package_name = Google::Cloud::Dataplex
|
106
|
+
.constants
|
107
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
108
|
+
.first
|
109
|
+
return false unless package_name
|
110
|
+
service_module = Google::Cloud::Dataplex.const_get package_name
|
111
|
+
return false unless service_module.const_defined? :DataplexService
|
112
|
+
service_module = service_module.const_get :DataplexService
|
113
|
+
if transport == :rest
|
114
|
+
return false unless service_module.const_defined? :Rest
|
115
|
+
service_module = service_module.const_get :Rest
|
116
|
+
end
|
117
|
+
service_module.const_defined? :Client
|
118
|
+
rescue ::LoadError
|
119
|
+
false
|
120
|
+
end
|
121
|
+
|
86
122
|
##
|
87
123
|
# Create a new client object for CatalogService.
|
88
124
|
#
|
@@ -96,6 +132,11 @@ module Google
|
|
96
132
|
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
97
133
|
# the `transport` parameter.
|
98
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 CatalogService service.
|
137
|
+
# You can determine whether the method will succeed by calling
|
138
|
+
# {Google::Cloud::Dataplex.catalog_service_available?}.
|
139
|
+
#
|
99
140
|
# ## About CatalogService
|
100
141
|
#
|
101
142
|
# The primary resources offered by this service are EntryGroups, EntryTypes,
|
@@ -121,6 +162,37 @@ module Google
|
|
121
162
|
service_module.const_get(:Client).new(&block)
|
122
163
|
end
|
123
164
|
|
165
|
+
##
|
166
|
+
# Determines whether the CatalogService service is supported by the current client.
|
167
|
+
# If true, you can retrieve a client object by calling {Google::Cloud::Dataplex.catalog_service}.
|
168
|
+
# If false, that method will raise an exception. This could happen if the given
|
169
|
+
# API version does not exist or does not support the CatalogService service,
|
170
|
+
# or if the versioned client gem needs an update to support the CatalogService service.
|
171
|
+
#
|
172
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
173
|
+
# Defaults to `:v1`.
|
174
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
175
|
+
# @return [boolean] Whether the service is available.
|
176
|
+
#
|
177
|
+
def self.catalog_service_available? version: :v1, transport: :grpc
|
178
|
+
require "google/cloud/dataplex/#{version.to_s.downcase}"
|
179
|
+
package_name = Google::Cloud::Dataplex
|
180
|
+
.constants
|
181
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
182
|
+
.first
|
183
|
+
return false unless package_name
|
184
|
+
service_module = Google::Cloud::Dataplex.const_get package_name
|
185
|
+
return false unless service_module.const_defined? :CatalogService
|
186
|
+
service_module = service_module.const_get :CatalogService
|
187
|
+
if transport == :rest
|
188
|
+
return false unless service_module.const_defined? :Rest
|
189
|
+
service_module = service_module.const_get :Rest
|
190
|
+
end
|
191
|
+
service_module.const_defined? :Client
|
192
|
+
rescue ::LoadError
|
193
|
+
false
|
194
|
+
end
|
195
|
+
|
124
196
|
##
|
125
197
|
# Create a new client object for ContentService.
|
126
198
|
#
|
@@ -134,6 +206,11 @@ module Google
|
|
134
206
|
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
135
207
|
# the `transport` parameter.
|
136
208
|
#
|
209
|
+
# Raises an exception if the currently installed versioned client gem for the
|
210
|
+
# given API version does not support the given transport of the ContentService service.
|
211
|
+
# You can determine whether the method will succeed by calling
|
212
|
+
# {Google::Cloud::Dataplex.content_service_available?}.
|
213
|
+
#
|
137
214
|
# ## About ContentService
|
138
215
|
#
|
139
216
|
# ContentService manages Notebook and SQL Scripts for Dataplex.
|
@@ -155,6 +232,37 @@ module Google
|
|
155
232
|
service_module.const_get(:Client).new(&block)
|
156
233
|
end
|
157
234
|
|
235
|
+
##
|
236
|
+
# Determines whether the ContentService service is supported by the current client.
|
237
|
+
# If true, you can retrieve a client object by calling {Google::Cloud::Dataplex.content_service}.
|
238
|
+
# If false, that method will raise an exception. This could happen if the given
|
239
|
+
# API version does not exist or does not support the ContentService service,
|
240
|
+
# or if the versioned client gem needs an update to support the ContentService service.
|
241
|
+
#
|
242
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
243
|
+
# Defaults to `:v1`.
|
244
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
245
|
+
# @return [boolean] Whether the service is available.
|
246
|
+
#
|
247
|
+
def self.content_service_available? version: :v1, transport: :grpc
|
248
|
+
require "google/cloud/dataplex/#{version.to_s.downcase}"
|
249
|
+
package_name = Google::Cloud::Dataplex
|
250
|
+
.constants
|
251
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
252
|
+
.first
|
253
|
+
return false unless package_name
|
254
|
+
service_module = Google::Cloud::Dataplex.const_get package_name
|
255
|
+
return false unless service_module.const_defined? :ContentService
|
256
|
+
service_module = service_module.const_get :ContentService
|
257
|
+
if transport == :rest
|
258
|
+
return false unless service_module.const_defined? :Rest
|
259
|
+
service_module = service_module.const_get :Rest
|
260
|
+
end
|
261
|
+
service_module.const_defined? :Client
|
262
|
+
rescue ::LoadError
|
263
|
+
false
|
264
|
+
end
|
265
|
+
|
158
266
|
##
|
159
267
|
# Create a new client object for DataTaxonomyService.
|
160
268
|
#
|
@@ -168,6 +276,11 @@ module Google
|
|
168
276
|
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
169
277
|
# the `transport` parameter.
|
170
278
|
#
|
279
|
+
# Raises an exception if the currently installed versioned client gem for the
|
280
|
+
# given API version does not support the given transport of the DataTaxonomyService service.
|
281
|
+
# You can determine whether the method will succeed by calling
|
282
|
+
# {Google::Cloud::Dataplex.data_taxonomy_service_available?}.
|
283
|
+
#
|
171
284
|
# ## About DataTaxonomyService
|
172
285
|
#
|
173
286
|
# DataTaxonomyService enables attribute-based governance. The resources
|
@@ -190,6 +303,37 @@ module Google
|
|
190
303
|
service_module.const_get(:Client).new(&block)
|
191
304
|
end
|
192
305
|
|
306
|
+
##
|
307
|
+
# Determines whether the DataTaxonomyService service is supported by the current client.
|
308
|
+
# If true, you can retrieve a client object by calling {Google::Cloud::Dataplex.data_taxonomy_service}.
|
309
|
+
# If false, that method will raise an exception. This could happen if the given
|
310
|
+
# API version does not exist or does not support the DataTaxonomyService service,
|
311
|
+
# or if the versioned client gem needs an update to support the DataTaxonomyService service.
|
312
|
+
#
|
313
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
314
|
+
# Defaults to `:v1`.
|
315
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
316
|
+
# @return [boolean] Whether the service is available.
|
317
|
+
#
|
318
|
+
def self.data_taxonomy_service_available? version: :v1, transport: :grpc
|
319
|
+
require "google/cloud/dataplex/#{version.to_s.downcase}"
|
320
|
+
package_name = Google::Cloud::Dataplex
|
321
|
+
.constants
|
322
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
323
|
+
.first
|
324
|
+
return false unless package_name
|
325
|
+
service_module = Google::Cloud::Dataplex.const_get package_name
|
326
|
+
return false unless service_module.const_defined? :DataTaxonomyService
|
327
|
+
service_module = service_module.const_get :DataTaxonomyService
|
328
|
+
if transport == :rest
|
329
|
+
return false unless service_module.const_defined? :Rest
|
330
|
+
service_module = service_module.const_get :Rest
|
331
|
+
end
|
332
|
+
service_module.const_defined? :Client
|
333
|
+
rescue ::LoadError
|
334
|
+
false
|
335
|
+
end
|
336
|
+
|
193
337
|
##
|
194
338
|
# Create a new client object for DataScanService.
|
195
339
|
#
|
@@ -203,6 +347,11 @@ module Google
|
|
203
347
|
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
204
348
|
# the `transport` parameter.
|
205
349
|
#
|
350
|
+
# Raises an exception if the currently installed versioned client gem for the
|
351
|
+
# given API version does not support the given transport of the DataScanService service.
|
352
|
+
# You can determine whether the method will succeed by calling
|
353
|
+
# {Google::Cloud::Dataplex.data_scan_service_available?}.
|
354
|
+
#
|
206
355
|
# ## About DataScanService
|
207
356
|
#
|
208
357
|
# DataScanService manages DataScan resources which can be configured to run
|
@@ -226,6 +375,37 @@ module Google
|
|
226
375
|
service_module.const_get(:Client).new(&block)
|
227
376
|
end
|
228
377
|
|
378
|
+
##
|
379
|
+
# Determines whether the DataScanService service is supported by the current client.
|
380
|
+
# If true, you can retrieve a client object by calling {Google::Cloud::Dataplex.data_scan_service}.
|
381
|
+
# If false, that method will raise an exception. This could happen if the given
|
382
|
+
# API version does not exist or does not support the DataScanService service,
|
383
|
+
# or if the versioned client gem needs an update to support the DataScanService service.
|
384
|
+
#
|
385
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
386
|
+
# Defaults to `:v1`.
|
387
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
388
|
+
# @return [boolean] Whether the service is available.
|
389
|
+
#
|
390
|
+
def self.data_scan_service_available? version: :v1, transport: :grpc
|
391
|
+
require "google/cloud/dataplex/#{version.to_s.downcase}"
|
392
|
+
package_name = Google::Cloud::Dataplex
|
393
|
+
.constants
|
394
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
395
|
+
.first
|
396
|
+
return false unless package_name
|
397
|
+
service_module = Google::Cloud::Dataplex.const_get package_name
|
398
|
+
return false unless service_module.const_defined? :DataScanService
|
399
|
+
service_module = service_module.const_get :DataScanService
|
400
|
+
if transport == :rest
|
401
|
+
return false unless service_module.const_defined? :Rest
|
402
|
+
service_module = service_module.const_get :Rest
|
403
|
+
end
|
404
|
+
service_module.const_defined? :Client
|
405
|
+
rescue ::LoadError
|
406
|
+
false
|
407
|
+
end
|
408
|
+
|
229
409
|
##
|
230
410
|
# Create a new client object for MetadataService.
|
231
411
|
#
|
@@ -239,6 +419,11 @@ module Google
|
|
239
419
|
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
240
420
|
# the `transport` parameter.
|
241
421
|
#
|
422
|
+
# Raises an exception if the currently installed versioned client gem for the
|
423
|
+
# given API version does not support the given transport of the MetadataService service.
|
424
|
+
# You can determine whether the method will succeed by calling
|
425
|
+
# {Google::Cloud::Dataplex.metadata_service_available?}.
|
426
|
+
#
|
242
427
|
# ## About MetadataService
|
243
428
|
#
|
244
429
|
# Metadata service manages metadata resources such as tables, filesets and
|
@@ -261,6 +446,37 @@ module Google
|
|
261
446
|
service_module.const_get(:Client).new(&block)
|
262
447
|
end
|
263
448
|
|
449
|
+
##
|
450
|
+
# Determines whether the MetadataService service is supported by the current client.
|
451
|
+
# If true, you can retrieve a client object by calling {Google::Cloud::Dataplex.metadata_service}.
|
452
|
+
# If false, that method will raise an exception. This could happen if the given
|
453
|
+
# API version does not exist or does not support the MetadataService service,
|
454
|
+
# or if the versioned client gem needs an update to support the MetadataService service.
|
455
|
+
#
|
456
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
457
|
+
# Defaults to `:v1`.
|
458
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
459
|
+
# @return [boolean] Whether the service is available.
|
460
|
+
#
|
461
|
+
def self.metadata_service_available? version: :v1, transport: :grpc
|
462
|
+
require "google/cloud/dataplex/#{version.to_s.downcase}"
|
463
|
+
package_name = Google::Cloud::Dataplex
|
464
|
+
.constants
|
465
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
466
|
+
.first
|
467
|
+
return false unless package_name
|
468
|
+
service_module = Google::Cloud::Dataplex.const_get package_name
|
469
|
+
return false unless service_module.const_defined? :MetadataService
|
470
|
+
service_module = service_module.const_get :MetadataService
|
471
|
+
if transport == :rest
|
472
|
+
return false unless service_module.const_defined? :Rest
|
473
|
+
service_module = service_module.const_get :Rest
|
474
|
+
end
|
475
|
+
service_module.const_defined? :Client
|
476
|
+
rescue ::LoadError
|
477
|
+
false
|
478
|
+
end
|
479
|
+
|
264
480
|
##
|
265
481
|
# Configure the google-cloud-dataplex library.
|
266
482
|
#
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-dataplex
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.6.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
|
@@ -64,7 +63,6 @@ homepage: https://github.com/googleapis/google-cloud-ruby
|
|
64
63
|
licenses:
|
65
64
|
- Apache-2.0
|
66
65
|
metadata: {}
|
67
|
-
post_install_message:
|
68
66
|
rdoc_options: []
|
69
67
|
require_paths:
|
70
68
|
- lib
|
@@ -72,15 +70,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
72
70
|
requirements:
|
73
71
|
- - ">="
|
74
72
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
73
|
+
version: '3.0'
|
76
74
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
77
75
|
requirements:
|
78
76
|
- - ">="
|
79
77
|
- !ruby/object:Gem::Version
|
80
78
|
version: '0'
|
81
79
|
requirements: []
|
82
|
-
rubygems_version: 3.
|
83
|
-
signing_key:
|
80
|
+
rubygems_version: 3.6.2
|
84
81
|
specification_version: 4
|
85
82
|
summary: API Client library for the Dataplex API
|
86
83
|
test_files: []
|