google-cloud-data_catalog 1.6.0 → 1.7.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 +31 -1
- data/lib/google/cloud/data_catalog/version.rb +1 -1
- data/lib/google/cloud/data_catalog.rb +108 -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: 1143cf97e7081f59816a537eeb856eab78d900af9562ef650394ff5e67bd905f
|
4
|
+
data.tar.gz: 5b2aa160053be9ff71ca3a242bc8edde674fe934bdcab8656c94b6a66c90f145
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 19c17eff30c0dec4e7b66ec664d8b315f626bcea1861aa186e5005e5ed23d15f711bad01a613bbc0586927e898efe5eb06a51a68402018de5221d0bfdfd9b5f2
|
7
|
+
data.tar.gz: eb98105b2d34196285c99d8c59ef17d6e7e957a09662c32a1ef13cb41848b4e6a9d07bf43545fe107f07b73aa108217b69b2a4df1a48f2d572c249ae73d91e4b
|
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/datacatalog.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-data_catalog-v1](https://cloud.google.com/ruby/docs/reference/google-cloud-data_catalog-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 DataCatalog service.
|
63
|
+
# You can determine whether the method will succeed by calling
|
64
|
+
# {Google::Cloud::DataCatalog.data_catalog_available?}.
|
65
|
+
#
|
61
66
|
# ## About DataCatalog
|
62
67
|
#
|
63
68
|
# Data Catalog API service allows you to discover, understand, and manage
|
@@ -80,6 +85,37 @@ module Google
|
|
80
85
|
service_module.const_get(:Client).new(&block)
|
81
86
|
end
|
82
87
|
|
88
|
+
##
|
89
|
+
# Determines whether the DataCatalog service is supported by the current client.
|
90
|
+
# If true, you can retrieve a client object by calling {Google::Cloud::DataCatalog.data_catalog}.
|
91
|
+
# If false, that method will raise an exception. This could happen if the given
|
92
|
+
# API version does not exist or does not support the DataCatalog service,
|
93
|
+
# or if the versioned client gem needs an update to support the DataCatalog service.
|
94
|
+
#
|
95
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
96
|
+
# Defaults to `:v1`.
|
97
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
98
|
+
# @return [boolean] Whether the service is available.
|
99
|
+
#
|
100
|
+
def self.data_catalog_available? version: :v1, transport: :grpc
|
101
|
+
require "google/cloud/data_catalog/#{version.to_s.downcase}"
|
102
|
+
package_name = Google::Cloud::DataCatalog
|
103
|
+
.constants
|
104
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
105
|
+
.first
|
106
|
+
return false unless package_name
|
107
|
+
service_module = Google::Cloud::DataCatalog.const_get package_name
|
108
|
+
return false unless service_module.const_defined? :DataCatalog
|
109
|
+
service_module = service_module.const_get :DataCatalog
|
110
|
+
if transport == :rest
|
111
|
+
return false unless service_module.const_defined? :Rest
|
112
|
+
service_module = service_module.const_get :Rest
|
113
|
+
end
|
114
|
+
service_module.const_defined? :Client
|
115
|
+
rescue ::LoadError
|
116
|
+
false
|
117
|
+
end
|
118
|
+
|
83
119
|
##
|
84
120
|
# Create a new client object for PolicyTagManager.
|
85
121
|
#
|
@@ -93,6 +129,11 @@ module Google
|
|
93
129
|
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
94
130
|
# the `transport` parameter.
|
95
131
|
#
|
132
|
+
# Raises an exception if the currently installed versioned client gem for the
|
133
|
+
# given API version does not support the given transport of the PolicyTagManager service.
|
134
|
+
# You can determine whether the method will succeed by calling
|
135
|
+
# {Google::Cloud::DataCatalog.policy_tag_manager_available?}.
|
136
|
+
#
|
96
137
|
# ## About PolicyTagManager
|
97
138
|
#
|
98
139
|
# Policy Tag Manager API service allows you to manage your policy tags and
|
@@ -119,6 +160,37 @@ module Google
|
|
119
160
|
service_module.const_get(:Client).new(&block)
|
120
161
|
end
|
121
162
|
|
163
|
+
##
|
164
|
+
# Determines whether the PolicyTagManager service is supported by the current client.
|
165
|
+
# If true, you can retrieve a client object by calling {Google::Cloud::DataCatalog.policy_tag_manager}.
|
166
|
+
# If false, that method will raise an exception. This could happen if the given
|
167
|
+
# API version does not exist or does not support the PolicyTagManager service,
|
168
|
+
# or if the versioned client gem needs an update to support the PolicyTagManager service.
|
169
|
+
#
|
170
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
171
|
+
# Defaults to `:v1`.
|
172
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
173
|
+
# @return [boolean] Whether the service is available.
|
174
|
+
#
|
175
|
+
def self.policy_tag_manager_available? version: :v1, transport: :grpc
|
176
|
+
require "google/cloud/data_catalog/#{version.to_s.downcase}"
|
177
|
+
package_name = Google::Cloud::DataCatalog
|
178
|
+
.constants
|
179
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
180
|
+
.first
|
181
|
+
return false unless package_name
|
182
|
+
service_module = Google::Cloud::DataCatalog.const_get package_name
|
183
|
+
return false unless service_module.const_defined? :PolicyTagManager
|
184
|
+
service_module = service_module.const_get :PolicyTagManager
|
185
|
+
if transport == :rest
|
186
|
+
return false unless service_module.const_defined? :Rest
|
187
|
+
service_module = service_module.const_get :Rest
|
188
|
+
end
|
189
|
+
service_module.const_defined? :Client
|
190
|
+
rescue ::LoadError
|
191
|
+
false
|
192
|
+
end
|
193
|
+
|
122
194
|
##
|
123
195
|
# Create a new client object for PolicyTagManagerSerialization.
|
124
196
|
#
|
@@ -132,6 +204,11 @@ module Google
|
|
132
204
|
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
133
205
|
# the `transport` parameter.
|
134
206
|
#
|
207
|
+
# Raises an exception if the currently installed versioned client gem for the
|
208
|
+
# given API version does not support the given transport of the PolicyTagManagerSerialization service.
|
209
|
+
# You can determine whether the method will succeed by calling
|
210
|
+
# {Google::Cloud::DataCatalog.policy_tag_manager_serialization_available?}.
|
211
|
+
#
|
135
212
|
# ## About PolicyTagManagerSerialization
|
136
213
|
#
|
137
214
|
# Policy Tag Manager Serialization API service allows you to manipulate
|
@@ -156,6 +233,37 @@ module Google
|
|
156
233
|
service_module.const_get(:Client).new(&block)
|
157
234
|
end
|
158
235
|
|
236
|
+
##
|
237
|
+
# Determines whether the PolicyTagManagerSerialization service is supported by the current client.
|
238
|
+
# If true, you can retrieve a client object by calling {Google::Cloud::DataCatalog.policy_tag_manager_serialization}.
|
239
|
+
# If false, that method will raise an exception. This could happen if the given
|
240
|
+
# API version does not exist or does not support the PolicyTagManagerSerialization service,
|
241
|
+
# or if the versioned client gem needs an update to support the PolicyTagManagerSerialization service.
|
242
|
+
#
|
243
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
244
|
+
# Defaults to `:v1`.
|
245
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
246
|
+
# @return [boolean] Whether the service is available.
|
247
|
+
#
|
248
|
+
def self.policy_tag_manager_serialization_available? version: :v1, transport: :grpc
|
249
|
+
require "google/cloud/data_catalog/#{version.to_s.downcase}"
|
250
|
+
package_name = Google::Cloud::DataCatalog
|
251
|
+
.constants
|
252
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
253
|
+
.first
|
254
|
+
return false unless package_name
|
255
|
+
service_module = Google::Cloud::DataCatalog.const_get package_name
|
256
|
+
return false unless service_module.const_defined? :PolicyTagManagerSerialization
|
257
|
+
service_module = service_module.const_get :PolicyTagManagerSerialization
|
258
|
+
if transport == :rest
|
259
|
+
return false unless service_module.const_defined? :Rest
|
260
|
+
service_module = service_module.const_get :Rest
|
261
|
+
end
|
262
|
+
service_module.const_defined? :Client
|
263
|
+
rescue ::LoadError
|
264
|
+
false
|
265
|
+
end
|
266
|
+
|
159
267
|
##
|
160
268
|
# Configure the google-cloud-data_catalog library.
|
161
269
|
#
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-data_catalog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.7.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
|
@@ -63,7 +62,6 @@ homepage: https://github.com/googleapis/google-cloud-ruby
|
|
63
62
|
licenses:
|
64
63
|
- Apache-2.0
|
65
64
|
metadata: {}
|
66
|
-
post_install_message:
|
67
65
|
rdoc_options: []
|
68
66
|
require_paths:
|
69
67
|
- lib
|
@@ -71,15 +69,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
71
69
|
requirements:
|
72
70
|
- - ">="
|
73
71
|
- !ruby/object:Gem::Version
|
74
|
-
version: '
|
72
|
+
version: '3.0'
|
75
73
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
76
74
|
requirements:
|
77
75
|
- - ">="
|
78
76
|
- !ruby/object:Gem::Version
|
79
77
|
version: '0'
|
80
78
|
requirements: []
|
81
|
-
rubygems_version: 3.
|
82
|
-
signing_key:
|
79
|
+
rubygems_version: 3.6.2
|
83
80
|
specification_version: 4
|
84
81
|
summary: API Client library for the Data Catalog API
|
85
82
|
test_files: []
|