google-cloud-metastore-v1beta 0.5.0 → 0.7.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.
Files changed (27) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/lib/google/cloud/metastore/v1beta/bindings_override.rb +231 -0
  4. data/lib/google/cloud/metastore/v1beta/dataproc_metastore/client.rb +2 -2
  5. data/lib/google/cloud/metastore/v1beta/dataproc_metastore/operations.rb +2 -2
  6. data/lib/google/cloud/metastore/v1beta/dataproc_metastore/rest/client.rb +2008 -0
  7. data/lib/google/cloud/metastore/v1beta/dataproc_metastore/rest/operations.rb +793 -0
  8. data/lib/google/cloud/metastore/v1beta/dataproc_metastore/rest/service_stub.rb +1180 -0
  9. data/lib/google/cloud/metastore/v1beta/dataproc_metastore/rest.rb +70 -0
  10. data/lib/google/cloud/metastore/v1beta/dataproc_metastore.rb +6 -0
  11. data/lib/google/cloud/metastore/v1beta/dataproc_metastore_federation/client.rb +2 -2
  12. data/lib/google/cloud/metastore/v1beta/dataproc_metastore_federation/operations.rb +2 -2
  13. data/lib/google/cloud/metastore/v1beta/dataproc_metastore_federation/rest/client.rb +775 -0
  14. data/lib/google/cloud/metastore/v1beta/dataproc_metastore_federation/rest/operations.rb +793 -0
  15. data/lib/google/cloud/metastore/v1beta/dataproc_metastore_federation/rest/service_stub.rb +345 -0
  16. data/lib/google/cloud/metastore/v1beta/dataproc_metastore_federation/rest.rb +66 -0
  17. data/lib/google/cloud/metastore/v1beta/dataproc_metastore_federation.rb +6 -0
  18. data/lib/google/cloud/metastore/v1beta/metastore_federation_pb.rb +3 -0
  19. data/lib/google/cloud/metastore/v1beta/metastore_pb.rb +19 -0
  20. data/lib/google/cloud/metastore/v1beta/rest.rb +39 -0
  21. data/lib/google/cloud/metastore/v1beta/version.rb +1 -1
  22. data/lib/google/cloud/metastore/v1beta.rb +5 -0
  23. data/proto_docs/google/api/client.rb +57 -3
  24. data/proto_docs/google/cloud/metastore/v1beta/metastore.rb +42 -0
  25. data/proto_docs/google/cloud/metastore/v1beta/metastore_federation.rb +5 -4
  26. data/proto_docs/google/type/expr.rb +75 -0
  27. metadata +17 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2212f86910974ed330a8adab25a4d49837c285c7f23b067884229c79955b3c06
4
- data.tar.gz: 6a8234f33763dca8c99a6315c93e214eef00593d9d659ffeaf14442bd5b35739
3
+ metadata.gz: f504c1e3841943ba9a899cc26df135126f8fb2464e0aed7320715872273d8560
4
+ data.tar.gz: 5193786c84e54734b3363650f1ec58e9092c387c7475fad6a452c0458e1efcea
5
5
  SHA512:
6
- metadata.gz: d720c88e152d8bed946d1a179f26d5734b440f3006f1fc4191d767efdc01a3eaa4565863fc5a9e47008fedc678eb3568c480218ca69ae5f42e281ab9e779f75e
7
- data.tar.gz: aa2870156f33f5e4dd17c743b729535b6a5cd296d9b358f635a73be88c42d320b183e5cfbf90b9050dabeccc4f9fd6abf62cc6278d3472baf07d2a269838ec3f
6
+ metadata.gz: 3074c18f5204d0b32efcc7e2e9b48ea1a710c49afd258ada6254b7348f2c6d4c68886a0721cf8ded224e949bc7479d90eccdbcef3b12ef4aa97d3f39d24139e2
7
+ data.tar.gz: 1184d41ad0ee763c61e379a5a8c5a15825781767450b4bb28b2fa018aa60c39010aa4ab8db5fe27bafc37b34b015cbcedef5b3eb7078b133ab367e8cd6ccaa63
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Ruby Client for the Dataproc Metastore V1beta API
2
2
 
3
- API Client library for the Dataproc Metastore V1beta API
3
+ The Dataproc Metastore API is used to manage the lifecycle and configuration of metastore services.
4
4
 
5
5
  Dataproc Metastore is a fully managed, highly available within a region, autohealing serverless Apache Hive metastore (HMS) on Google Cloud for data analytics products. It supports HMS and serves as a critical component for managing the metadata of relational entities and provides interoperability between data processing applications in the open source data ecosystem.
6
6
 
@@ -47,7 +47,7 @@ for general usage information.
47
47
 
