google-cloud-dataplex 2.0.0 → 2.1.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: c982bf7b7b1d766c5a56c65af2a691d9c610452e4c3e0762f3100bec43e39689
4
- data.tar.gz: a5d867049cd2092364fc3734753b15b6f7a0b8dd1cd0d81d3727fad10c7d0311
3
+ metadata.gz: d868a9c96e6b2abf2a27b53c62826deda78d629d64aef3ced07dabc7a95ba5de
4
+ data.tar.gz: bb3dc3ce551a5836b3c484dec896c026ffd8258e99e85ac5e272a25df9aa2177
5
5
  SHA512:
6
- metadata.gz: e2a997fb8dfe004c4030e16d8f11ff17b6d1331b15295dc58926cf7511dccb260d121d3d966a9e3e9648d1a31689e050bd9f6c4dc2a5e3ff7a534f7a2f55b419
7
- data.tar.gz: 0d92417fe4a210335bc086fe90e05f5fe122511a824b43f8c264ac3e33d00badfee59779e5467b767c661c2b743f9a5d6cb0041b475f0ec4347ce701e5b239f2
6
+ metadata.gz: d1bb7861f30e6d401d781ac30b3c79b06ddcc88226ad4dd05f1d79252767d15e87ef3ce6f54c0e28b970f2db9d74fd47b043a9863e82abc42f3da0eba3398455
7
+ data.tar.gz: 792060062e33239d7ae85df4c07c1d1c7670ee954a4b32f26021682ffc655f4587ef925d5908a65cf9f703f67541ea96089deeb9df8306c6b991934dc3eba2d4
@@ -20,7 +20,7 @@
20
20
  module Google
21
21
  module Cloud
22
22
  module Dataplex
23
- VERSION = "2.0.0"
23
+ VERSION = "2.1.0"
24
24
  end
25
25
  end
26
26
  end
@@ -193,6 +193,76 @@ module Google
193
193
  false
194
194
  end
195
195
 
196
+ ##
197
+ # Create a new client object for CmekService.
198
+ #
199
+ # By default, this returns an instance of
200
+ # [Google::Cloud::Dataplex::V1::CmekService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-dataplex-v1/latest/Google-Cloud-Dataplex-V1-CmekService-Client)
201
+ # for a gRPC client for version V1 of the API.
202
+ # However, you can specify a different API version by passing it in the
203
+ # `version` parameter. If the CmekService service is
204
+ # supported by that API version, and the corresponding gem is available, the
205
+ # appropriate versioned client will be returned.
206
+ # You can also specify a different transport by passing `:rest` or `:grpc` in
207
+ # the `transport` parameter.
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 CmekService service.
211
+ # You can determine whether the method will succeed by calling
212
+ # {Google::Cloud::Dataplex.cmek_service_available?}.
213
+ #
214
+ # ## About CmekService
215
+ #
216
+ # Dataplex Cmek Service
217
+ #
218
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
219
+ # Defaults to `:v1`.
220
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
221
+ # @return [::Object] A client object for the specified version.
222
+ #
223
+ def self.cmek_service version: :v1, transport: :grpc, &block
224
+ require "google/cloud/dataplex/#{version.to_s.downcase}"
225
+
226
+ package_name = Google::Cloud::Dataplex
227
+ .constants
228
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
229
+ .first
230
+ service_module = Google::Cloud::Dataplex.const_get(package_name).const_get(:CmekService)
231
+ service_module = service_module.const_get(:Rest) if transport == :rest
232
+ service_module.const_get(:Client).new(&block)
233
+ end
234
+
235
+ ##
236
+ # Determines whether the CmekService service is supported by the current client.
237
+ # If true, you can retrieve a client object by calling {Google::Cloud::Dataplex.cmek_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 CmekService service,
240
+ # or if the versioned client gem needs an update to support the CmekService 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.cmek_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? :CmekService
256
+ service_module = service_module.const_get :CmekService
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
+
196
266
  ##
197
267
  # Create a new client object for ContentService.
198
268
  #
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-dataplex
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-02-13 00:00:00.000000000 Z
10
+ date: 2025-04-25 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: google-cloud-core
@@ -71,7 +71,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
71
71
  - !ruby/object:Gem::Version
72
72
  version: '0'
73
73
  requirements: []
74
- rubygems_version: 3.6.3
74
+ rubygems_version: 3.6.5
75
75
  specification_version: 4
76
76
  summary: API Client library for the Dataplex API
77
77
  test_files: []