google-cloud-metastore 1.5.1 → 2.0.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: e4736980c3df0e299931c1893c1f9ab3e483372f5a14dc2a4a775db8257f5f5a
4
- data.tar.gz: 9cc9a33540cfb89262234c79271a111a9c36963517cec96a61f48d5bcc2eae8b
3
+ metadata.gz: c1c4f5b4d4b27fcadce612d50825f1f1081dab2526d5914bb49786688a46d681
4
+ data.tar.gz: 7c4925bde4d2c4a79ef7042879d1431d6a90f9c860d5311a8e7c698ebefa8854
5
5
  SHA512:
6
- metadata.gz: 356cc29a17035267e86c1574eade39e559207ff48e317baeb24ea5850dfbc2cc1fe714502744b1909ed8690b6e800bf04adced75908446fd25ef3eed507f531b
7
- data.tar.gz: f62711b24d04fb61ac941c9f79785fbac9a90f40f198441dd81bfc0e731c49ef4a4ee4576e213769e5c0a8512ead08f45852da3a6a08b99333338024ab1435b1
6
+ metadata.gz: 30b3c262d2f0ce1ccf540f19fd97ed3c8538de2ae7b91b57c73859d0b5b734394c527db655048278e274412d771882a0a19b2121b7d31fc5d27de28df9d74681
7
+ data.tar.gz: 918b396294bd9d6c132c59addf3b092f74d4b4bd456064b9f7dd19fc4b2b8d5f1a3525bf38a4d86b0ec2e1b6edb7492cfe483902caac3dc9cb41ec56c99d4d6b
data/README.md CHANGED
@@ -16,8 +16,7 @@ for this library, google-cloud-metastore, to see the convenience methods for
16
16
  constructing client objects. Reference documentation for the client objects
17
17
  themselves can be found in the client library documentation for the versioned
18
18
  client gems:
