google-cloud-metastore 1.1.0 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e0234ed329fc7fc5d88ea228030dfed06e2076d46c94d488a5792c78b2d1d817
4
- data.tar.gz: 5bef9f069f0b79ebb28d50d55c4822ee812fddbbd29a60a344e5caa86b0e4599
3
+ metadata.gz: f764c45a4f8e9f953748a7c46bd8a0a25242bff883f38a020030f8fa23764f98
4
+ data.tar.gz: 00a23f61240ff61ce10618d0ff672f2de88fa7cf16d7a57e6bc3f8e2e9a3e3af
5
5
  SHA512:
6
- metadata.gz: aa0752e667fca98880e59e62ea27d6f837db7788417be7fa6108ed4c64761115765ef8f1867d195ccd2722f7914cff6314c58386ff50fe24abdb2cef014d1ae3
7
- data.tar.gz: d7f996bdc79231dd7efa18e3d51319c938599aa0727cd30110b18f191834be7048aebd8050aaaa7adefb5033a93a4fd2f6d60591d124b8379095779c6a5dc647
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
@@ -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/stdlib/libdoc/logger/rdoc/Logger.html) as shown below,
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.
@@ -20,7 +20,7 @@
20
20
  module Google
21
21
  module Cloud
22
22
  module Metastore
23
- VERSION = "1.1.0"
23
+ VERSION = "1.2.0"
24
24
  end
25
25
  end
26
26
  end
@@ -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.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-07-05 00:00:00.000000000 Z
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.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.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.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.0'
63
+ version: '0.3'
64
64
  - - "<"
65
65
  - !ruby/object:Gem::Version
66
66
  version: 2.a