google-cloud-data_catalog-lineage 1.0.1 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4a25291225bc4c2dba443cd302b934ebbbd0bfb9291fae47ae1a51fbefbbb941
4
- data.tar.gz: 73bc8e036e3a37cbbbe439ea3ad294a68bfbeeea4269a8421e17e16fa0ec6fa4
3
+ metadata.gz: 1a889531c1df877d25c4e1cb56e1e046e87806ff987c5c1b3dd3a0404c97c304
4
+ data.tar.gz: 6f99d498de9c61f3bc74885adef334614e49e34c9d1d39456ad939f5f5998578
5
5
  SHA512:
6
- metadata.gz: f45bd40e0d32eff8780c1a43bfd0737f73f345dae06f66964740f0d7b98ec9c8b41e8830c24cc44c545e57c4ad08bbbdc70e31cd5eccb342782c62880624039f
7
- data.tar.gz: d63f494198570dc1eb0a29e91f4b7749526dc501b6fc993db897ca15a964fb5ba117584108ff997b0cb929a2ed29d8d842b411c76a577d5ef99bb90e84f55866
6
+ metadata.gz: d57303473e65cc67d60d026cda48b6f82c4127c443a9aeb324c800249c9445be3714d872eff69315ef35f270db248e16273d5caea54ebc4cf7107554a1757c02
7
+ data.tar.gz: a82efca81ffd36807a42a3da1ca3df92ce5d7bf6c19a9615ee89a3f01615fa53057ea684a3647d4ff1b7f11854fb7d0dd130cb878a2e1fbb5b6dfb8de3ee81e6
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/datalineage.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-lineage-v1](https://cloud.google.com/ruby/docs/reference/google-cloud-data_catalog-lineage-v1/latest).
66
+
37
67
  ## Supported Ruby Versions
38
68
 
39
- This library is supported on Ruby 2.7+.
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
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module DataCatalog
23
23
  module Lineage
24
- VERSION = "1.0.1"
24
+ VERSION = "1.1.0"
25
25
  end
26
26
  end
27
27
  end
@@ -59,6 +59,11 @@ module Google
59
59
  # You can also specify a different transport by passing `:rest` or `:grpc` in
60
60
  # the `transport` parameter.
61
61
  #
62
+ # Raises an exception if the currently installed versioned client gem for the
63
+ # given API version does not support the given transport of the Lineage service.
64
+ # You can determine whether the method will succeed by calling
65
+ # {Google::Cloud::DataCatalog::Lineage.lineage_available?}.
66
+ #
62
67
  # ## About Lineage
63
68
  #
64
69
  # Lineage is used to track data flows between assets over time. You can
@@ -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 Lineage service is supported by the current client.
93
+ # If true, you can retrieve a client object by calling {Google::Cloud::DataCatalog::Lineage.lineage}.
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 Lineage service,
96
+ # or if the versioned client gem needs an update to support the Lineage 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.lineage_available? version: :v1, transport: :grpc
104
+ require "google/cloud/data_catalog/lineage/#{version.to_s.downcase}"
105
+ package_name = Google::Cloud::DataCatalog::Lineage
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::DataCatalog::Lineage.const_get package_name
111
+ return false unless service_module.const_defined? :Lineage
112
+ service_module = service_module.const_get :Lineage
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
  # Configure the google-cloud-data_catalog-lineage library.
88
124
  #
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-data_catalog-lineage
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-08-09 00:00:00.000000000 Z
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
@@ -66,7 +65,6 @@ homepage: https://github.com/googleapis/google-cloud-ruby
66
65
  licenses:
67
66
  - Apache-2.0
68
67
  metadata: {}
69
- post_install_message:
70
68
  rdoc_options: []
71
69
  require_paths:
72
70
  - lib
@@ -74,15 +72,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
74
72
  requirements:
75
73
  - - ">="
76
74
  - !ruby/object:Gem::Version
77
- version: '2.7'
75
+ version: '3.0'
78
76
  required_rubygems_version: !ruby/object:Gem::Requirement
79
77
  requirements:
80
78
  - - ">="
81
79
  - !ruby/object:Gem::Version
82
80
  version: '0'
83
81
  requirements: []
84
- rubygems_version: 3.5.6
85
- signing_key:
82
+ rubygems_version: 3.6.2
86
83
  specification_version: 4
87
84
  summary: API Client library for the Data Lineage API
88
85
  test_files: []