19
- [google-cloud-metastore-v1](https://cloud.google.com/ruby/docs/reference/google-cloud-metastore-v1/latest),
20
- [google-cloud-metastore-v1beta](https://cloud.google.com/ruby/docs/reference/google-cloud-metastore-v1beta/latest).
19
+ [google-cloud-metastore-v1](https://cloud.google.com/ruby/docs/reference/google-cloud-metastore-v1/latest).
21
20
 
22
21
  See also the [Product Documentation](https://cloud.google.com/dataproc-metastore/)
23
22
  for more usage information.
@@ -35,9 +34,39 @@ In order to use this library, you first need to go through the following steps:
35
34
  1. [Enable the API.](https://console.cloud.google.com/apis/library/metastore.googleapis.com)
36
35
  1. {file:AUTHENTICATION.md Set up authentication.}
37
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-metastore-v1](https://cloud.google.com/ruby/docs/reference/google-cloud-metastore-v1/latest).
66
+
38
67
  ## Supported Ruby Versions
39
68
 
40
- This library is supported on Ruby 2.7+.
69
+ This library is supported on Ruby 3.0+.
41
70
 
42
71
  Google provides official support for Ruby versions that are actively supported
43
72
  by Ruby Core—that is, Ruby versions that are either in normal maintenance or
@@ -20,7 +20,7 @@
20
20
  module Google
21
21
  module Cloud
22
22
  module Metastore
23
- VERSION = "1.5.1"
23
+ VERSION = "2.0.0"
24
24
  end
25
25
  end
26
26
  end
@@ -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 DataprocMetastore service.
63
+ # You can determine whether the method will succeed by calling
64
+ # {Google::Cloud::Metastore.dataproc_metastore_available?}.
65
+ #
61
66
  # ## About DataprocMetastore
62
67
  #
63
68
  # Configures and manages metastore services.
@@ -95,6 +100,37 @@ module Google
95
100
  service_module.const_get(:Client).new(&block)
96
101
  end
97
102
 
103
+ ##
104
+ # Determines whether the DataprocMetastore service is supported by the current client.
105
+ # If true, you can retrieve a client object by calling {Google::Cloud::Metastore.dataproc_metastore}.
106
+ # If false, that method will raise an exception. This could happen if the given
107
+ # API version does not exist or does not support the DataprocMetastore service,
108
+ # or if the versioned client gem needs an update to support the DataprocMetastore service.
109
+ #
110
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
111
+ # Defaults to `:v1`.
112
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
113
+ # @return [boolean] Whether the service is available.
114
+ #
115
+ def self.dataproc_metastore_available? version: :v1, transport: :grpc
116
+ require "google/cloud/metastore/#{version.to_s.downcase}"
117
+ package_name = Google::Cloud::Metastore
118
+ .constants
119
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
120
+ .first
121
+ return false unless package_name
122
+ service_module = Google::Cloud::Metastore.const_get package_name
123
+ return false unless service_module.const_defined? :DataprocMetastore
124
+ service_module = service_module.const_get :DataprocMetastore
125
+ if transport == :rest
126
+ return false unless service_module.const_defined? :Rest
127
+ service_module = service_module.const_get :Rest
128
+ end
129
+ service_module.const_defined? :Client
130
+ rescue ::LoadError
131
+ false
132
+ end
133
+
98
134
  ##
99
135
  # Create a new client object for DataprocMetastoreFederation.
100
136
  #
@@ -108,6 +144,11 @@ module Google
108
144
  # You can also specify a different transport by passing `:rest` or `:grpc` in
109
145
  # the `transport` parameter.
110
146
  #
147
+ # Raises an exception if the currently installed versioned client gem for the
148
+ # given API version does not support the given transport of the DataprocMetastoreFederation service.
149
+ # You can determine whether the method will succeed by calling
150
+ # {Google::Cloud::Metastore.dataproc_metastore_federation_available?}.
151
+ #
111
152
  # ## About DataprocMetastoreFederation
112
153
  #
113
154
  # Configures and manages metastore federation services.
@@ -141,6 +182,37 @@ module Google
141
182
  service_module.const_get(:Client).new(&block)
142
183
  end
143
184
 
185
+ ##
186
+ # Determines whether the DataprocMetastoreFederation service is supported by the current client.
187
+ # If true, you can retrieve a client object by calling {Google::Cloud::Metastore.dataproc_metastore_federation}.
188
+ # If false, that method will raise an exception. This could happen if the given
189
+ # API version does not exist or does not support the DataprocMetastoreFederation service,
190
+ # or if the versioned client gem needs an update to support the DataprocMetastoreFederation service.
191
+ #
192
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
193
+ # Defaults to `:v1`.
194
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
195
+ # @return [boolean] Whether the service is available.
196
+ #
197
+ def self.dataproc_metastore_federation_available? version: :v1, transport: :grpc
198
+ require "google/cloud/metastore/#{version.to_s.downcase}"
199
+ package_name = Google::Cloud::Metastore
200
+ .constants
201
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
202
+ .first
203
+ return false unless package_name
204
+ service_module = Google::Cloud::Metastore.const_get package_name
205
+ return false unless service_module.const_defined? :DataprocMetastoreFederation
206
+ service_module = service_module.const_get :DataprocMetastoreFederation
207
+ if transport == :rest
208
+ return false unless service_module.const_defined? :Rest
209
+ service_module = service_module.const_get :Rest
210
+ end
211
+ service_module.const_defined? :Client
212
+ rescue ::LoadError
213
+ false
214
+ end
215
+
144
216
  ##
145
217
  # Configure the google-cloud-metastore library.
146
218
  #
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-metastore
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.1
4
+ version: 2.0.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-02-13 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: google-cloud-core
@@ -28,42 +27,16 @@ dependencies:
28
27
  name: google-cloud-metastore-v1
29
28
  requirement: !ruby/object:Gem::Requirement
30
29
  requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: '0.12'
34
- - - "<"
35
- - !ruby/object:Gem::Version
36
- version: 2.a
37
- type: :runtime
38
- prerelease: false
39
- version_requirements: !ruby/object:Gem::Requirement
40
- requirements:
41
- - - ">="
42
- - !ruby/object:Gem::Version
43
- version: '0.12'
44
- - - "<"
45
- - !ruby/object:Gem::Version
46
- version: 2.a
47
- - !ruby/object:Gem::Dependency
48
- name: google-cloud-metastore-v1beta
49
- requirement: !ruby/object:Gem::Requirement
50
- requirements:
51
- - - ">="
52
- - !ruby/object:Gem::Version
53
- version: '0.12'
54
- - - "<"
30
+ - - "~>"
55
31
  - !ruby/object:Gem::Version
56
- version: 2.a
32
+ version: '2.0'
57
33
  type: :runtime
58
34
  prerelease: false
59
35
  version_requirements: !ruby/object:Gem::Requirement
60
36
  requirements:
61
- - - ">="
62
- - !ruby/object:Gem::Version
63
- version: '0.12'
64
- - - "<"
37
+ - - "~>"
65
38
  - !ruby/object:Gem::Version
66
- version: 2.a
39
+ version: '2.0'
67
40
  description: Dataproc Metastore is a fully managed, highly available within a region,
68
41
  autohealing serverless Apache Hive metastore (HMS) on Google Cloud for data analytics
69
42
  products. It supports HMS and serves as a critical component for managing the metadata
@@ -85,7 +58,6 @@ homepage: https://github.com/googleapis/google-cloud-ruby
85
58
  licenses:
86
59
  - Apache-2.0
87
60
  metadata: {}
88
- post_install_message:
89
61
  rdoc_options: []
90
62
  require_paths:
91
63
  - lib
@@ -93,15 +65,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
93
65
  requirements:
94
66
  - - ">="
95
67
  - !ruby/object:Gem::Version
96
- version: '2.7'
68
+ version: '3.0'
97
69
  required_rubygems_version: !ruby/object:Gem::Requirement
98
70
  requirements:
99
71
  - - ">="
100
72
  - !ruby/object:Gem::Version
101
73
  version: '0'
102
74
  requirements: []
103
- rubygems_version: 3.5.6
104
- signing_key:
75
+ rubygems_version: 3.6.3
105
76
  specification_version: 4
106
77
  summary: API Client library for the Dataproc Metastore API
107
78
  test_files: []