48
48
  To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
49
49
  The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
50
- or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
50
+ or a [`Google::Cloud::Logging::Logger`](https://cloud.google.com/ruby/docs/reference/google-cloud-logging/latest)
51
51
  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)
52
52
  and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
53
53
 
@@ -0,0 +1,231 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2023 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "gapic/config"
20
+
21
+ module Google
22
+ module Cloud
23
+ module Metastore
24
+ ##
25
+ # @example Loading just the REST part of this package, including all its services, and instantiating a REST client
26
+ #
27
+ # require "google/cloud/metastore/v1beta/rest"
28
+ # client = ::Google::Cloud::Metastore::V1beta::DataprocMetastore::Rest::Client.new
29
+ #
30
+ module V1beta
31
+ ##
32
+ # @private
33
+ # Initialize the mixin bindings configuration
34
+ #
35
+ def self.configure
36
+ @configure ||= begin
37
+ namespace = ["Google", "Cloud", "Metastore"]
38
+ parent_config = while namespace.any?
39
+ parent_name = namespace.join "::"
40
+ parent_const = const_get parent_name
41
+ break parent_const.configure if parent_const.respond_to? :configure
42
+ namespace.pop
43
+ end
44
+
45
+ default_config = Configuration.new parent_config
46
+ default_config.bindings_override["google.cloud.location.Locations.GetLocation"] = [
47
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
48
+ uri_method: :get,
49
+ uri_template: "/v1beta/{name}",
50
+ matches: [
51
+ ["name", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
52
+ ],
53
+ body: nil
54
+ )
55
+ ]
56
+ default_config.bindings_override["google.cloud.location.Locations.ListLocations"] = [
57
+
58
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
59
+ uri_method: :get,
60
+ uri_template: "/v1beta/{name}/locations",
61
+ matches: [
62
+ ["name", %r{^projects/[^/]+/?$}, false]
63
+ ],
64
+ body: nil
65
+ )
66
+ ]
67
+ default_config.bindings_override["google.iam.v1.IAMPolicy.GetIamPolicy"] = [
68
+
69
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
70
+ uri_method: :get,
71
+ uri_template: "/v1beta/{resource}:getIamPolicy",
72
+ matches: [
73
+ ["resource", %r{^projects/[^/]+/locations/[^/]+/services/[^/]+/?$}, false]
74
+ ],
75
+ body: nil
76
+ ),
77
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
78
+ uri_method: :get,
79
+ uri_template: "/v1beta/{resource}:getIamPolicy",
80
+ matches: [
81
+ ["resource", %r{^projects/[^/]+/locations/[^/]+/services/[^/]+/backups/[^/]+/?$}, false]
82
+ ],
83
+ body: nil
84
+ ),
85
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
86
+ uri_method: :get,
87
+ uri_template: "/v1beta/{resource}:getIamPolicy",
88
+ matches: [
89
+ ["resource", %r{^projects/[^/]+/locations/[^/]+/services/[^/]+/databases/[^/]+/?$}, false]
90
+ ],
91
+ body: nil
92
+ ),
93
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
94
+ uri_method: :get,
95
+ uri_template: "/v1beta/{resource}:getIamPolicy",
96
+ matches: [
97
+ ["resource", %r{^projects/[^/]+/locations/[^/]+/services/[^/]+/databases/[^/]+/tables/[^/]+/?$}, false]
98
+ ],
99
+ body: nil
100
+ ),
101
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
102
+ uri_method: :get,
103
+ uri_template: "/v1beta/{resource}:getIamPolicy",
104
+ matches: [
105
+ ["resource", %r{^projects/[^/]+/locations/[^/]+/federations/[^/]+/?$}, false]
106
+ ],
107
+ body: nil
108
+ )
109
+ ]
110
+ default_config.bindings_override["google.iam.v1.IAMPolicy.SetIamPolicy"] = [
111
+
112
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
113
+ uri_method: :post,
114
+ uri_template: "/v1beta/{resource}:setIamPolicy",
115
+ matches: [
116
+ ["resource", %r{^projects/[^/]+/locations/[^/]+/services/[^/]+/?$}, false]
117
+ ],
118
+ body: "*"
119
+ ),
120
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
121
+ uri_method: :post,
122
+ uri_template: "/v1beta/{resource}:setIamPolicy",
123
+ matches: [
124
+ ["resource", %r{^projects/[^/]+/locations/[^/]+/services/[^/]+/backups/[^/]+/?$}, false]
125
+ ],
126
+ body: "*"
127
+ ),
128
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
129
+ uri_method: :post,
130
+ uri_template: "/v1beta/{resource}:setIamPolicy",
131
+ matches: [
132
+ ["resource", %r{^projects/[^/]+/locations/[^/]+/services/[^/]+/databases/[^/]+/?$}, false]
133
+ ],
134
+ body: "*"
135
+ ),
136
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
137
+ uri_method: :post,
138
+ uri_template: "/v1beta/{resource}:setIamPolicy",
139
+ matches: [
140
+ ["resource", %r{^projects/[^/]+/locations/[^/]+/services/[^/]+/databases/[^/]+/tables/[^/]+/?$}, false]
141
+ ],
142
+ body: "*"
143
+ ),
144
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
145
+ uri_method: :post,
146
+ uri_template: "/v1beta/{resource}:setIamPolicy",
147
+ matches: [
148
+ ["resource", %r{^projects/[^/]+/locations/[^/]+/federations/[^/]+/?$}, false]
149
+ ],
150
+ body: "*"
151
+ )
152
+ ]
153
+ default_config.bindings_override["google.iam.v1.IAMPolicy.TestIamPermissions"] = [
154
+
155
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
156
+ uri_method: :post,
157
+ uri_template: "/v1beta/{resource}:testIamPermissions",
158
+ matches: [
159
+ ["resource", %r{^projects/[^/]+/locations/[^/]+/services/[^/]+/?$}, false]
160
+ ],
161
+ body: "*"
162
+ ),
163
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
164
+ uri_method: :post,
165
+ uri_template: "/v1beta/{resource}:testIamPermissions",
166
+ matches: [
167
+ ["resource", %r{^projects/[^/]+/locations/[^/]+/services/[^/]+/backups/[^/]+/?$}, false]
168
+ ],
169
+ body: "*"
170
+ ),
171
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
172
+ uri_method: :post,
173
+ uri_template: "/v1beta/{resource}:testIamPermissions",
174
+ matches: [
175
+ ["resource", %r{^projects/[^/]+/locations/[^/]+/services/[^/]+/databases/[^/]+/?$}, false]
176
+ ],
177
+ body: "*"
178
+ ),
179
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
180
+ uri_method: :post,
181
+ uri_template: "/v1beta/{resource}:testIamPermissions",
182
+ matches: [
183
+ ["resource", %r{^projects/[^/]+/locations/[^/]+/services/[^/]+/databases/[^/]+/tables/[^/]+/?$}, false]
184
+ ],
185
+ body: "*"
186
+ ),
187
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
188
+ uri_method: :post,
189
+ uri_template: "/v1beta/{resource}:testIamPermissions",
190
+ matches: [
191
+ ["resource", %r{^projects/[^/]+/locations/[^/]+/federations/[^/]+/?$}, false]
192
+ ],
193
+ body: "*"
194
+ )
195
+ ]
196
+ default_config
197
+ end
198
+ yield @configure if block_given?
199
+ @configure
200
+ end
201
+
202
+ ##
203
+ # @private
204
+ # Configuration class for the google.cloud.metastore.v1beta package.
205
+ #
206
+ # This class contains common configuration for all services
207
+ # of the google.cloud.metastore.v1beta package.
208
+ #
209
+ # This configuration is for internal use of the client library classes,
210
+ # and it is not intended that the end-users will read or change it.
211
+ #
212
+ class Configuration
213
+ extend ::Gapic::Config
214
+
215
+ # @private
216
+ # Overrides for http bindings for the RPC of the mixins for this package.
217
+ # Services in this package should use these when creating clients for the mixin services.
218
+ # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
219
+ config_attr :bindings_override, {}, ::Hash, nil
220
+
221
+ # @private
222
+ def initialize parent_config = nil
223
+ @parent_config = parent_config unless parent_config.nil?
224
+
225
+ yield self if block_given?
226
+ end
227
+ end
228
+ end
229
+ end
230
+ end
231
+ end
@@ -2309,9 +2309,9 @@ module Google
2309
2309
  # * (`String`) The path to a service account key file in JSON format
2310
2310
  # * (`Hash`) A service account key as a Hash
2311
2311
  # * (`Google::Auth::Credentials`) A googleauth credentials object
2312
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
2312
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
2313
2313
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
2314
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
2314
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
2315
2315
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
2316
2316
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
2317
2317
  # * (`nil`) indicating no credentials
@@ -620,9 +620,9 @@ module Google
620
620
  # * (`String`) The path to a service account key file in JSON format
621
621
  # * (`Hash`) A service account key as a Hash
622
622
  # * (`Google::Auth::Credentials`) A googleauth credentials object
623
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
623
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
624
624
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
625
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
625
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
626
626
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
627
627
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
628
628
  # * (`nil`) indicating no credentials