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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 32705adc154f00e2e630133b7e3b193533b8f4e9ff7713cf669424999f77512c
4
- data.tar.gz: 1b7307f590adad8fc73c189ae0ac61bdbab88648906d626c7a7fb424b5f8a861
3
+ metadata.gz: 50fa0ba2390fdcbd78b909326565e17d160b4f2c44f3e961a0ead52614c1fe1c
4
+ data.tar.gz: 35409a193291baf7ac34b6a30ddd1bf36db00c5ca810b28ef59ff16363a03742
5
5
  SHA512:
6
- metadata.gz: bdfde71c0163432d39f50db5d55e809727dfe39e66611292bb2de23a3d4a9ad25ccf5c9b0b4d1513e02d4a290f75bd833d0037984bd17edcf533ca6d2ef7ef5a
7
- data.tar.gz: 4488df56cbc1cdead53e0c7cdef89eda0a35bfaf6d1393e46fcbc248aee36089ef6fee6fe3f0c64c9d57fa7939db3d10b47deaac7d6bcb9812f9a584e5ce8468
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
@@ -20,7 +20,7 @@
20
20
  module Google
21
21
  module Cloud
22
22
  module Dataplex
23
- VERSION = "2.1.1"
23
+ VERSION = "2.3.0"
24
24
  end
25
25
  end
26
26
  end
@@ -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 Entries. They collectively let data administrators organize,
144
- # manage, secure, and catalog data located across cloud projects in their
145
- # organization in a variety of storage systems, including Cloud Storage and
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 Cmek Service
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 given transport of the ContentService service.
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, transport: :grpc, &block
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, transport: :grpc
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.1.1
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.0'
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.8
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: []