google-cloud-dataplex 2.1.0 → 2.2.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: d868a9c96e6b2abf2a27b53c62826deda78d629d64aef3ced07dabc7a95ba5de
4
- data.tar.gz: bb3dc3ce551a5836b3c484dec896c026ffd8258e99e85ac5e272a25df9aa2177
3
+ metadata.gz: 77d16553ac9fe9b66e08a1e9d06cadbb412cc51cc5d280c1f1f109361f45d55f
4
+ data.tar.gz: ee9a44ecda7e5c0e0b4a8bb92e9eb32e6869a9cadafa9a0a35c60ed388788f4f
5
5
  SHA512:
6
- metadata.gz: d1bb7861f30e6d401d781ac30b3c79b06ddcc88226ad4dd05f1d79252767d15e87ef3ce6f54c0e28b970f2db9d74fd47b043a9863e82abc42f3da0eba3398455
7
- data.tar.gz: 792060062e33239d7ae85df4c07c1d1c7670ee954a4b32f26021682ffc655f4587ef925d5908a65cf9f703f67541ea96089deeb9df8306c6b991934dc3eba2d4
6
+ metadata.gz: d25efef1a0e9cc05b512cb302a67b53c11daf4e7cd072bb8722dda720b1124bae434f408b835602bd6c6303d228b8ba4fa62b5f806d403c5bd68ce7fd2225c6d
7
+ data.tar.gz: f767c3beaf4a5de046dd22e42330ca02b6b5bdf87340871dc434508582cdeeca06760681ab2dc62f47c4a3f42bbe7704666d63ba18d516bfe4c6adf421c7433d
data/README.md CHANGED
@@ -7,7 +7,7 @@ Dataplex is an intelligent data fabric that provides a way to centrally manage,
7
7
  Actual client classes for the various versions of this API are defined in
8
8
  _versioned_ client gems, with names of the form `google-cloud-dataplex-v*`.
9
9
  The gem `google-cloud-dataplex` is the main client library that brings the
10
- verisoned gems in as dependencies, and provides high-level methods for
10
+ versioned gems in as dependencies, and provides high-level methods for
11
11
  constructing clients. More information on versioned clients can be found below
12
12
  in the section titled *Which client should I use?*.
13
13
 
@@ -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.0"
23
+ VERSION = "2.2.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`.
@@ -283,7 +358,8 @@ module Google
283
358
  #
284
359
  # ## About ContentService
285
360
  #
286
- # ContentService manages Notebook and SQL Scripts for Dataplex.
361
+ # ContentService manages Notebook and SQL Scripts for Dataplex Universal
362
+ # Catalog.
287
363
  #
288
364
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
289
365
  # Defaults to `:v1`.
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.1.0
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-04-25 00:00:00.000000000 Z
10
+ date: 1980-01-02 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.5
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: []