google-cloud-managed_kafka-schema_registry-v1 0.a → 0.1.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/.yardopts +12 -0
- data/AUTHENTICATION.md +122 -0
- data/README.md +153 -8
- data/lib/google/cloud/managed_kafka/schema_registry/v1/bindings_override.rb +77 -0
- data/lib/google/cloud/managed_kafka/schema_registry/v1/managed_schema_registry/client.rb +3110 -0
- data/lib/google/cloud/managed_kafka/schema_registry/v1/managed_schema_registry/credentials.rb +49 -0
- data/lib/google/cloud/managed_kafka/schema_registry/v1/managed_schema_registry/paths.rb +424 -0
- data/lib/google/cloud/managed_kafka/schema_registry/v1/managed_schema_registry/rest/client.rb +2903 -0
- data/lib/google/cloud/managed_kafka/schema_registry/v1/managed_schema_registry/rest/service_stub.rb +1888 -0
- data/lib/google/cloud/managed_kafka/schema_registry/v1/managed_schema_registry/rest.rb +103 -0
- data/lib/google/cloud/managed_kafka/schema_registry/v1/managed_schema_registry.rb +105 -0
- data/lib/google/cloud/managed_kafka/schema_registry/v1/rest.rb +40 -0
- data/lib/google/cloud/managed_kafka/schema_registry/v1/version.rb +7 -2
- data/lib/google/cloud/managed_kafka/schema_registry/v1.rb +47 -0
- data/lib/google/cloud/managedkafka/schemaregistry/v1/schema_registry_pb.rb +80 -0
- data/lib/google/cloud/managedkafka/schemaregistry/v1/schema_registry_resources_pb.rb +57 -0
- data/lib/google/cloud/managedkafka/schemaregistry/v1/schema_registry_services_pb.rb +160 -0
- data/lib/google-cloud-managed_kafka-schema_registry-v1.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/client.rb +473 -0
- data/proto_docs/google/api/field_behavior.rb +85 -0
- data/proto_docs/google/api/httpbody.rb +80 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/api/resource.rb +227 -0
- data/proto_docs/google/cloud/managedkafka/schemaregistry/v1/schema_registry.rb +488 -0
- data/proto_docs/google/cloud/managedkafka/schemaregistry/v1/schema_registry_resources.rb +236 -0
- data/proto_docs/google/protobuf/any.rb +145 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +34 -0
- metadata +77 -9
data/lib/google/cloud/managed_kafka/schema_registry/v1/managed_schema_registry/rest/service_stub.rb
ADDED
@@ -0,0 +1,1888 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2025 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 "google/cloud/managedkafka/schemaregistry/v1/schema_registry_pb"
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Cloud
|
23
|
+
module ManagedKafka
|
24
|
+
module SchemaRegistry
|
25
|
+
module V1
|
26
|
+
module ManagedSchemaRegistry
|
27
|
+
module Rest
|
28
|
+
##
|
29
|
+
# REST service stub for the ManagedSchemaRegistry service.
|
30
|
+
# Service stub contains baseline method implementations
|
31
|
+
# including transcoding, making the REST call, and deserialing the response.
|
32
|
+
#
|
33
|
+
class ServiceStub
|
34
|
+
# @private
|
35
|
+
def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger:
|
36
|
+
# These require statements are intentionally placed here to initialize
|
37
|
+
# the REST modules only when it's required.
|
38
|
+
require "gapic/rest"
|
39
|
+
|
40
|
+
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint,
|
41
|
+
endpoint_template: endpoint_template,
|
42
|
+
universe_domain: universe_domain,
|
43
|
+
credentials: credentials,
|
44
|
+
numeric_enums: true,
|
45
|
+
service_name: self.class,
|
46
|
+
raise_faraday_errors: false,
|
47
|
+
logger: logger
|
48
|
+
end
|
49
|
+
|
50
|
+
##
|
51
|
+
# The effective universe domain
|
52
|
+
#
|
53
|
+
# @return [String]
|
54
|
+
#
|
55
|
+
def universe_domain
|
56
|
+
@client_stub.universe_domain
|
57
|
+
end
|
58
|
+
|
59
|
+
##
|
60
|
+
# The effective endpoint
|
61
|
+
#
|
62
|
+
# @return [String]
|
63
|
+
#
|
64
|
+
def endpoint
|
65
|
+
@client_stub.endpoint
|
66
|
+
end
|
67
|
+
|
68
|
+
##
|
69
|
+
# The logger used for request/response debug logging.
|
70
|
+
#
|
71
|
+
# @return [Logger]
|
72
|
+
#
|
73
|
+
def logger stub: false
|
74
|
+
stub ? @client_stub.stub_logger : @client_stub.logger
|
75
|
+
end
|
76
|
+
|
77
|
+
##
|
78
|
+
# Baseline implementation for the get_schema_registry REST call
|
79
|
+
#
|
80
|
+
# @param request_pb [::Google::Cloud::ManagedKafka::SchemaRegistry::V1::GetSchemaRegistryRequest]
|
81
|
+
# A request object representing the call parameters. Required.
|
82
|
+
# @param options [::Gapic::CallOptions]
|
83
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
84
|
+
#
|
85
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
86
|
+
# @yieldparam result [::Google::Cloud::ManagedKafka::SchemaRegistry::V1::SchemaRegistry]
|
87
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
88
|
+
#
|
89
|
+
# @return [::Google::Cloud::ManagedKafka::SchemaRegistry::V1::SchemaRegistry]
|
90
|
+
# A result object deserialized from the server's reply
|
91
|
+
def get_schema_registry request_pb, options = nil
|
92
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
93
|
+
|
94
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_schema_registry_request request_pb
|
95
|
+
query_string_params = if query_string_params.any?
|
96
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
97
|
+
else
|
98
|
+
{}
|
99
|
+
end
|
100
|
+
|
101
|
+
response = @client_stub.make_http_request(
|
102
|
+
verb,
|
103
|
+
uri: uri,
|
104
|
+
body: body || "",
|
105
|
+
params: query_string_params,
|
106
|
+
method_name: "get_schema_registry",
|
107
|
+
options: options
|
108
|
+
)
|
109
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
110
|
+
result = ::Google::Cloud::ManagedKafka::SchemaRegistry::V1::SchemaRegistry.decode_json response.body, ignore_unknown_fields: true
|
111
|
+
catch :response do
|
112
|
+
yield result, operation if block_given?
|
113
|
+
result
|
114
|
+
end
|
115
|
+
end
|
116
|
+
|
117
|
+
##
|
118
|
+
# Baseline implementation for the list_schema_registries REST call
|
119
|
+
#
|
120
|
+
# @param request_pb [::Google::Cloud::ManagedKafka::SchemaRegistry::V1::ListSchemaRegistriesRequest]
|
121
|
+
# A request object representing the call parameters. Required.
|
122
|
+
# @param options [::Gapic::CallOptions]
|
123
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
124
|
+
#
|
125
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
126
|
+
# @yieldparam result [::Google::Cloud::ManagedKafka::SchemaRegistry::V1::ListSchemaRegistriesResponse]
|
127
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
128
|
+
#
|
129
|
+
# @return [::Google::Cloud::ManagedKafka::SchemaRegistry::V1::ListSchemaRegistriesResponse]
|
130
|
+
# A result object deserialized from the server's reply
|
131
|
+
def list_schema_registries request_pb, options = nil
|
132
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
133
|
+
|
134
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_schema_registries_request request_pb
|
135
|
+
query_string_params = if query_string_params.any?
|
136
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
137
|
+
else
|
138
|
+
{}
|
139
|
+
end
|
140
|
+
|
141
|
+
response = @client_stub.make_http_request(
|
142
|
+
verb,
|
143
|
+
uri: uri,
|
144
|
+
body: body || "",
|
145
|
+
params: query_string_params,
|
146
|
+
method_name: "list_schema_registries",
|
147
|
+
options: options
|
148
|
+
)
|
149
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
150
|
+
result = ::Google::Cloud::ManagedKafka::SchemaRegistry::V1::ListSchemaRegistriesResponse.decode_json response.body, ignore_unknown_fields: true
|
151
|
+
catch :response do
|
152
|
+
yield result, operation if block_given?
|
153
|
+
result
|
154
|
+
end
|
155
|
+
end
|
156
|
+
|
157
|
+
##
|
158
|
+
# Baseline implementation for the create_schema_registry REST call
|
159
|
+
#
|
160
|
+
# @param request_pb [::Google::Cloud::ManagedKafka::SchemaRegistry::V1::CreateSchemaRegistryRequest]
|
161
|
+
# A request object representing the call parameters. Required.
|
162
|
+
# @param options [::Gapic::CallOptions]
|
163
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
164
|
+
#
|
165
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
166
|
+
# @yieldparam result [::Google::Cloud::ManagedKafka::SchemaRegistry::V1::SchemaRegistry]
|
167
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
168
|
+
#
|
169
|
+
# @return [::Google::Cloud::ManagedKafka::SchemaRegistry::V1::SchemaRegistry]
|
170
|
+
# A result object deserialized from the server's reply
|
171
|
+
def create_schema_registry request_pb, options = nil
|
172
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
173
|
+
|
174
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_create_schema_registry_request request_pb
|
175
|
+
query_string_params = if query_string_params.any?
|
176
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
177
|
+
else
|
178
|
+
{}
|
179
|
+
end
|
180
|
+
|
181
|
+
response = @client_stub.make_http_request(
|
182
|
+
verb,
|
183
|
+
uri: uri,
|
184
|
+
body: body || "",
|
185
|
+
params: query_string_params,
|
186
|
+
method_name: "create_schema_registry",
|
187
|
+
options: options
|
188
|
+
)
|
189
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
190
|
+
result = ::Google::Cloud::ManagedKafka::SchemaRegistry::V1::SchemaRegistry.decode_json response.body, ignore_unknown_fields: true
|
191
|
+
catch :response do
|
192
|
+
yield result, operation if block_given?
|
193
|
+
result
|
194
|
+
end
|
195
|
+
end
|
196
|
+
|
197
|
+
##
|
198
|
+
# Baseline implementation for the delete_schema_registry REST call
|
199
|
+
#
|
200
|
+
# @param request_pb [::Google::Cloud::ManagedKafka::SchemaRegistry::V1::DeleteSchemaRegistryRequest]
|
201
|
+
# A request object representing the call parameters. Required.
|
202
|
+
# @param options [::Gapic::CallOptions]
|
203
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
204
|
+
#
|
205
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
206
|
+
# @yieldparam result [::Google::Protobuf::Empty]
|
207
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
208
|
+
#
|
209
|
+
# @return [::Google::Protobuf::Empty]
|
210
|
+
# A result object deserialized from the server's reply
|
211
|
+
def delete_schema_registry request_pb, options = nil
|
212
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
213
|
+
|
214
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_schema_registry_request request_pb
|
215
|
+
query_string_params = if query_string_params.any?
|
216
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
217
|
+
else
|
218
|
+
{}
|
219
|
+
end
|
220
|
+
|
221
|
+
response = @client_stub.make_http_request(
|
222
|
+
verb,
|
223
|
+
uri: uri,
|
224
|
+
body: body || "",
|
225
|
+
params: query_string_params,
|
226
|
+
method_name: "delete_schema_registry",
|
227
|
+
options: options
|
228
|
+
)
|
229
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
230
|
+
result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
|
231
|
+
catch :response do
|
232
|
+
yield result, operation if block_given?
|
233
|
+
result
|
234
|
+
end
|
235
|
+
end
|
236
|
+
|
237
|
+
##
|
238
|
+
# Baseline implementation for the get_context REST call
|
239
|
+
#
|
240
|
+
# @param request_pb [::Google::Cloud::ManagedKafka::SchemaRegistry::V1::GetContextRequest]
|
241
|
+
# A request object representing the call parameters. Required.
|
242
|
+
# @param options [::Gapic::CallOptions]
|
243
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
244
|
+
#
|
245
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
246
|
+
# @yieldparam result [::Google::Cloud::ManagedKafka::SchemaRegistry::V1::Context]
|
247
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
248
|
+
#
|
249
|
+
# @return [::Google::Cloud::ManagedKafka::SchemaRegistry::V1::Context]
|
250
|
+
# A result object deserialized from the server's reply
|
251
|
+
def get_context request_pb, options = nil
|
252
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
253
|
+
|
254
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_context_request request_pb
|
255
|
+
query_string_params = if query_string_params.any?
|
256
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
257
|
+
else
|
258
|
+
{}
|
259
|
+
end
|
260
|
+
|
261
|
+
response = @client_stub.make_http_request(
|
262
|
+
verb,
|
263
|
+
uri: uri,
|
264
|
+
body: body || "",
|
265
|
+
params: query_string_params,
|
266
|
+
method_name: "get_context",
|
267
|
+
options: options
|
268
|
+
)
|
269
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
270
|
+
result = ::Google::Cloud::ManagedKafka::SchemaRegistry::V1::Context.decode_json response.body, ignore_unknown_fields: true
|
271
|
+
catch :response do
|
272
|
+
yield result, operation if block_given?
|
273
|
+
result
|
274
|
+
end
|
275
|
+
end
|
276
|
+
|
277
|
+
##
|
278
|
+
# Baseline implementation for the list_contexts REST call
|
279
|
+
#
|
280
|
+
# @param request_pb [::Google::Cloud::ManagedKafka::SchemaRegistry::V1::ListContextsRequest]
|
281
|
+
# A request object representing the call parameters. Required.
|
282
|
+
# @param options [::Gapic::CallOptions]
|
283
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
284
|
+
#
|
285
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
286
|
+
# @yieldparam result [::Google::Api::HttpBody]
|
287
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
288
|
+
#
|
289
|
+
# @return [::Google::Api::HttpBody]
|
290
|
+
# A result object deserialized from the server's reply
|
291
|
+
def list_contexts request_pb, options = nil
|
292
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
293
|
+
|
294
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_contexts_request request_pb
|
295
|
+
query_string_params = if query_string_params.any?
|
296
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
297
|
+
else
|
298
|
+
{}
|
299
|
+
end
|
300
|
+
|
301
|
+
response = @client_stub.make_http_request(
|
302
|
+
verb,
|
303
|
+
uri: uri,
|
304
|
+
body: body || "",
|
305
|
+
params: query_string_params,
|
306
|
+
method_name: "list_contexts",
|
307
|
+
options: options
|
308
|
+
)
|
309
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
310
|
+
result = ::Google::Api::HttpBody.decode_json response.body, ignore_unknown_fields: true
|
311
|
+
catch :response do
|
312
|
+
yield result, operation if block_given?
|
313
|
+
result
|
314
|
+
end
|
315
|
+
end
|
316
|
+
|
317
|
+
##
|
318
|
+
# Baseline implementation for the get_schema REST call
|
319
|
+
#
|
320
|
+
# @param request_pb [::Google::Cloud::ManagedKafka::SchemaRegistry::V1::GetSchemaRequest]
|
321
|
+
# A request object representing the call parameters. Required.
|
322
|
+
# @param options [::Gapic::CallOptions]
|
323
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
324
|
+
#
|
325
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
326
|
+
# @yieldparam result [::Google::Cloud::ManagedKafka::SchemaRegistry::V1::Schema]
|
327
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
328
|
+
#
|
329
|
+
# @return [::Google::Cloud::ManagedKafka::SchemaRegistry::V1::Schema]
|
330
|
+
# A result object deserialized from the server's reply
|
331
|
+
def get_schema request_pb, options = nil
|
332
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
333
|
+
|
334
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_schema_request request_pb
|
335
|
+
query_string_params = if query_string_params.any?
|
336
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
337
|
+
else
|
338
|
+
{}
|
339
|
+
end
|
340
|
+
|
341
|
+
response = @client_stub.make_http_request(
|
342
|
+
verb,
|
343
|
+
uri: uri,
|
344
|
+
body: body || "",
|
345
|
+
params: query_string_params,
|
346
|
+
method_name: "get_schema",
|
347
|
+
options: options
|
348
|
+
)
|
349
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
350
|
+
result = ::Google::Cloud::ManagedKafka::SchemaRegistry::V1::Schema.decode_json response.body, ignore_unknown_fields: true
|
351
|
+
catch :response do
|
352
|
+
yield result, operation if block_given?
|
353
|
+
result
|
354
|
+
end
|
355
|
+
end
|
356
|
+
|
357
|
+
##
|
358
|
+
# Baseline implementation for the get_raw_schema REST call
|
359
|
+
#
|
360
|
+
# @param request_pb [::Google::Cloud::ManagedKafka::SchemaRegistry::V1::GetSchemaRequest]
|
361
|
+
# A request object representing the call parameters. Required.
|
362
|
+
# @param options [::Gapic::CallOptions]
|
363
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
364
|
+
#
|
365
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
366
|
+
# @yieldparam result [::Google::Api::HttpBody]
|
367
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
368
|
+
#
|
369
|
+
# @return [::Google::Api::HttpBody]
|
370
|
+
# A result object deserialized from the server's reply
|
371
|
+
def get_raw_schema request_pb, options = nil
|
372
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
373
|
+
|
374
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_raw_schema_request request_pb
|
375
|
+
query_string_params = if query_string_params.any?
|
376
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
377
|
+
else
|
378
|
+
{}
|
379
|
+
end
|
380
|
+
|
381
|
+
response = @client_stub.make_http_request(
|
382
|
+
verb,
|
383
|
+
uri: uri,
|
384
|
+
body: body || "",
|
385
|
+
params: query_string_params,
|
386
|
+
method_name: "get_raw_schema",
|
387
|
+
options: options
|
388
|
+
)
|
389
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
390
|
+
result = ::Google::Api::HttpBody.decode_json response.body, ignore_unknown_fields: true
|
391
|
+
catch :response do
|
392
|
+
yield result, operation if block_given?
|
393
|
+
result
|
394
|
+
end
|
395
|
+
end
|
396
|
+
|
397
|
+
##
|
398
|
+
# Baseline implementation for the list_schema_versions REST call
|
399
|
+
#
|
400
|
+
# @param request_pb [::Google::Cloud::ManagedKafka::SchemaRegistry::V1::ListSchemaVersionsRequest]
|
401
|
+
# A request object representing the call parameters. Required.
|
402
|
+
# @param options [::Gapic::CallOptions]
|
403
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
404
|
+
#
|
405
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
406
|
+
# @yieldparam result [::Google::Api::HttpBody]
|
407
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
408
|
+
#
|
409
|
+
# @return [::Google::Api::HttpBody]
|
410
|
+
# A result object deserialized from the server's reply
|
411
|
+
def list_schema_versions request_pb, options = nil
|
412
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
413
|
+
|
414
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_schema_versions_request request_pb
|
415
|
+
query_string_params = if query_string_params.any?
|
416
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
417
|
+
else
|
418
|
+
{}
|
419
|
+
end
|
420
|
+
|
421
|
+
response = @client_stub.make_http_request(
|
422
|
+
verb,
|
423
|
+
uri: uri,
|
424
|
+
body: body || "",
|
425
|
+
params: query_string_params,
|
426
|
+
method_name: "list_schema_versions",
|
427
|
+
options: options
|
428
|
+
)
|
429
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
430
|
+
result = ::Google::Api::HttpBody.decode_json response.body, ignore_unknown_fields: true
|
431
|
+
catch :response do
|
432
|
+
yield result, operation if block_given?
|
433
|
+
result
|
434
|
+
end
|
435
|
+
end
|
436
|
+
|
437
|
+
##
|
438
|
+
# Baseline implementation for the list_schema_types REST call
|
439
|
+
#
|
440
|
+
# @param request_pb [::Google::Cloud::ManagedKafka::SchemaRegistry::V1::ListSchemaTypesRequest]
|
441
|
+
# A request object representing the call parameters. Required.
|
442
|
+
# @param options [::Gapic::CallOptions]
|
443
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
444
|
+
#
|
445
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
446
|
+
# @yieldparam result [::Google::Api::HttpBody]
|
447
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
448
|
+
#
|
449
|
+
# @return [::Google::Api::HttpBody]
|
450
|
+
# A result object deserialized from the server's reply
|
451
|
+
def list_schema_types request_pb, options = nil
|
452
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
453
|
+
|
454
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_schema_types_request request_pb
|
455
|
+
query_string_params = if query_string_params.any?
|
456
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
457
|
+
else
|
458
|
+
{}
|
459
|
+
end
|
460
|
+
|
461
|
+
response = @client_stub.make_http_request(
|
462
|
+
verb,
|
463
|
+
uri: uri,
|
464
|
+
body: body || "",
|
465
|
+
params: query_string_params,
|
466
|
+
method_name: "list_schema_types",
|
467
|
+
options: options
|
468
|
+
)
|
469
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
470
|
+
result = ::Google::Api::HttpBody.decode_json response.body, ignore_unknown_fields: true
|
471
|
+
catch :response do
|
472
|
+
yield result, operation if block_given?
|
473
|
+
result
|
474
|
+
end
|
475
|
+
end
|
476
|
+
|
477
|
+
##
|
478
|
+
# Baseline implementation for the list_subjects REST call
|
479
|
+
#
|
480
|
+
# @param request_pb [::Google::Cloud::ManagedKafka::SchemaRegistry::V1::ListSubjectsRequest]
|
481
|
+
# A request object representing the call parameters. Required.
|
482
|
+
# @param options [::Gapic::CallOptions]
|
483
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
484
|
+
#
|
485
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
486
|
+
# @yieldparam result [::Google::Api::HttpBody]
|
487
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
488
|
+
#
|
489
|
+
# @return [::Google::Api::HttpBody]
|
490
|
+
# A result object deserialized from the server's reply
|
491
|
+
def list_subjects request_pb, options = nil
|
492
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
493
|
+
|
494
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_subjects_request request_pb
|
495
|
+
query_string_params = if query_string_params.any?
|
496
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
497
|
+
else
|
498
|
+
{}
|
499
|
+
end
|
500
|
+
|
501
|
+
response = @client_stub.make_http_request(
|
502
|
+
verb,
|
503
|
+
uri: uri,
|
504
|
+
body: body || "",
|
505
|
+
params: query_string_params,
|
506
|
+
method_name: "list_subjects",
|
507
|
+
options: options
|
508
|
+
)
|
509
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
510
|
+
result = ::Google::Api::HttpBody.decode_json response.body, ignore_unknown_fields: true
|
511
|
+
catch :response do
|
512
|
+
yield result, operation if block_given?
|
513
|
+
result
|
514
|
+
end
|
515
|
+
end
|
516
|
+
|
517
|
+
##
|
518
|
+
# Baseline implementation for the list_subjects_by_schema_id REST call
|
519
|
+
#
|
520
|
+
# @param request_pb [::Google::Cloud::ManagedKafka::SchemaRegistry::V1::ListSubjectsBySchemaIdRequest]
|
521
|
+
# A request object representing the call parameters. Required.
|
522
|
+
# @param options [::Gapic::CallOptions]
|
523
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
524
|
+
#
|
525
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
526
|
+
# @yieldparam result [::Google::Api::HttpBody]
|
527
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
528
|
+
#
|
529
|
+
# @return [::Google::Api::HttpBody]
|
530
|
+
# A result object deserialized from the server's reply
|
531
|
+
def list_subjects_by_schema_id request_pb, options = nil
|
532
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
533
|
+
|
534
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_subjects_by_schema_id_request request_pb
|
535
|
+
query_string_params = if query_string_params.any?
|
536
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
537
|
+
else
|
538
|
+
{}
|
539
|
+
end
|
540
|
+
|
541
|
+
response = @client_stub.make_http_request(
|
542
|
+
verb,
|
543
|
+
uri: uri,
|
544
|
+
body: body || "",
|
545
|
+
params: query_string_params,
|
546
|
+
method_name: "list_subjects_by_schema_id",
|
547
|
+
options: options
|
548
|
+
)
|
549
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
550
|
+
result = ::Google::Api::HttpBody.decode_json response.body, ignore_unknown_fields: true
|
551
|
+
catch :response do
|
552
|
+
yield result, operation if block_given?
|
553
|
+
result
|
554
|
+
end
|
555
|
+
end
|
556
|
+
|
557
|
+
##
|
558
|
+
# Baseline implementation for the delete_subject REST call
|
559
|
+
#
|
560
|
+
# @param request_pb [::Google::Cloud::ManagedKafka::SchemaRegistry::V1::DeleteSubjectRequest]
|
561
|
+
# A request object representing the call parameters. Required.
|
562
|
+
# @param options [::Gapic::CallOptions]
|
563
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
564
|
+
#
|
565
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
566
|
+
# @yieldparam result [::Google::Api::HttpBody]
|
567
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
568
|
+
#
|
569
|
+
# @return [::Google::Api::HttpBody]
|
570
|
+
# A result object deserialized from the server's reply
|
571
|
+
def delete_subject request_pb, options = nil
|
572
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
573
|
+
|
574
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_subject_request request_pb
|
575
|
+
query_string_params = if query_string_params.any?
|
576
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
577
|
+
else
|
578
|
+
{}
|
579
|
+
end
|
580
|
+
|
581
|
+
response = @client_stub.make_http_request(
|
582
|
+
verb,
|
583
|
+
uri: uri,
|
584
|
+
body: body || "",
|
585
|
+
params: query_string_params,
|
586
|
+
method_name: "delete_subject",
|
587
|
+
options: options
|
588
|
+
)
|
589
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
590
|
+
result = ::Google::Api::HttpBody.decode_json response.body, ignore_unknown_fields: true
|
591
|
+
catch :response do
|
592
|
+
yield result, operation if block_given?
|
593
|
+
result
|
594
|
+
end
|
595
|
+
end
|
596
|
+
|
597
|
+
##
|
598
|
+
# Baseline implementation for the lookup_version REST call
|
599
|
+
#
|
600
|
+
# @param request_pb [::Google::Cloud::ManagedKafka::SchemaRegistry::V1::LookupVersionRequest]
|
601
|
+
# A request object representing the call parameters. Required.
|
602
|
+
# @param options [::Gapic::CallOptions]
|
603
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
604
|
+
#
|
605
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
606
|
+
# @yieldparam result [::Google::Cloud::ManagedKafka::SchemaRegistry::V1::SchemaVersion]
|
607
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
608
|
+
#
|
609
|
+
# @return [::Google::Cloud::ManagedKafka::SchemaRegistry::V1::SchemaVersion]
|
610
|
+
# A result object deserialized from the server's reply
|
611
|
+
def lookup_version request_pb, options = nil
|
612
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
613
|
+
|
614
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_lookup_version_request request_pb
|
615
|
+
query_string_params = if query_string_params.any?
|
616
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
617
|
+
else
|
618
|
+
{}
|
619
|
+
end
|
620
|
+
|
621
|
+
response = @client_stub.make_http_request(
|
622
|
+
verb,
|
623
|
+
uri: uri,
|
624
|
+
body: body || "",
|
625
|
+
params: query_string_params,
|
626
|
+
method_name: "lookup_version",
|
627
|
+
options: options
|
628
|
+
)
|
629
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
630
|
+
result = ::Google::Cloud::ManagedKafka::SchemaRegistry::V1::SchemaVersion.decode_json response.body, ignore_unknown_fields: true
|
631
|
+
catch :response do
|
632
|
+
yield result, operation if block_given?
|
633
|
+
result
|
634
|
+
end
|
635
|
+
end
|
636
|
+
|
637
|
+
##
|
638
|
+
# Baseline implementation for the get_version REST call
|
639
|
+
#
|
640
|
+
# @param request_pb [::Google::Cloud::ManagedKafka::SchemaRegistry::V1::GetVersionRequest]
|
641
|
+
# A request object representing the call parameters. Required.
|
642
|
+
# @param options [::Gapic::CallOptions]
|
643
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
644
|
+
#
|
645
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
646
|
+
# @yieldparam result [::Google::Cloud::ManagedKafka::SchemaRegistry::V1::SchemaVersion]
|
647
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
648
|
+
#
|
649
|
+
# @return [::Google::Cloud::ManagedKafka::SchemaRegistry::V1::SchemaVersion]
|
650
|
+
# A result object deserialized from the server's reply
|
651
|
+
def get_version request_pb, options = nil
|
652
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
653
|
+
|
654
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_version_request request_pb
|
655
|
+
query_string_params = if query_string_params.any?
|
656
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
657
|
+
else
|
658
|
+
{}
|
659
|
+
end
|
660
|
+
|
661
|
+
response = @client_stub.make_http_request(
|
662
|
+
verb,
|
663
|
+
uri: uri,
|
664
|
+
body: body || "",
|
665
|
+
params: query_string_params,
|
666
|
+
method_name: "get_version",
|
667
|
+
options: options
|
668
|
+
)
|
669
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
670
|
+
result = ::Google::Cloud::ManagedKafka::SchemaRegistry::V1::SchemaVersion.decode_json response.body, ignore_unknown_fields: true
|
671
|
+
catch :response do
|
672
|
+
yield result, operation if block_given?
|
673
|
+
result
|
674
|
+
end
|
675
|
+
end
|
676
|
+
|
677
|
+
##
|
678
|
+
# Baseline implementation for the get_raw_schema_version REST call
|
679
|
+
#
|
680
|
+
# @param request_pb [::Google::Cloud::ManagedKafka::SchemaRegistry::V1::GetVersionRequest]
|
681
|
+
# A request object representing the call parameters. Required.
|
682
|
+
# @param options [::Gapic::CallOptions]
|
683
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
684
|
+
#
|
685
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
686
|
+
# @yieldparam result [::Google::Api::HttpBody]
|
687
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
688
|
+
#
|
689
|
+
# @return [::Google::Api::HttpBody]
|
690
|
+
# A result object deserialized from the server's reply
|
691
|
+
def get_raw_schema_version request_pb, options = nil
|
692
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
693
|
+
|
694
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_raw_schema_version_request request_pb
|
695
|
+
query_string_params = if query_string_params.any?
|
696
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
697
|
+
else
|
698
|
+
{}
|
699
|
+
end
|
700
|
+
|
701
|
+
response = @client_stub.make_http_request(
|
702
|
+
verb,
|
703
|
+
uri: uri,
|
704
|
+
body: body || "",
|
705
|
+
params: query_string_params,
|
706
|
+
method_name: "get_raw_schema_version",
|
707
|
+
options: options
|
708
|
+
)
|
709
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
710
|
+
result = ::Google::Api::HttpBody.decode_json response.body, ignore_unknown_fields: true
|
711
|
+
catch :response do
|
712
|
+
yield result, operation if block_given?
|
713
|
+
result
|
714
|
+
end
|
715
|
+
end
|
716
|
+
|
717
|
+
##
|
718
|
+
# Baseline implementation for the list_versions REST call
|
719
|
+
#
|
720
|
+
# @param request_pb [::Google::Cloud::ManagedKafka::SchemaRegistry::V1::ListVersionsRequest]
|
721
|
+
# A request object representing the call parameters. Required.
|
722
|
+
# @param options [::Gapic::CallOptions]
|
723
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
724
|
+
#
|
725
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
726
|
+
# @yieldparam result [::Google::Api::HttpBody]
|
727
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
728
|
+
#
|
729
|
+
# @return [::Google::Api::HttpBody]
|
730
|
+
# A result object deserialized from the server's reply
|
731
|
+
def list_versions request_pb, options = nil
|
732
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
733
|
+
|
734
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_versions_request request_pb
|
735
|
+
query_string_params = if query_string_params.any?
|
736
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
737
|
+
else
|
738
|
+
{}
|
739
|
+
end
|
740
|
+
|
741
|
+
response = @client_stub.make_http_request(
|
742
|
+
verb,
|
743
|
+
uri: uri,
|
744
|
+
body: body || "",
|
745
|
+
params: query_string_params,
|
746
|
+
method_name: "list_versions",
|
747
|
+
options: options
|
748
|
+
)
|
749
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
750
|
+
result = ::Google::Api::HttpBody.decode_json response.body, ignore_unknown_fields: true
|
751
|
+
catch :response do
|
752
|
+
yield result, operation if block_given?
|
753
|
+
result
|
754
|
+
end
|
755
|
+
end
|
756
|
+
|
757
|
+
##
|
758
|
+
# Baseline implementation for the create_version REST call
|
759
|
+
#
|
760
|
+
# @param request_pb [::Google::Cloud::ManagedKafka::SchemaRegistry::V1::CreateVersionRequest]
|
761
|
+
# A request object representing the call parameters. Required.
|
762
|
+
# @param options [::Gapic::CallOptions]
|
763
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
764
|
+
#
|
765
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
766
|
+
# @yieldparam result [::Google::Cloud::ManagedKafka::SchemaRegistry::V1::CreateVersionResponse]
|
767
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
768
|
+
#
|
769
|
+
# @return [::Google::Cloud::ManagedKafka::SchemaRegistry::V1::CreateVersionResponse]
|
770
|
+
# A result object deserialized from the server's reply
|
771
|
+
def create_version request_pb, options = nil
|
772
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
773
|
+
|
774
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_create_version_request request_pb
|
775
|
+
query_string_params = if query_string_params.any?
|
776
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
777
|
+
else
|
778
|
+
{}
|
779
|
+
end
|
780
|
+
|
781
|
+
response = @client_stub.make_http_request(
|
782
|
+
verb,
|
783
|
+
uri: uri,
|
784
|
+
body: body || "",
|
785
|
+
params: query_string_params,
|
786
|
+
method_name: "create_version",
|
787
|
+
options: options
|
788
|
+
)
|
789
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
790
|
+
result = ::Google::Cloud::ManagedKafka::SchemaRegistry::V1::CreateVersionResponse.decode_json response.body, ignore_unknown_fields: true
|
791
|
+
catch :response do
|
792
|
+
yield result, operation if block_given?
|
793
|
+
result
|
794
|
+
end
|
795
|
+
end
|
796
|
+
|
797
|
+
##
|
798
|
+
# Baseline implementation for the delete_version REST call
|
799
|
+
#
|
800
|
+
# @param request_pb [::Google::Cloud::ManagedKafka::SchemaRegistry::V1::DeleteVersionRequest]
|
801
|
+
# A request object representing the call parameters. Required.
|
802
|
+
# @param options [::Gapic::CallOptions]
|
803
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
804
|
+
#
|
805
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
806
|
+
# @yieldparam result [::Google::Api::HttpBody]
|
807
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
808
|
+
#
|
809
|
+
# @return [::Google::Api::HttpBody]
|
810
|
+
# A result object deserialized from the server's reply
|
811
|
+
def delete_version request_pb, options = nil
|
812
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
813
|
+
|
814
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_version_request request_pb
|
815
|
+
query_string_params = if query_string_params.any?
|
816
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
817
|
+
else
|
818
|
+
{}
|
819
|
+
end
|
820
|
+
|
821
|
+
response = @client_stub.make_http_request(
|
822
|
+
verb,
|
823
|
+
uri: uri,
|
824
|
+
body: body || "",
|
825
|
+
params: query_string_params,
|
826
|
+
method_name: "delete_version",
|
827
|
+
options: options
|
828
|
+
)
|
829
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
830
|
+
result = ::Google::Api::HttpBody.decode_json response.body, ignore_unknown_fields: true
|
831
|
+
catch :response do
|
832
|
+
yield result, operation if block_given?
|
833
|
+
result
|
834
|
+
end
|
835
|
+
end
|
836
|
+
|
837
|
+
##
|
838
|
+
# Baseline implementation for the list_referenced_schemas REST call
|
839
|
+
#
|
840
|
+
# @param request_pb [::Google::Cloud::ManagedKafka::SchemaRegistry::V1::ListReferencedSchemasRequest]
|
841
|
+
# A request object representing the call parameters. Required.
|
842
|
+
# @param options [::Gapic::CallOptions]
|
843
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
844
|
+
#
|
845
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
846
|
+
# @yieldparam result [::Google::Api::HttpBody]
|
847
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
848
|
+
#
|
849
|
+
# @return [::Google::Api::HttpBody]
|
850
|
+
# A result object deserialized from the server's reply
|
851
|
+
def list_referenced_schemas request_pb, options = nil
|
852
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
853
|
+
|
854
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_referenced_schemas_request request_pb
|
855
|
+
query_string_params = if query_string_params.any?
|
856
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
857
|
+
else
|
858
|
+
{}
|
859
|
+
end
|
860
|
+
|
861
|
+
response = @client_stub.make_http_request(
|
862
|
+
verb,
|
863
|
+
uri: uri,
|
864
|
+
body: body || "",
|
865
|
+
params: query_string_params,
|
866
|
+
method_name: "list_referenced_schemas",
|
867
|
+
options: options
|
868
|
+
)
|
869
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
870
|
+
result = ::Google::Api::HttpBody.decode_json response.body, ignore_unknown_fields: true
|
871
|
+
catch :response do
|
872
|
+
yield result, operation if block_given?
|
873
|
+
result
|
874
|
+
end
|
875
|
+
end
|
876
|
+
|
877
|
+
##
|
878
|
+
# Baseline implementation for the check_compatibility REST call
|
879
|
+
#
|
880
|
+
# @param request_pb [::Google::Cloud::ManagedKafka::SchemaRegistry::V1::CheckCompatibilityRequest]
|
881
|
+
# A request object representing the call parameters. Required.
|
882
|
+
# @param options [::Gapic::CallOptions]
|
883
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
884
|
+
#
|
885
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
886
|
+
# @yieldparam result [::Google::Cloud::ManagedKafka::SchemaRegistry::V1::CheckCompatibilityResponse]
|
887
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
888
|
+
#
|
889
|
+
# @return [::Google::Cloud::ManagedKafka::SchemaRegistry::V1::CheckCompatibilityResponse]
|
890
|
+
# A result object deserialized from the server's reply
|
891
|
+
def check_compatibility request_pb, options = nil
|
892
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
893
|
+
|
894
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_check_compatibility_request request_pb
|
895
|
+
query_string_params = if query_string_params.any?
|
896
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
897
|
+
else
|
898
|
+
{}
|
899
|
+
end
|
900
|
+
|
901
|
+
response = @client_stub.make_http_request(
|
902
|
+
verb,
|
903
|
+
uri: uri,
|
904
|
+
body: body || "",
|
905
|
+
params: query_string_params,
|
906
|
+
method_name: "check_compatibility",
|
907
|
+
options: options
|
908
|
+
)
|
909
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
910
|
+
result = ::Google::Cloud::ManagedKafka::SchemaRegistry::V1::CheckCompatibilityResponse.decode_json response.body, ignore_unknown_fields: true
|
911
|
+
catch :response do
|
912
|
+
yield result, operation if block_given?
|
913
|
+
result
|
914
|
+
end
|
915
|
+
end
|
916
|
+
|
917
|
+
##
|
918
|
+
# Baseline implementation for the get_schema_config REST call
|
919
|
+
#
|
920
|
+
# @param request_pb [::Google::Cloud::ManagedKafka::SchemaRegistry::V1::GetSchemaConfigRequest]
|
921
|
+
# A request object representing the call parameters. Required.
|
922
|
+
# @param options [::Gapic::CallOptions]
|
923
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
924
|
+
#
|
925
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
926
|
+
# @yieldparam result [::Google::Cloud::ManagedKafka::SchemaRegistry::V1::SchemaConfig]
|
927
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
928
|
+
#
|
929
|
+
# @return [::Google::Cloud::ManagedKafka::SchemaRegistry::V1::SchemaConfig]
|
930
|
+
# A result object deserialized from the server's reply
|
931
|
+
def get_schema_config request_pb, options = nil
|
932
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
933
|
+
|
934
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_schema_config_request request_pb
|
935
|
+
query_string_params = if query_string_params.any?
|
936
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
937
|
+
else
|
938
|
+
{}
|
939
|
+
end
|
940
|
+
|
941
|
+
response = @client_stub.make_http_request(
|
942
|
+
verb,
|
943
|
+
uri: uri,
|
944
|
+
body: body || "",
|
945
|
+
params: query_string_params,
|
946
|
+
method_name: "get_schema_config",
|
947
|
+
options: options
|
948
|
+
)
|
949
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
950
|
+
result = ::Google::Cloud::ManagedKafka::SchemaRegistry::V1::SchemaConfig.decode_json response.body, ignore_unknown_fields: true
|
951
|
+
catch :response do
|
952
|
+
yield result, operation if block_given?
|
953
|
+
result
|
954
|
+
end
|
955
|
+
end
|
956
|
+
|
957
|
+
##
|
958
|
+
# Baseline implementation for the update_schema_config REST call
|
959
|
+
#
|
960
|
+
# @param request_pb [::Google::Cloud::ManagedKafka::SchemaRegistry::V1::UpdateSchemaConfigRequest]
|
961
|
+
# A request object representing the call parameters. Required.
|
962
|
+
# @param options [::Gapic::CallOptions]
|
963
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
964
|
+
#
|
965
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
966
|
+
# @yieldparam result [::Google::Cloud::ManagedKafka::SchemaRegistry::V1::SchemaConfig]
|
967
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
968
|
+
#
|
969
|
+
# @return [::Google::Cloud::ManagedKafka::SchemaRegistry::V1::SchemaConfig]
|
970
|
+
# A result object deserialized from the server's reply
|
971
|
+
def update_schema_config request_pb, options = nil
|
972
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
973
|
+
|
974
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_update_schema_config_request request_pb
|
975
|
+
query_string_params = if query_string_params.any?
|
976
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
977
|
+
else
|
978
|
+
{}
|
979
|
+
end
|
980
|
+
|
981
|
+
response = @client_stub.make_http_request(
|
982
|
+
verb,
|
983
|
+
uri: uri,
|
984
|
+
body: body || "",
|
985
|
+
params: query_string_params,
|
986
|
+
method_name: "update_schema_config",
|
987
|
+
options: options
|
988
|
+
)
|
989
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
990
|
+
result = ::Google::Cloud::ManagedKafka::SchemaRegistry::V1::SchemaConfig.decode_json response.body, ignore_unknown_fields: true
|
991
|
+
catch :response do
|
992
|
+
yield result, operation if block_given?
|
993
|
+
result
|
994
|
+
end
|
995
|
+
end
|
996
|
+
|
997
|
+
##
|
998
|
+
# Baseline implementation for the delete_schema_config REST call
|
999
|
+
#
|
1000
|
+
# @param request_pb [::Google::Cloud::ManagedKafka::SchemaRegistry::V1::DeleteSchemaConfigRequest]
|
1001
|
+
# A request object representing the call parameters. Required.
|
1002
|
+
# @param options [::Gapic::CallOptions]
|
1003
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1004
|
+
#
|
1005
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1006
|
+
# @yieldparam result [::Google::Cloud::ManagedKafka::SchemaRegistry::V1::SchemaConfig]
|
1007
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1008
|
+
#
|
1009
|
+
# @return [::Google::Cloud::ManagedKafka::SchemaRegistry::V1::SchemaConfig]
|
1010
|
+
# A result object deserialized from the server's reply
|
1011
|
+
def delete_schema_config request_pb, options = nil
|
1012
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1013
|
+
|
1014
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_schema_config_request request_pb
|
1015
|
+
query_string_params = if query_string_params.any?
|
1016
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1017
|
+
else
|
1018
|
+
{}
|
1019
|
+
end
|
1020
|
+
|
1021
|
+
response = @client_stub.make_http_request(
|
1022
|
+
verb,
|
1023
|
+
uri: uri,
|
1024
|
+
body: body || "",
|
1025
|
+
params: query_string_params,
|
1026
|
+
method_name: "delete_schema_config",
|
1027
|
+
options: options
|
1028
|
+
)
|
1029
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1030
|
+
result = ::Google::Cloud::ManagedKafka::SchemaRegistry::V1::SchemaConfig.decode_json response.body, ignore_unknown_fields: true
|
1031
|
+
catch :response do
|
1032
|
+
yield result, operation if block_given?
|
1033
|
+
result
|
1034
|
+
end
|
1035
|
+
end
|
1036
|
+
|
1037
|
+
##
|
1038
|
+
# Baseline implementation for the get_schema_mode REST call
|
1039
|
+
#
|
1040
|
+
# @param request_pb [::Google::Cloud::ManagedKafka::SchemaRegistry::V1::GetSchemaModeRequest]
|
1041
|
+
# A request object representing the call parameters. Required.
|
1042
|
+
# @param options [::Gapic::CallOptions]
|
1043
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1044
|
+
#
|
1045
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1046
|
+
# @yieldparam result [::Google::Cloud::ManagedKafka::SchemaRegistry::V1::SchemaMode]
|
1047
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1048
|
+
#
|
1049
|
+
# @return [::Google::Cloud::ManagedKafka::SchemaRegistry::V1::SchemaMode]
|
1050
|
+
# A result object deserialized from the server's reply
|
1051
|
+
def get_schema_mode request_pb, options = nil
|
1052
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1053
|
+
|
1054
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_schema_mode_request request_pb
|
1055
|
+
query_string_params = if query_string_params.any?
|
1056
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1057
|
+
else
|
1058
|
+
{}
|
1059
|
+
end
|
1060
|
+
|
1061
|
+
response = @client_stub.make_http_request(
|
1062
|
+
verb,
|
1063
|
+
uri: uri,
|
1064
|
+
body: body || "",
|
1065
|
+
params: query_string_params,
|
1066
|
+
method_name: "get_schema_mode",
|
1067
|
+
options: options
|
1068
|
+
)
|
1069
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1070
|
+
result = ::Google::Cloud::ManagedKafka::SchemaRegistry::V1::SchemaMode.decode_json response.body, ignore_unknown_fields: true
|
1071
|
+
catch :response do
|
1072
|
+
yield result, operation if block_given?
|
1073
|
+
result
|
1074
|
+
end
|
1075
|
+
end
|
1076
|
+
|
1077
|
+
##
|
1078
|
+
# Baseline implementation for the update_schema_mode REST call
|
1079
|
+
#
|
1080
|
+
# @param request_pb [::Google::Cloud::ManagedKafka::SchemaRegistry::V1::UpdateSchemaModeRequest]
|
1081
|
+
# A request object representing the call parameters. Required.
|
1082
|
+
# @param options [::Gapic::CallOptions]
|
1083
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1084
|
+
#
|
1085
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1086
|
+
# @yieldparam result [::Google::Cloud::ManagedKafka::SchemaRegistry::V1::SchemaMode]
|
1087
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1088
|
+
#
|
1089
|
+
# @return [::Google::Cloud::ManagedKafka::SchemaRegistry::V1::SchemaMode]
|
1090
|
+
# A result object deserialized from the server's reply
|
1091
|
+
def update_schema_mode request_pb, options = nil
|
1092
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1093
|
+
|
1094
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_update_schema_mode_request request_pb
|
1095
|
+
query_string_params = if query_string_params.any?
|
1096
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1097
|
+
else
|
1098
|
+
{}
|
1099
|
+
end
|
1100
|
+
|
1101
|
+
response = @client_stub.make_http_request(
|
1102
|
+
verb,
|
1103
|
+
uri: uri,
|
1104
|
+
body: body || "",
|
1105
|
+
params: query_string_params,
|
1106
|
+
method_name: "update_schema_mode",
|
1107
|
+
options: options
|
1108
|
+
)
|
1109
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1110
|
+
result = ::Google::Cloud::ManagedKafka::SchemaRegistry::V1::SchemaMode.decode_json response.body, ignore_unknown_fields: true
|
1111
|
+
catch :response do
|
1112
|
+
yield result, operation if block_given?
|
1113
|
+
result
|
1114
|
+
end
|
1115
|
+
end
|
1116
|
+
|
1117
|
+
##
|
1118
|
+
# Baseline implementation for the delete_schema_mode REST call
|
1119
|
+
#
|
1120
|
+
# @param request_pb [::Google::Cloud::ManagedKafka::SchemaRegistry::V1::DeleteSchemaModeRequest]
|
1121
|
+
# A request object representing the call parameters. Required.
|
1122
|
+
# @param options [::Gapic::CallOptions]
|
1123
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1124
|
+
#
|
1125
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1126
|
+
# @yieldparam result [::Google::Cloud::ManagedKafka::SchemaRegistry::V1::SchemaMode]
|
1127
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1128
|
+
#
|
1129
|
+
# @return [::Google::Cloud::ManagedKafka::SchemaRegistry::V1::SchemaMode]
|
1130
|
+
# A result object deserialized from the server's reply
|
1131
|
+
def delete_schema_mode request_pb, options = nil
|
1132
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1133
|
+
|
1134
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_schema_mode_request request_pb
|
1135
|
+
query_string_params = if query_string_params.any?
|
1136
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1137
|
+
else
|
1138
|
+
{}
|
1139
|
+
end
|
1140
|
+
|
1141
|
+
response = @client_stub.make_http_request(
|
1142
|
+
verb,
|
1143
|
+
uri: uri,
|
1144
|
+
body: body || "",
|
1145
|
+
params: query_string_params,
|
1146
|
+
method_name: "delete_schema_mode",
|
1147
|
+
options: options
|
1148
|
+
)
|
1149
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1150
|
+
result = ::Google::Cloud::ManagedKafka::SchemaRegistry::V1::SchemaMode.decode_json response.body, ignore_unknown_fields: true
|
1151
|
+
catch :response do
|
1152
|
+
yield result, operation if block_given?
|
1153
|
+
result
|
1154
|
+
end
|
1155
|
+
end
|
1156
|
+
|
1157
|
+
##
|
1158
|
+
# @private
|
1159
|
+
#
|
1160
|
+
# GRPC transcoding helper method for the get_schema_registry REST call
|
1161
|
+
#
|
1162
|
+
# @param request_pb [::Google::Cloud::ManagedKafka::SchemaRegistry::V1::GetSchemaRegistryRequest]
|
1163
|
+
# A request object representing the call parameters. Required.
|
1164
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1165
|
+
# Uri, Body, Query string parameters
|
1166
|
+
def self.transcode_get_schema_registry_request request_pb
|
1167
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1168
|
+
.with_bindings(
|
1169
|
+
uri_method: :get,
|
1170
|
+
uri_template: "/v1/{name}",
|
1171
|
+
matches: [
|
1172
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/?$}, false]
|
1173
|
+
]
|
1174
|
+
)
|
1175
|
+
transcoder.transcode request_pb
|
1176
|
+
end
|
1177
|
+
|
1178
|
+
##
|
1179
|
+
# @private
|
1180
|
+
#
|
1181
|
+
# GRPC transcoding helper method for the list_schema_registries REST call
|
1182
|
+
#
|
1183
|
+
# @param request_pb [::Google::Cloud::ManagedKafka::SchemaRegistry::V1::ListSchemaRegistriesRequest]
|
1184
|
+
# A request object representing the call parameters. Required.
|
1185
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1186
|
+
# Uri, Body, Query string parameters
|
1187
|
+
def self.transcode_list_schema_registries_request request_pb
|
1188
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1189
|
+
.with_bindings(
|
1190
|
+
uri_method: :get,
|
1191
|
+
uri_template: "/v1/{parent}/schemaRegistries",
|
1192
|
+
matches: [
|
1193
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
1194
|
+
]
|
1195
|
+
)
|
1196
|
+
transcoder.transcode request_pb
|
1197
|
+
end
|
1198
|
+
|
1199
|
+
##
|
1200
|
+
# @private
|
1201
|
+
#
|
1202
|
+
# GRPC transcoding helper method for the create_schema_registry REST call
|
1203
|
+
#
|
1204
|
+
# @param request_pb [::Google::Cloud::ManagedKafka::SchemaRegistry::V1::CreateSchemaRegistryRequest]
|
1205
|
+
# A request object representing the call parameters. Required.
|
1206
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1207
|
+
# Uri, Body, Query string parameters
|
1208
|
+
def self.transcode_create_schema_registry_request request_pb
|
1209
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1210
|
+
.with_bindings(
|
1211
|
+
uri_method: :post,
|
1212
|
+
uri_template: "/v1/{parent}/schemaRegistries",
|
1213
|
+
body: "*",
|
1214
|
+
matches: [
|
1215
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
1216
|
+
]
|
1217
|
+
)
|
1218
|
+
transcoder.transcode request_pb
|
1219
|
+
end
|
1220
|
+
|
1221
|
+
##
|
1222
|
+
# @private
|
1223
|
+
#
|
1224
|
+
# GRPC transcoding helper method for the delete_schema_registry REST call
|
1225
|
+
#
|
1226
|
+
# @param request_pb [::Google::Cloud::ManagedKafka::SchemaRegistry::V1::DeleteSchemaRegistryRequest]
|
1227
|
+
# A request object representing the call parameters. Required.
|
1228
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1229
|
+
# Uri, Body, Query string parameters
|
1230
|
+
def self.transcode_delete_schema_registry_request request_pb
|
1231
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1232
|
+
.with_bindings(
|
1233
|
+
uri_method: :delete,
|
1234
|
+
uri_template: "/v1/{name}",
|
1235
|
+
matches: [
|
1236
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/?$}, false]
|
1237
|
+
]
|
1238
|
+
)
|
1239
|
+
transcoder.transcode request_pb
|
1240
|
+
end
|
1241
|
+
|
1242
|
+
##
|
1243
|
+
# @private
|
1244
|
+
#
|
1245
|
+
# GRPC transcoding helper method for the get_context REST call
|
1246
|
+
#
|
1247
|
+
# @param request_pb [::Google::Cloud::ManagedKafka::SchemaRegistry::V1::GetContextRequest]
|
1248
|
+
# A request object representing the call parameters. Required.
|
1249
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1250
|
+
# Uri, Body, Query string parameters
|
1251
|
+
def self.transcode_get_context_request request_pb
|
1252
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1253
|
+
.with_bindings(
|
1254
|
+
uri_method: :get,
|
1255
|
+
uri_template: "/v1/{name}",
|
1256
|
+
matches: [
|
1257
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/contexts/[^/]+/?$}, false]
|
1258
|
+
]
|
1259
|
+
)
|
1260
|
+
transcoder.transcode request_pb
|
1261
|
+
end
|
1262
|
+
|
1263
|
+
##
|
1264
|
+
# @private
|
1265
|
+
#
|
1266
|
+
# GRPC transcoding helper method for the list_contexts REST call
|
1267
|
+
#
|
1268
|
+
# @param request_pb [::Google::Cloud::ManagedKafka::SchemaRegistry::V1::ListContextsRequest]
|
1269
|
+
# A request object representing the call parameters. Required.
|
1270
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1271
|
+
# Uri, Body, Query string parameters
|
1272
|
+
def self.transcode_list_contexts_request request_pb
|
1273
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1274
|
+
.with_bindings(
|
1275
|
+
uri_method: :get,
|
1276
|
+
uri_template: "/v1/{parent}/contexts",
|
1277
|
+
matches: [
|
1278
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/?$}, false]
|
1279
|
+
]
|
1280
|
+
)
|
1281
|
+
transcoder.transcode request_pb
|
1282
|
+
end
|
1283
|
+
|
1284
|
+
##
|
1285
|
+
# @private
|
1286
|
+
#
|
1287
|
+
# GRPC transcoding helper method for the get_schema REST call
|
1288
|
+
#
|
1289
|
+
# @param request_pb [::Google::Cloud::ManagedKafka::SchemaRegistry::V1::GetSchemaRequest]
|
1290
|
+
# A request object representing the call parameters. Required.
|
1291
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1292
|
+
# Uri, Body, Query string parameters
|
1293
|
+
def self.transcode_get_schema_request request_pb
|
1294
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1295
|
+
.with_bindings(
|
1296
|
+
uri_method: :get,
|
1297
|
+
uri_template: "/v1/{name}",
|
1298
|
+
matches: [
|
1299
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/schemas(?:/.*)?$}, true]
|
1300
|
+
]
|
1301
|
+
)
|
1302
|
+
.with_bindings(
|
1303
|
+
uri_method: :get,
|
1304
|
+
uri_template: "/v1/{name}",
|
1305
|
+
matches: [
|
1306
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/contexts/[^/]+/schemas(?:/.*)?$}, true]
|
1307
|
+
]
|
1308
|
+
)
|
1309
|
+
transcoder.transcode request_pb
|
1310
|
+
end
|
1311
|
+
|
1312
|
+
##
|
1313
|
+
# @private
|
1314
|
+
#
|
1315
|
+
# GRPC transcoding helper method for the get_raw_schema REST call
|
1316
|
+
#
|
1317
|
+
# @param request_pb [::Google::Cloud::ManagedKafka::SchemaRegistry::V1::GetSchemaRequest]
|
1318
|
+
# A request object representing the call parameters. Required.
|
1319
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1320
|
+
# Uri, Body, Query string parameters
|
1321
|
+
def self.transcode_get_raw_schema_request request_pb
|
1322
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1323
|
+
.with_bindings(
|
1324
|
+
uri_method: :get,
|
1325
|
+
uri_template: "/v1/{name}/schema",
|
1326
|
+
matches: [
|
1327
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/schemas(?:/.*)?$}, true]
|
1328
|
+
]
|
1329
|
+
)
|
1330
|
+
.with_bindings(
|
1331
|
+
uri_method: :get,
|
1332
|
+
uri_template: "/v1/{name}/schema",
|
1333
|
+
matches: [
|
1334
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/contexts/[^/]+/schemas(?:/.*)?$}, true]
|
1335
|
+
]
|
1336
|
+
)
|
1337
|
+
transcoder.transcode request_pb
|
1338
|
+
end
|
1339
|
+
|
1340
|
+
##
|
1341
|
+
# @private
|
1342
|
+
#
|
1343
|
+
# GRPC transcoding helper method for the list_schema_versions REST call
|
1344
|
+
#
|
1345
|
+
# @param request_pb [::Google::Cloud::ManagedKafka::SchemaRegistry::V1::ListSchemaVersionsRequest]
|
1346
|
+
# A request object representing the call parameters. Required.
|
1347
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1348
|
+
# Uri, Body, Query string parameters
|
1349
|
+
def self.transcode_list_schema_versions_request request_pb
|
1350
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1351
|
+
.with_bindings(
|
1352
|
+
uri_method: :get,
|
1353
|
+
uri_template: "/v1/{parent}/versions",
|
1354
|
+
matches: [
|
1355
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/schemas(?:/.*)?$}, true]
|
1356
|
+
]
|
1357
|
+
)
|
1358
|
+
.with_bindings(
|
1359
|
+
uri_method: :get,
|
1360
|
+
uri_template: "/v1/{parent}/versions",
|
1361
|
+
matches: [
|
1362
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/contexts/[^/]+/schemas(?:/.*)?$}, true]
|
1363
|
+
]
|
1364
|
+
)
|
1365
|
+
transcoder.transcode request_pb
|
1366
|
+
end
|
1367
|
+
|
1368
|
+
##
|
1369
|
+
# @private
|
1370
|
+
#
|
1371
|
+
# GRPC transcoding helper method for the list_schema_types REST call
|
1372
|
+
#
|
1373
|
+
# @param request_pb [::Google::Cloud::ManagedKafka::SchemaRegistry::V1::ListSchemaTypesRequest]
|
1374
|
+
# A request object representing the call parameters. Required.
|
1375
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1376
|
+
# Uri, Body, Query string parameters
|
1377
|
+
def self.transcode_list_schema_types_request request_pb
|
1378
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1379
|
+
.with_bindings(
|
1380
|
+
uri_method: :get,
|
1381
|
+
uri_template: "/v1/{parent}/schemas/types",
|
1382
|
+
matches: [
|
1383
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/?$}, false]
|
1384
|
+
]
|
1385
|
+
)
|
1386
|
+
.with_bindings(
|
1387
|
+
uri_method: :get,
|
1388
|
+
uri_template: "/v1/{parent}/schemas/types",
|
1389
|
+
matches: [
|
1390
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/contexts/[^/]+/?$}, false]
|
1391
|
+
]
|
1392
|
+
)
|
1393
|
+
transcoder.transcode request_pb
|
1394
|
+
end
|
1395
|
+
|
1396
|
+
##
|
1397
|
+
# @private
|
1398
|
+
#
|
1399
|
+
# GRPC transcoding helper method for the list_subjects REST call
|
1400
|
+
#
|
1401
|
+
# @param request_pb [::Google::Cloud::ManagedKafka::SchemaRegistry::V1::ListSubjectsRequest]
|
1402
|
+
# A request object representing the call parameters. Required.
|
1403
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1404
|
+
# Uri, Body, Query string parameters
|
1405
|
+
def self.transcode_list_subjects_request request_pb
|
1406
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1407
|
+
.with_bindings(
|
1408
|
+
uri_method: :get,
|
1409
|
+
uri_template: "/v1/{parent}/subjects",
|
1410
|
+
matches: [
|
1411
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/?$}, false]
|
1412
|
+
]
|
1413
|
+
)
|
1414
|
+
.with_bindings(
|
1415
|
+
uri_method: :get,
|
1416
|
+
uri_template: "/v1/{parent}/subjects",
|
1417
|
+
matches: [
|
1418
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/contexts/[^/]+/?$}, false]
|
1419
|
+
]
|
1420
|
+
)
|
1421
|
+
transcoder.transcode request_pb
|
1422
|
+
end
|
1423
|
+
|
1424
|
+
##
|
1425
|
+
# @private
|
1426
|
+
#
|
1427
|
+
# GRPC transcoding helper method for the list_subjects_by_schema_id REST call
|
1428
|
+
#
|
1429
|
+
# @param request_pb [::Google::Cloud::ManagedKafka::SchemaRegistry::V1::ListSubjectsBySchemaIdRequest]
|
1430
|
+
# A request object representing the call parameters. Required.
|
1431
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1432
|
+
# Uri, Body, Query string parameters
|
1433
|
+
def self.transcode_list_subjects_by_schema_id_request request_pb
|
1434
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1435
|
+
.with_bindings(
|
1436
|
+
uri_method: :get,
|
1437
|
+
uri_template: "/v1/{parent}/subjects",
|
1438
|
+
matches: [
|
1439
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/schemas(?:/.*)?$}, true]
|
1440
|
+
]
|
1441
|
+
)
|
1442
|
+
.with_bindings(
|
1443
|
+
uri_method: :get,
|
1444
|
+
uri_template: "/v1/{parent}/subjects",
|
1445
|
+
matches: [
|
1446
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/contexts/[^/]+/schemas(?:/.*)?$}, true]
|
1447
|
+
]
|
1448
|
+
)
|
1449
|
+
transcoder.transcode request_pb
|
1450
|
+
end
|
1451
|
+
|
1452
|
+
##
|
1453
|
+
# @private
|
1454
|
+
#
|
1455
|
+
# GRPC transcoding helper method for the delete_subject REST call
|
1456
|
+
#
|
1457
|
+
# @param request_pb [::Google::Cloud::ManagedKafka::SchemaRegistry::V1::DeleteSubjectRequest]
|
1458
|
+
# A request object representing the call parameters. Required.
|
1459
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1460
|
+
# Uri, Body, Query string parameters
|
1461
|
+
def self.transcode_delete_subject_request request_pb
|
1462
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1463
|
+
.with_bindings(
|
1464
|
+
uri_method: :delete,
|
1465
|
+
uri_template: "/v1/{name}",
|
1466
|
+
matches: [
|
1467
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/subjects/[^/]+/?$}, false]
|
1468
|
+
]
|
1469
|
+
)
|
1470
|
+
.with_bindings(
|
1471
|
+
uri_method: :delete,
|
1472
|
+
uri_template: "/v1/{name}",
|
1473
|
+
matches: [
|
1474
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/contexts/[^/]+/subjects/[^/]+/?$}, false]
|
1475
|
+
]
|
1476
|
+
)
|
1477
|
+
transcoder.transcode request_pb
|
1478
|
+
end
|
1479
|
+
|
1480
|
+
##
|
1481
|
+
# @private
|
1482
|
+
#
|
1483
|
+
# GRPC transcoding helper method for the lookup_version REST call
|
1484
|
+
#
|
1485
|
+
# @param request_pb [::Google::Cloud::ManagedKafka::SchemaRegistry::V1::LookupVersionRequest]
|
1486
|
+
# A request object representing the call parameters. Required.
|
1487
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1488
|
+
# Uri, Body, Query string parameters
|
1489
|
+
def self.transcode_lookup_version_request request_pb
|
1490
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1491
|
+
.with_bindings(
|
1492
|
+
uri_method: :post,
|
1493
|
+
uri_template: "/v1/{parent}",
|
1494
|
+
body: "*",
|
1495
|
+
matches: [
|
1496
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/subjects/[^/]+/?$}, false]
|
1497
|
+
]
|
1498
|
+
)
|
1499
|
+
.with_bindings(
|
1500
|
+
uri_method: :post,
|
1501
|
+
uri_template: "/v1/{parent}",
|
1502
|
+
body: "*",
|
1503
|
+
matches: [
|
1504
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/contexts/[^/]+/subjects/[^/]+/?$}, false]
|
1505
|
+
]
|
1506
|
+
)
|
1507
|
+
transcoder.transcode request_pb
|
1508
|
+
end
|
1509
|
+
|
1510
|
+
##
|
1511
|
+
# @private
|
1512
|
+
#
|
1513
|
+
# GRPC transcoding helper method for the get_version REST call
|
1514
|
+
#
|
1515
|
+
# @param request_pb [::Google::Cloud::ManagedKafka::SchemaRegistry::V1::GetVersionRequest]
|
1516
|
+
# A request object representing the call parameters. Required.
|
1517
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1518
|
+
# Uri, Body, Query string parameters
|
1519
|
+
def self.transcode_get_version_request request_pb
|
1520
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1521
|
+
.with_bindings(
|
1522
|
+
uri_method: :get,
|
1523
|
+
uri_template: "/v1/{name}",
|
1524
|
+
matches: [
|
1525
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/subjects/[^/]+/versions/[^/]+/?$}, false]
|
1526
|
+
]
|
1527
|
+
)
|
1528
|
+
.with_bindings(
|
1529
|
+
uri_method: :get,
|
1530
|
+
uri_template: "/v1/{name}",
|
1531
|
+
matches: [
|
1532
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/contexts/[^/]+/subjects/[^/]+/versions/[^/]+/?$}, false]
|
1533
|
+
]
|
1534
|
+
)
|
1535
|
+
transcoder.transcode request_pb
|
1536
|
+
end
|
1537
|
+
|
1538
|
+
##
|
1539
|
+
# @private
|
1540
|
+
#
|
1541
|
+
# GRPC transcoding helper method for the get_raw_schema_version REST call
|
1542
|
+
#
|
1543
|
+
# @param request_pb [::Google::Cloud::ManagedKafka::SchemaRegistry::V1::GetVersionRequest]
|
1544
|
+
# A request object representing the call parameters. Required.
|
1545
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1546
|
+
# Uri, Body, Query string parameters
|
1547
|
+
def self.transcode_get_raw_schema_version_request request_pb
|
1548
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1549
|
+
.with_bindings(
|
1550
|
+
uri_method: :get,
|
1551
|
+
uri_template: "/v1/{name}/schema",
|
1552
|
+
matches: [
|
1553
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/subjects/[^/]+/versions/[^/]+/?$}, false]
|
1554
|
+
]
|
1555
|
+
)
|
1556
|
+
.with_bindings(
|
1557
|
+
uri_method: :get,
|
1558
|
+
uri_template: "/v1/{name}/schema",
|
1559
|
+
matches: [
|
1560
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/contexts/[^/]+/subjects/[^/]+/versions/[^/]+/?$}, false]
|
1561
|
+
]
|
1562
|
+
)
|
1563
|
+
transcoder.transcode request_pb
|
1564
|
+
end
|
1565
|
+
|
1566
|
+
##
|
1567
|
+
# @private
|
1568
|
+
#
|
1569
|
+
# GRPC transcoding helper method for the list_versions REST call
|
1570
|
+
#
|
1571
|
+
# @param request_pb [::Google::Cloud::ManagedKafka::SchemaRegistry::V1::ListVersionsRequest]
|
1572
|
+
# A request object representing the call parameters. Required.
|
1573
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1574
|
+
# Uri, Body, Query string parameters
|
1575
|
+
def self.transcode_list_versions_request request_pb
|
1576
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1577
|
+
.with_bindings(
|
1578
|
+
uri_method: :get,
|
1579
|
+
uri_template: "/v1/{parent}/versions",
|
1580
|
+
matches: [
|
1581
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/subjects/[^/]+/?$}, false]
|
1582
|
+
]
|
1583
|
+
)
|
1584
|
+
.with_bindings(
|
1585
|
+
uri_method: :get,
|
1586
|
+
uri_template: "/v1/{parent}/versions",
|
1587
|
+
matches: [
|
1588
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/contexts/[^/]+/subjects/[^/]+/?$}, false]
|
1589
|
+
]
|
1590
|
+
)
|
1591
|
+
transcoder.transcode request_pb
|
1592
|
+
end
|
1593
|
+
|
1594
|
+
##
|
1595
|
+
# @private
|
1596
|
+
#
|
1597
|
+
# GRPC transcoding helper method for the create_version REST call
|
1598
|
+
#
|
1599
|
+
# @param request_pb [::Google::Cloud::ManagedKafka::SchemaRegistry::V1::CreateVersionRequest]
|
1600
|
+
# A request object representing the call parameters. Required.
|
1601
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1602
|
+
# Uri, Body, Query string parameters
|
1603
|
+
def self.transcode_create_version_request request_pb
|
1604
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1605
|
+
.with_bindings(
|
1606
|
+
uri_method: :post,
|
1607
|
+
uri_template: "/v1/{parent}/versions",
|
1608
|
+
body: "*",
|
1609
|
+
matches: [
|
1610
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/subjects/[^/]+/?$}, false]
|
1611
|
+
]
|
1612
|
+
)
|
1613
|
+
.with_bindings(
|
1614
|
+
uri_method: :post,
|
1615
|
+
uri_template: "/v1/{parent}/versions",
|
1616
|
+
body: "*",
|
1617
|
+
matches: [
|
1618
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/contexts/[^/]+/subjects/[^/]+/?$}, false]
|
1619
|
+
]
|
1620
|
+
)
|
1621
|
+
transcoder.transcode request_pb
|
1622
|
+
end
|
1623
|
+
|
1624
|
+
##
|
1625
|
+
# @private
|
1626
|
+
#
|
1627
|
+
# GRPC transcoding helper method for the delete_version REST call
|
1628
|
+
#
|
1629
|
+
# @param request_pb [::Google::Cloud::ManagedKafka::SchemaRegistry::V1::DeleteVersionRequest]
|
1630
|
+
# A request object representing the call parameters. Required.
|
1631
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1632
|
+
# Uri, Body, Query string parameters
|
1633
|
+
def self.transcode_delete_version_request request_pb
|
1634
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1635
|
+
.with_bindings(
|
1636
|
+
uri_method: :delete,
|
1637
|
+
uri_template: "/v1/{name}",
|
1638
|
+
matches: [
|
1639
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/subjects/[^/]+/versions/[^/]+/?$}, false]
|
1640
|
+
]
|
1641
|
+
)
|
1642
|
+
.with_bindings(
|
1643
|
+
uri_method: :delete,
|
1644
|
+
uri_template: "/v1/{name}",
|
1645
|
+
matches: [
|
1646
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/contexts/[^/]+/subjects/[^/]+/versions/[^/]+/?$}, false]
|
1647
|
+
]
|
1648
|
+
)
|
1649
|
+
transcoder.transcode request_pb
|
1650
|
+
end
|
1651
|
+
|
1652
|
+
##
|
1653
|
+
# @private
|
1654
|
+
#
|
1655
|
+
# GRPC transcoding helper method for the list_referenced_schemas REST call
|
1656
|
+
#
|
1657
|
+
# @param request_pb [::Google::Cloud::ManagedKafka::SchemaRegistry::V1::ListReferencedSchemasRequest]
|
1658
|
+
# A request object representing the call parameters. Required.
|
1659
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1660
|
+
# Uri, Body, Query string parameters
|
1661
|
+
def self.transcode_list_referenced_schemas_request request_pb
|
1662
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1663
|
+
.with_bindings(
|
1664
|
+
uri_method: :get,
|
1665
|
+
uri_template: "/v1/{parent}/referencedby",
|
1666
|
+
matches: [
|
1667
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/subjects/[^/]+/versions/[^/]+/?$}, false]
|
1668
|
+
]
|
1669
|
+
)
|
1670
|
+
.with_bindings(
|
1671
|
+
uri_method: :get,
|
1672
|
+
uri_template: "/v1/{parent}/referencedby",
|
1673
|
+
matches: [
|
1674
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/contexts/[^/]+/subjects/[^/]+/versions/[^/]+/?$}, false]
|
1675
|
+
]
|
1676
|
+
)
|
1677
|
+
transcoder.transcode request_pb
|
1678
|
+
end
|
1679
|
+
|
1680
|
+
##
|
1681
|
+
# @private
|
1682
|
+
#
|
1683
|
+
# GRPC transcoding helper method for the check_compatibility REST call
|
1684
|
+
#
|
1685
|
+
# @param request_pb [::Google::Cloud::ManagedKafka::SchemaRegistry::V1::CheckCompatibilityRequest]
|
1686
|
+
# A request object representing the call parameters. Required.
|
1687
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1688
|
+
# Uri, Body, Query string parameters
|
1689
|
+
def self.transcode_check_compatibility_request request_pb
|
1690
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1691
|
+
.with_bindings(
|
1692
|
+
uri_method: :post,
|
1693
|
+
uri_template: "/v1/{name}",
|
1694
|
+
body: "*",
|
1695
|
+
matches: [
|
1696
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/compatibility(?:/.*)?$}, true]
|
1697
|
+
]
|
1698
|
+
)
|
1699
|
+
.with_bindings(
|
1700
|
+
uri_method: :post,
|
1701
|
+
uri_template: "/v1/{name}",
|
1702
|
+
body: "*",
|
1703
|
+
matches: [
|
1704
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/contexts/[^/]+/compatibility(?:/.*)?$}, true]
|
1705
|
+
]
|
1706
|
+
)
|
1707
|
+
transcoder.transcode request_pb
|
1708
|
+
end
|
1709
|
+
|
1710
|
+
##
|
1711
|
+
# @private
|
1712
|
+
#
|
1713
|
+
# GRPC transcoding helper method for the get_schema_config REST call
|
1714
|
+
#
|
1715
|
+
# @param request_pb [::Google::Cloud::ManagedKafka::SchemaRegistry::V1::GetSchemaConfigRequest]
|
1716
|
+
# A request object representing the call parameters. Required.
|
1717
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1718
|
+
# Uri, Body, Query string parameters
|
1719
|
+
def self.transcode_get_schema_config_request request_pb
|
1720
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1721
|
+
.with_bindings(
|
1722
|
+
uri_method: :get,
|
1723
|
+
uri_template: "/v1/{name}",
|
1724
|
+
matches: [
|
1725
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/config(?:/.*)?$}, true]
|
1726
|
+
]
|
1727
|
+
)
|
1728
|
+
.with_bindings(
|
1729
|
+
uri_method: :get,
|
1730
|
+
uri_template: "/v1/{name}",
|
1731
|
+
matches: [
|
1732
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/contexts/[^/]+/config(?:/.*)?$}, true]
|
1733
|
+
]
|
1734
|
+
)
|
1735
|
+
transcoder.transcode request_pb
|
1736
|
+
end
|
1737
|
+
|
1738
|
+
##
|
1739
|
+
# @private
|
1740
|
+
#
|
1741
|
+
# GRPC transcoding helper method for the update_schema_config REST call
|
1742
|
+
#
|
1743
|
+
# @param request_pb [::Google::Cloud::ManagedKafka::SchemaRegistry::V1::UpdateSchemaConfigRequest]
|
1744
|
+
# A request object representing the call parameters. Required.
|
1745
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1746
|
+
# Uri, Body, Query string parameters
|
1747
|
+
def self.transcode_update_schema_config_request request_pb
|
1748
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1749
|
+
.with_bindings(
|
1750
|
+
uri_method: :put,
|
1751
|
+
uri_template: "/v1/{name}",
|
1752
|
+
body: "*",
|
1753
|
+
matches: [
|
1754
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/config(?:/.*)?$}, true]
|
1755
|
+
]
|
1756
|
+
)
|
1757
|
+
.with_bindings(
|
1758
|
+
uri_method: :put,
|
1759
|
+
uri_template: "/v1/{name}",
|
1760
|
+
body: "*",
|
1761
|
+
matches: [
|
1762
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/contexts/[^/]+/config(?:/.*)?$}, true]
|
1763
|
+
]
|
1764
|
+
)
|
1765
|
+
transcoder.transcode request_pb
|
1766
|
+
end
|
1767
|
+
|
1768
|
+
##
|
1769
|
+
# @private
|
1770
|
+
#
|
1771
|
+
# GRPC transcoding helper method for the delete_schema_config REST call
|
1772
|
+
#
|
1773
|
+
# @param request_pb [::Google::Cloud::ManagedKafka::SchemaRegistry::V1::DeleteSchemaConfigRequest]
|
1774
|
+
# A request object representing the call parameters. Required.
|
1775
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1776
|
+
# Uri, Body, Query string parameters
|
1777
|
+
def self.transcode_delete_schema_config_request request_pb
|
1778
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1779
|
+
.with_bindings(
|
1780
|
+
uri_method: :delete,
|
1781
|
+
uri_template: "/v1/{name}",
|
1782
|
+
matches: [
|
1783
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/config(?:/.*)?$}, true]
|
1784
|
+
]
|
1785
|
+
)
|
1786
|
+
.with_bindings(
|
1787
|
+
uri_method: :delete,
|
1788
|
+
uri_template: "/v1/{name}",
|
1789
|
+
matches: [
|
1790
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/contexts/[^/]+/config(?:/.*)?$}, true]
|
1791
|
+
]
|
1792
|
+
)
|
1793
|
+
transcoder.transcode request_pb
|
1794
|
+
end
|
1795
|
+
|
1796
|
+
##
|
1797
|
+
# @private
|
1798
|
+
#
|
1799
|
+
# GRPC transcoding helper method for the get_schema_mode REST call
|
1800
|
+
#
|
1801
|
+
# @param request_pb [::Google::Cloud::ManagedKafka::SchemaRegistry::V1::GetSchemaModeRequest]
|
1802
|
+
# A request object representing the call parameters. Required.
|
1803
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1804
|
+
# Uri, Body, Query string parameters
|
1805
|
+
def self.transcode_get_schema_mode_request request_pb
|
1806
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1807
|
+
.with_bindings(
|
1808
|
+
uri_method: :get,
|
1809
|
+
uri_template: "/v1/{name}",
|
1810
|
+
matches: [
|
1811
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/mode(?:/.*)?$}, true]
|
1812
|
+
]
|
1813
|
+
)
|
1814
|
+
.with_bindings(
|
1815
|
+
uri_method: :get,
|
1816
|
+
uri_template: "/v1/{name}",
|
1817
|
+
matches: [
|
1818
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/contexts/[^/]+/mode(?:/.*)?$}, true]
|
1819
|
+
]
|
1820
|
+
)
|
1821
|
+
transcoder.transcode request_pb
|
1822
|
+
end
|
1823
|
+
|
1824
|
+
##
|
1825
|
+
# @private
|
1826
|
+
#
|
1827
|
+
# GRPC transcoding helper method for the update_schema_mode REST call
|
1828
|
+
#
|
1829
|
+
# @param request_pb [::Google::Cloud::ManagedKafka::SchemaRegistry::V1::UpdateSchemaModeRequest]
|
1830
|
+
# A request object representing the call parameters. Required.
|
1831
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1832
|
+
# Uri, Body, Query string parameters
|
1833
|
+
def self.transcode_update_schema_mode_request request_pb
|
1834
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1835
|
+
.with_bindings(
|
1836
|
+
uri_method: :put,
|
1837
|
+
uri_template: "/v1/{name}",
|
1838
|
+
body: "*",
|
1839
|
+
matches: [
|
1840
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/mode(?:/.*)?$}, true]
|
1841
|
+
]
|
1842
|
+
)
|
1843
|
+
.with_bindings(
|
1844
|
+
uri_method: :put,
|
1845
|
+
uri_template: "/v1/{name}",
|
1846
|
+
body: "*",
|
1847
|
+
matches: [
|
1848
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/contexts/[^/]+/mode(?:/.*)?$}, true]
|
1849
|
+
]
|
1850
|
+
)
|
1851
|
+
transcoder.transcode request_pb
|
1852
|
+
end
|
1853
|
+
|
1854
|
+
##
|
1855
|
+
# @private
|
1856
|
+
#
|
1857
|
+
# GRPC transcoding helper method for the delete_schema_mode REST call
|
1858
|
+
#
|
1859
|
+
# @param request_pb [::Google::Cloud::ManagedKafka::SchemaRegistry::V1::DeleteSchemaModeRequest]
|
1860
|
+
# A request object representing the call parameters. Required.
|
1861
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1862
|
+
# Uri, Body, Query string parameters
|
1863
|
+
def self.transcode_delete_schema_mode_request request_pb
|
1864
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1865
|
+
.with_bindings(
|
1866
|
+
uri_method: :delete,
|
1867
|
+
uri_template: "/v1/{name}",
|
1868
|
+
matches: [
|
1869
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/mode(?:/.*)?$}, true]
|
1870
|
+
]
|
1871
|
+
)
|
1872
|
+
.with_bindings(
|
1873
|
+
uri_method: :delete,
|
1874
|
+
uri_template: "/v1/{name}",
|
1875
|
+
matches: [
|
1876
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/contexts/[^/]+/mode(?:/.*)?$}, true]
|
1877
|
+
]
|
1878
|
+
)
|
1879
|
+
transcoder.transcode request_pb
|
1880
|
+
end
|
1881
|
+
end
|
1882
|
+
end
|
1883
|
+
end
|
1884
|
+
end
|
1885
|
+
end
|
1886
|
+
end
|
1887
|
+
end
|
1888
|
+
end
|