google-cloud-metastore 1.0.1 → 1.2.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: d5a49b52ffd22d9fa2c99a6d82e1f34e3fa247869c8904ac01938d01e92f2dab
4
- data.tar.gz: b0ce3de8eee8b1c83adf9cf813ec47a620e6e56c1073047641a1f533150fc84d
3
+ metadata.gz: f764c45a4f8e9f953748a7c46bd8a0a25242bff883f38a020030f8fa23764f98
4
+ data.tar.gz: 00a23f61240ff61ce10618d0ff672f2de88fa7cf16d7a57e6bc3f8e2e9a3e3af
5
5
  SHA512:
6
- metadata.gz: 4ab463825b5c636298956bd1e4fb61904cc0fc9f1266d6cded89a855ebca08e1fc5937ab3ff85137444152fa3b320447eea3a3a1c4640dedc6738ad258a2473c
7
- data.tar.gz: d0b1a815c9e07a800ab91ccf8096a1951f589029d27f473008dd1809ffa4a4971c95f18950ac71d170710728de08d772859f9444f493ad983320c6f41253675e
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://googleapis.dev/ruby/google-cloud-metastore/latest)
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/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.
@@ -63,14 +63,14 @@ end
63
63
 
64
64
  ## Supported Ruby Versions
65
65
 
66
- This library is supported on Ruby 2.5+.
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. Currently, this means Ruby 2.5
71
- and later. Older versions of Ruby _may_ still work, but are unsupported and not
72
- recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details
73
- about the Ruby support schedule.
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
 
@@ -20,7 +20,7 @@
20
20
  module Google
21
21
  module Cloud
22
22
  module Metastore
23
- VERSION = "1.0.1"
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.0.1
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-01-11 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
@@ -70,28 +70,28 @@ dependencies:
70
70
  requirements:
71
71
  - - "~>"
72
72
  - !ruby/object:Gem::Version
73
- version: 1.25.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.25.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.14'
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.14'
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: '12.0'
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: '12.0'
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.5'
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.4
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