google-cloud-metastore 1.0.1 → 1.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 +4 -4
- data/AUTHENTICATION.md +1 -1
- data/README.md +7 -7
- data/lib/google/cloud/metastore/version.rb +1 -1
- data/lib/google/cloud/metastore.rb +42 -0
- metadata +14 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f764c45a4f8e9f953748a7c46bd8a0a25242bff883f38a020030f8fa23764f98
|
4
|
+
data.tar.gz: 00a23f61240ff61ce10618d0ff672f2de88fa7cf16d7a57e6bc3f8e2e9a3e3af
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a599bd5bb5ebc6bdc07e7f7f4a4e6befce2afbf73ddcbfb46468641c70c6dfe4a1d1684939ea9f39c23806d1416b5b4da5e956ec9ab29f5687c0d460673e2c8f
|
7
|
+
data.tar.gz: 1402216564776ac94fc4a0e5a69d1f2dc79af63e900a61472cf1834e1e6d751a0a7768a2884404aec0a150a5c228d030270184c4ade6b5b557eb756f387b0d6e
|
data/AUTHENTICATION.md
CHANGED
@@ -114,7 +114,7 @@ credentials are discovered.
|
|
114
114
|
To configure your system for this, simply:
|
115
115
|
|
116
116
|
1. [Download and install the Cloud SDK](https://cloud.google.com/sdk)
|
117
|
-
2. Authenticate using OAuth 2.0 `$ gcloud auth login`
|
117
|
+
2. Authenticate using OAuth 2.0 `$ gcloud auth application-default login`
|
118
118
|
3. Write code as if already authenticated.
|
119
119
|
|
120
120
|
**NOTE:** This is _not_ recommended for running in production. The Cloud SDK
|
data/README.md
CHANGED
@@ -11,7 +11,7 @@ verisoned 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
|
|
14
|
-
View the [Client Library Documentation](https://
|
14
|
+
View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-metastore/latest)
|
15
15
|
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
|
@@ -38,7 +38,7 @@ In order to use this library, you first need to go through the following steps:
|
|
38
38
|
## Enabling Logging
|
39
39
|
|
40
40
|
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
41
|
-
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/
|
41
|
+
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
|
42
42
|
or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
|
43
43
|
that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
44
44
|
and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
@@ -63,14 +63,14 @@ end
|
|
63
63
|
|
64
64
|
## Supported Ruby Versions
|
65
65
|
|
66
|
-
This library is supported on Ruby 2.
|
66
|
+
This library is supported on Ruby 2.6+.
|
67
67
|
|
68
68
|
Google provides official support for Ruby versions that are actively supported
|
69
69
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
70
|
-
in security maintenance, and not end of life.
|
71
|
-
|
72
|
-
|
73
|
-
|
70
|
+
in security maintenance, and not end of life. Older versions of Ruby _may_
|
71
|
+
still work, but are unsupported and not recommended. See
|
72
|
+
https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby
|
73
|
+
support schedule.
|
74
74
|
|
75
75
|
## Which client should I use?
|
76
76
|
|
@@ -90,6 +90,48 @@ module Google
|
|
90
90
|
package_module.const_get(:DataprocMetastore).const_get(:Client).new(&block)
|
91
91
|
end
|
92
92
|
|
93
|
+
##
|
94
|
+
# Create a new client object for DataprocMetastoreFederation.
|
95
|
+
#
|
96
|
+
# By default, this returns an instance of
|
97
|
+
# [Google::Cloud::Metastore::V1::DataprocMetastoreFederation::Client](https://googleapis.dev/ruby/google-cloud-metastore-v1/latest/Google/Cloud/Metastore/V1/DataprocMetastoreFederation/Client.html)
|
98
|
+
# for version V1 of the API.
|
99
|
+
# However, you can specify specify a different API version by passing it in the
|
100
|
+
# `version` parameter. If the DataprocMetastoreFederation service is
|
101
|
+
# supported by that API version, and the corresponding gem is available, the
|
102
|
+
# appropriate versioned client will be returned.
|
103
|
+
#
|
104
|
+
# ## About DataprocMetastoreFederation
|
105
|
+
#
|
106
|
+
# Configures and manages metastore federation services.
|
107
|
+
# Dataproc Metastore Federation Service allows federating a collection of
|
108
|
+
# backend metastores like BigQuery, Dataplex Lakes, and other Dataproc
|
109
|
+
# Metastores. The Federation Service exposes a gRPC URL through which metadata
|
110
|
+
# from the backend metastores are served at query time.
|
111
|
+
#
|
112
|
+
# The Dataproc Metastore Federation API defines the following resource model:
|
113
|
+
# * The service works with a collection of Google Cloud projects.
|
114
|
+
# * Each project has a collection of available locations.
|
115
|
+
# * Each location has a collection of federations.
|
116
|
+
# * Dataproc Metastore Federations are resources with names of the
|
117
|
+
# form:
|
118
|
+
# `projects/{project_number}/locations/{location_id}/federations/{federation_id}`.
|
119
|
+
#
|
120
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
121
|
+
# Defaults to `:v1`.
|
122
|
+
# @return [DataprocMetastoreFederation::Client] A client object for the specified version.
|
123
|
+
#
|
124
|
+
def self.dataproc_metastore_federation version: :v1, &block
|
125
|
+
require "google/cloud/metastore/#{version.to_s.downcase}"
|
126
|
+
|
127
|
+
package_name = Google::Cloud::Metastore
|
128
|
+
.constants
|
129
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
130
|
+
.first
|
131
|
+
package_module = Google::Cloud::Metastore.const_get package_name
|
132
|
+
package_module.const_get(:DataprocMetastoreFederation).const_get(:Client).new(&block)
|
133
|
+
end
|
134
|
+
|
93
135
|
##
|
94
136
|
# Configure the google-cloud-metastore library.
|
95
137
|
#
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-metastore
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-12-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-cloud-core
|
@@ -30,7 +30,7 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '0.
|
33
|
+
version: '0.4'
|
34
34
|
- - "<"
|
35
35
|
- !ruby/object:Gem::Version
|
36
36
|
version: 2.a
|
@@ -40,7 +40,7 @@ dependencies:
|
|
40
40
|
requirements:
|
41
41
|
- - ">="
|
42
42
|
- !ruby/object:Gem::Version
|
43
|
-
version: '0.
|
43
|
+
version: '0.4'
|
44
44
|
- - "<"
|
45
45
|
- !ruby/object:Gem::Version
|
46
46
|
version: 2.a
|
@@ -50,7 +50,7 @@ dependencies:
|
|
50
50
|
requirements:
|
51
51
|
- - ">="
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: '0.
|
53
|
+
version: '0.3'
|
54
54
|
- - "<"
|
55
55
|
- !ruby/object:Gem::Version
|
56
56
|
version: 2.a
|
@@ -60,7 +60,7 @@ dependencies:
|
|
60
60
|
requirements:
|
61
61
|
- - ">="
|
62
62
|
- !ruby/object:Gem::Version
|
63
|
-
version: '0.
|
63
|
+
version: '0.3'
|
64
64
|
- - "<"
|
65
65
|
- !ruby/object:Gem::Version
|
66
66
|
version: 2.a
|
@@ -70,28 +70,28 @@ dependencies:
|
|
70
70
|
requirements:
|
71
71
|
- - "~>"
|
72
72
|
- !ruby/object:Gem::Version
|
73
|
-
version: 1.
|
73
|
+
version: 1.26.1
|
74
74
|
type: :development
|
75
75
|
prerelease: false
|
76
76
|
version_requirements: !ruby/object:Gem::Requirement
|
77
77
|
requirements:
|
78
78
|
- - "~>"
|
79
79
|
- !ruby/object:Gem::Version
|
80
|
-
version: 1.
|
80
|
+
version: 1.26.1
|
81
81
|
- !ruby/object:Gem::Dependency
|
82
82
|
name: minitest
|
83
83
|
requirement: !ruby/object:Gem::Requirement
|
84
84
|
requirements:
|
85
85
|
- - "~>"
|
86
86
|
- !ruby/object:Gem::Version
|
87
|
-
version: '5.
|
87
|
+
version: '5.16'
|
88
88
|
type: :development
|
89
89
|
prerelease: false
|
90
90
|
version_requirements: !ruby/object:Gem::Requirement
|
91
91
|
requirements:
|
92
92
|
- - "~>"
|
93
93
|
- !ruby/object:Gem::Version
|
94
|
-
version: '5.
|
94
|
+
version: '5.16'
|
95
95
|
- !ruby/object:Gem::Dependency
|
96
96
|
name: minitest-focus
|
97
97
|
requirement: !ruby/object:Gem::Requirement
|
@@ -126,14 +126,14 @@ dependencies:
|
|
126
126
|
requirements:
|
127
127
|
- - ">="
|
128
128
|
- !ruby/object:Gem::Version
|
129
|
-
version: '
|
129
|
+
version: '13.0'
|
130
130
|
type: :development
|
131
131
|
prerelease: false
|
132
132
|
version_requirements: !ruby/object:Gem::Requirement
|
133
133
|
requirements:
|
134
134
|
- - ">="
|
135
135
|
- !ruby/object:Gem::Version
|
136
|
-
version: '
|
136
|
+
version: '13.0'
|
137
137
|
- !ruby/object:Gem::Dependency
|
138
138
|
name: redcarpet
|
139
139
|
requirement: !ruby/object:Gem::Requirement
|
@@ -205,14 +205,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
205
205
|
requirements:
|
206
206
|
- - ">="
|
207
207
|
- !ruby/object:Gem::Version
|
208
|
-
version: '2.
|
208
|
+
version: '2.6'
|
209
209
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
210
210
|
requirements:
|
211
211
|
- - ">="
|
212
212
|
- !ruby/object:Gem::Version
|
213
213
|
version: '0'
|
214
214
|
requirements: []
|
215
|
-
rubygems_version: 3.3.
|
215
|
+
rubygems_version: 3.3.14
|
216
216
|
signing_key:
|
217
217
|
specification_version: 4
|
218
218
|
summary: API Client library for the Dataproc Metastore API
|