google-cloud-agent_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 +154 -8
- data/lib/google/cloud/agent_registry/v1/agent_registry/client.rb +2651 -0
- data/lib/google/cloud/agent_registry/v1/agent_registry/credentials.rb +50 -0
- data/lib/google/cloud/agent_registry/v1/agent_registry/operations.rb +843 -0
- data/lib/google/cloud/agent_registry/v1/agent_registry/paths.rb +145 -0
- data/lib/google/cloud/agent_registry/v1/agent_registry/rest/client.rb +2483 -0
- data/lib/google/cloud/agent_registry/v1/agent_registry/rest/operations.rb +927 -0
- data/lib/google/cloud/agent_registry/v1/agent_registry/rest/service_stub.rb +1246 -0
- data/lib/google/cloud/agent_registry/v1/agent_registry/rest.rb +54 -0
- data/lib/google/cloud/agent_registry/v1/agent_registry.rb +56 -0
- data/lib/google/cloud/agent_registry/v1/bindings_override.rb +75 -0
- data/lib/google/cloud/agent_registry/v1/rest.rb +38 -0
- data/lib/google/cloud/agent_registry/v1/version.rb +7 -2
- data/lib/google/cloud/agent_registry/v1.rb +45 -0
- data/lib/google/cloud/agentregistry/v1/agent_pb.rb +33 -0
- data/lib/google/cloud/agentregistry/v1/agentregistry_service_pb.rb +63 -0
- data/lib/google/cloud/agentregistry/v1/agentregistry_service_services_pb.rb +81 -0
- data/lib/google/cloud/agentregistry/v1/binding_pb.rb +28 -0
- data/lib/google/cloud/agentregistry/v1/endpoint_pb.rb +27 -0
- data/lib/google/cloud/agentregistry/v1/mcp_server_pb.rb +29 -0
- data/lib/google/cloud/agentregistry/v1/properties_pb.rb +24 -0
- data/lib/google/cloud/agentregistry/v1/service_pb.rb +33 -0
- data/lib/google-cloud-agent_registry-v1.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/client.rb +593 -0
- data/proto_docs/google/api/field_behavior.rb +85 -0
- data/proto_docs/google/api/field_info.rb +88 -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/agentregistry/v1/agent.rb +168 -0
- data/proto_docs/google/cloud/agentregistry/v1/agentregistry_service.rb +691 -0
- data/proto_docs/google/cloud/agentregistry/v1/binding.rb +105 -0
- data/proto_docs/google/cloud/agentregistry/v1/endpoint.rb +72 -0
- data/proto_docs/google/cloud/agentregistry/v1/mcp_server.rb +123 -0
- data/proto_docs/google/cloud/agentregistry/v1/properties.rb +53 -0
- data/proto_docs/google/cloud/agentregistry/v1/service.rb +155 -0
- data/proto_docs/google/longrunning/operations.rb +191 -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
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/struct.rb +108 -0
- data/proto_docs/google/protobuf/timestamp.rb +127 -0
- data/proto_docs/google/rpc/status.rb +48 -0
- metadata +99 -9
|
@@ -0,0 +1,1246 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2026 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/agentregistry/v1/agentregistry_service_pb"
|
|
20
|
+
|
|
21
|
+
module Google
|
|
22
|
+
module Cloud
|
|
23
|
+
module AgentRegistry
|
|
24
|
+
module V1
|
|
25
|
+
module AgentRegistry
|
|
26
|
+
module Rest
|
|
27
|
+
##
|
|
28
|
+
# REST service stub for the AgentRegistry service.
|
|
29
|
+
# Service stub contains baseline method implementations
|
|
30
|
+
# including transcoding, making the REST call, and deserialing the response.
|
|
31
|
+
#
|
|
32
|
+
class ServiceStub
|
|
33
|
+
# @private
|
|
34
|
+
def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger:
|
|
35
|
+
# These require statements are intentionally placed here to initialize
|
|
36
|
+
# the REST modules only when it's required.
|
|
37
|
+
require "gapic/rest"
|
|
38
|
+
|
|
39
|
+
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint,
|
|
40
|
+
endpoint_template: endpoint_template,
|
|
41
|
+
universe_domain: universe_domain,
|
|
42
|
+
credentials: credentials,
|
|
43
|
+
numeric_enums: true,
|
|
44
|
+
service_name: self.class,
|
|
45
|
+
raise_faraday_errors: false,
|
|
46
|
+
logger: logger
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
##
|
|
50
|
+
# The effective universe domain
|
|
51
|
+
#
|
|
52
|
+
# @return [String]
|
|
53
|
+
#
|
|
54
|
+
def universe_domain
|
|
55
|
+
@client_stub.universe_domain
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
##
|
|
59
|
+
# The effective endpoint
|
|
60
|
+
#
|
|
61
|
+
# @return [String]
|
|
62
|
+
#
|
|
63
|
+
def endpoint
|
|
64
|
+
@client_stub.endpoint
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
##
|
|
68
|
+
# The logger used for request/response debug logging.
|
|
69
|
+
#
|
|
70
|
+
# @return [Logger]
|
|
71
|
+
#
|
|
72
|
+
def logger stub: false
|
|
73
|
+
stub ? @client_stub.stub_logger : @client_stub.logger
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
##
|
|
77
|
+
# Baseline implementation for the list_agents REST call
|
|
78
|
+
#
|
|
79
|
+
# @param request_pb [::Google::Cloud::AgentRegistry::V1::ListAgentsRequest]
|
|
80
|
+
# A request object representing the call parameters. Required.
|
|
81
|
+
# @param options [::Gapic::CallOptions]
|
|
82
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
83
|
+
#
|
|
84
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
85
|
+
# @yieldparam result [::Google::Cloud::AgentRegistry::V1::ListAgentsResponse]
|
|
86
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
87
|
+
#
|
|
88
|
+
# @return [::Google::Cloud::AgentRegistry::V1::ListAgentsResponse]
|
|
89
|
+
# A result object deserialized from the server's reply
|
|
90
|
+
def list_agents request_pb, options = nil
|
|
91
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
92
|
+
|
|
93
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_agents_request request_pb
|
|
94
|
+
query_string_params = if query_string_params.any?
|
|
95
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
96
|
+
else
|
|
97
|
+
{}
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
response = @client_stub.make_http_request(
|
|
101
|
+
verb,
|
|
102
|
+
uri: uri,
|
|
103
|
+
body: body || "",
|
|
104
|
+
params: query_string_params,
|
|
105
|
+
method_name: "list_agents",
|
|
106
|
+
options: options
|
|
107
|
+
)
|
|
108
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
109
|
+
result = ::Google::Cloud::AgentRegistry::V1::ListAgentsResponse.decode_json response.body, ignore_unknown_fields: true
|
|
110
|
+
catch :response do
|
|
111
|
+
yield result, operation if block_given?
|
|
112
|
+
result
|
|
113
|
+
end
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
##
|
|
117
|
+
# Baseline implementation for the search_agents REST call
|
|
118
|
+
#
|
|
119
|
+
# @param request_pb [::Google::Cloud::AgentRegistry::V1::SearchAgentsRequest]
|
|
120
|
+
# A request object representing the call parameters. Required.
|
|
121
|
+
# @param options [::Gapic::CallOptions]
|
|
122
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
123
|
+
#
|
|
124
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
125
|
+
# @yieldparam result [::Google::Cloud::AgentRegistry::V1::SearchAgentsResponse]
|
|
126
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
127
|
+
#
|
|
128
|
+
# @return [::Google::Cloud::AgentRegistry::V1::SearchAgentsResponse]
|
|
129
|
+
# A result object deserialized from the server's reply
|
|
130
|
+
def search_agents request_pb, options = nil
|
|
131
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
132
|
+
|
|
133
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_search_agents_request request_pb
|
|
134
|
+
query_string_params = if query_string_params.any?
|
|
135
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
136
|
+
else
|
|
137
|
+
{}
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
response = @client_stub.make_http_request(
|
|
141
|
+
verb,
|
|
142
|
+
uri: uri,
|
|
143
|
+
body: body || "",
|
|
144
|
+
params: query_string_params,
|
|
145
|
+
method_name: "search_agents",
|
|
146
|
+
options: options
|
|
147
|
+
)
|
|
148
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
149
|
+
result = ::Google::Cloud::AgentRegistry::V1::SearchAgentsResponse.decode_json response.body, ignore_unknown_fields: true
|
|
150
|
+
catch :response do
|
|
151
|
+
yield result, operation if block_given?
|
|
152
|
+
result
|
|
153
|
+
end
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
##
|
|
157
|
+
# Baseline implementation for the get_agent REST call
|
|
158
|
+
#
|
|
159
|
+
# @param request_pb [::Google::Cloud::AgentRegistry::V1::GetAgentRequest]
|
|
160
|
+
# A request object representing the call parameters. Required.
|
|
161
|
+
# @param options [::Gapic::CallOptions]
|
|
162
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
163
|
+
#
|
|
164
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
165
|
+
# @yieldparam result [::Google::Cloud::AgentRegistry::V1::Agent]
|
|
166
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
167
|
+
#
|
|
168
|
+
# @return [::Google::Cloud::AgentRegistry::V1::Agent]
|
|
169
|
+
# A result object deserialized from the server's reply
|
|
170
|
+
def get_agent request_pb, options = nil
|
|
171
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
172
|
+
|
|
173
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_agent_request request_pb
|
|
174
|
+
query_string_params = if query_string_params.any?
|
|
175
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
176
|
+
else
|
|
177
|
+
{}
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
response = @client_stub.make_http_request(
|
|
181
|
+
verb,
|
|
182
|
+
uri: uri,
|
|
183
|
+
body: body || "",
|
|
184
|
+
params: query_string_params,
|
|
185
|
+
method_name: "get_agent",
|
|
186
|
+
options: options
|
|
187
|
+
)
|
|
188
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
189
|
+
result = ::Google::Cloud::AgentRegistry::V1::Agent.decode_json response.body, ignore_unknown_fields: true
|
|
190
|
+
catch :response do
|
|
191
|
+
yield result, operation if block_given?
|
|
192
|
+
result
|
|
193
|
+
end
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
##
|
|
197
|
+
# Baseline implementation for the list_endpoints REST call
|
|
198
|
+
#
|
|
199
|
+
# @param request_pb [::Google::Cloud::AgentRegistry::V1::ListEndpointsRequest]
|
|
200
|
+
# A request object representing the call parameters. Required.
|
|
201
|
+
# @param options [::Gapic::CallOptions]
|
|
202
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
203
|
+
#
|
|
204
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
205
|
+
# @yieldparam result [::Google::Cloud::AgentRegistry::V1::ListEndpointsResponse]
|
|
206
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
207
|
+
#
|
|
208
|
+
# @return [::Google::Cloud::AgentRegistry::V1::ListEndpointsResponse]
|
|
209
|
+
# A result object deserialized from the server's reply
|
|
210
|
+
def list_endpoints request_pb, options = nil
|
|
211
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
212
|
+
|
|
213
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_endpoints_request request_pb
|
|
214
|
+
query_string_params = if query_string_params.any?
|
|
215
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
216
|
+
else
|
|
217
|
+
{}
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
response = @client_stub.make_http_request(
|
|
221
|
+
verb,
|
|
222
|
+
uri: uri,
|
|
223
|
+
body: body || "",
|
|
224
|
+
params: query_string_params,
|
|
225
|
+
method_name: "list_endpoints",
|
|
226
|
+
options: options
|
|
227
|
+
)
|
|
228
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
229
|
+
result = ::Google::Cloud::AgentRegistry::V1::ListEndpointsResponse.decode_json response.body, ignore_unknown_fields: true
|
|
230
|
+
catch :response do
|
|
231
|
+
yield result, operation if block_given?
|
|
232
|
+
result
|
|
233
|
+
end
|
|
234
|
+
end
|
|
235
|
+
|
|
236
|
+
##
|
|
237
|
+
# Baseline implementation for the get_endpoint REST call
|
|
238
|
+
#
|
|
239
|
+
# @param request_pb [::Google::Cloud::AgentRegistry::V1::GetEndpointRequest]
|
|
240
|
+
# A request object representing the call parameters. Required.
|
|
241
|
+
# @param options [::Gapic::CallOptions]
|
|
242
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
243
|
+
#
|
|
244
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
245
|
+
# @yieldparam result [::Google::Cloud::AgentRegistry::V1::Endpoint]
|
|
246
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
247
|
+
#
|
|
248
|
+
# @return [::Google::Cloud::AgentRegistry::V1::Endpoint]
|
|
249
|
+
# A result object deserialized from the server's reply
|
|
250
|
+
def get_endpoint request_pb, options = nil
|
|
251
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
252
|
+
|
|
253
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_endpoint_request request_pb
|
|
254
|
+
query_string_params = if query_string_params.any?
|
|
255
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
256
|
+
else
|
|
257
|
+
{}
|
|
258
|
+
end
|
|
259
|
+
|
|
260
|
+
response = @client_stub.make_http_request(
|
|
261
|
+
verb,
|
|
262
|
+
uri: uri,
|
|
263
|
+
body: body || "",
|
|
264
|
+
params: query_string_params,
|
|
265
|
+
method_name: "get_endpoint",
|
|
266
|
+
options: options
|
|
267
|
+
)
|
|
268
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
269
|
+
result = ::Google::Cloud::AgentRegistry::V1::Endpoint.decode_json response.body, ignore_unknown_fields: true
|
|
270
|
+
catch :response do
|
|
271
|
+
yield result, operation if block_given?
|
|
272
|
+
result
|
|
273
|
+
end
|
|
274
|
+
end
|
|
275
|
+
|
|
276
|
+
##
|
|
277
|
+
# Baseline implementation for the list_mcp_servers REST call
|
|
278
|
+
#
|
|
279
|
+
# @param request_pb [::Google::Cloud::AgentRegistry::V1::ListMcpServersRequest]
|
|
280
|
+
# A request object representing the call parameters. Required.
|
|
281
|
+
# @param options [::Gapic::CallOptions]
|
|
282
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
283
|
+
#
|
|
284
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
285
|
+
# @yieldparam result [::Google::Cloud::AgentRegistry::V1::ListMcpServersResponse]
|
|
286
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
287
|
+
#
|
|
288
|
+
# @return [::Google::Cloud::AgentRegistry::V1::ListMcpServersResponse]
|
|
289
|
+
# A result object deserialized from the server's reply
|
|
290
|
+
def list_mcp_servers request_pb, options = nil
|
|
291
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
292
|
+
|
|
293
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_mcp_servers_request request_pb
|
|
294
|
+
query_string_params = if query_string_params.any?
|
|
295
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
296
|
+
else
|
|
297
|
+
{}
|
|
298
|
+
end
|
|
299
|
+
|
|
300
|
+
response = @client_stub.make_http_request(
|
|
301
|
+
verb,
|
|
302
|
+
uri: uri,
|
|
303
|
+
body: body || "",
|
|
304
|
+
params: query_string_params,
|
|
305
|
+
method_name: "list_mcp_servers",
|
|
306
|
+
options: options
|
|
307
|
+
)
|
|
308
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
309
|
+
result = ::Google::Cloud::AgentRegistry::V1::ListMcpServersResponse.decode_json response.body, ignore_unknown_fields: true
|
|
310
|
+
catch :response do
|
|
311
|
+
yield result, operation if block_given?
|
|
312
|
+
result
|
|
313
|
+
end
|
|
314
|
+
end
|
|
315
|
+
|
|
316
|
+
##
|
|
317
|
+
# Baseline implementation for the search_mcp_servers REST call
|
|
318
|
+
#
|
|
319
|
+
# @param request_pb [::Google::Cloud::AgentRegistry::V1::SearchMcpServersRequest]
|
|
320
|
+
# A request object representing the call parameters. Required.
|
|
321
|
+
# @param options [::Gapic::CallOptions]
|
|
322
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
323
|
+
#
|
|
324
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
325
|
+
# @yieldparam result [::Google::Cloud::AgentRegistry::V1::SearchMcpServersResponse]
|
|
326
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
327
|
+
#
|
|
328
|
+
# @return [::Google::Cloud::AgentRegistry::V1::SearchMcpServersResponse]
|
|
329
|
+
# A result object deserialized from the server's reply
|
|
330
|
+
def search_mcp_servers request_pb, options = nil
|
|
331
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
332
|
+
|
|
333
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_search_mcp_servers_request request_pb
|
|
334
|
+
query_string_params = if query_string_params.any?
|
|
335
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
336
|
+
else
|
|
337
|
+
{}
|
|
338
|
+
end
|
|
339
|
+
|
|
340
|
+
response = @client_stub.make_http_request(
|
|
341
|
+
verb,
|
|
342
|
+
uri: uri,
|
|
343
|
+
body: body || "",
|
|
344
|
+
params: query_string_params,
|
|
345
|
+
method_name: "search_mcp_servers",
|
|
346
|
+
options: options
|
|
347
|
+
)
|
|
348
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
349
|
+
result = ::Google::Cloud::AgentRegistry::V1::SearchMcpServersResponse.decode_json response.body, ignore_unknown_fields: true
|
|
350
|
+
catch :response do
|
|
351
|
+
yield result, operation if block_given?
|
|
352
|
+
result
|
|
353
|
+
end
|
|
354
|
+
end
|
|
355
|
+
|
|
356
|
+
##
|
|
357
|
+
# Baseline implementation for the get_mcp_server REST call
|
|
358
|
+
#
|
|
359
|
+
# @param request_pb [::Google::Cloud::AgentRegistry::V1::GetMcpServerRequest]
|
|
360
|
+
# A request object representing the call parameters. Required.
|
|
361
|
+
# @param options [::Gapic::CallOptions]
|
|
362
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
363
|
+
#
|
|
364
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
365
|
+
# @yieldparam result [::Google::Cloud::AgentRegistry::V1::McpServer]
|
|
366
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
367
|
+
#
|
|
368
|
+
# @return [::Google::Cloud::AgentRegistry::V1::McpServer]
|
|
369
|
+
# A result object deserialized from the server's reply
|
|
370
|
+
def get_mcp_server request_pb, options = nil
|
|
371
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
372
|
+
|
|
373
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_mcp_server_request request_pb
|
|
374
|
+
query_string_params = if query_string_params.any?
|
|
375
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
376
|
+
else
|
|
377
|
+
{}
|
|
378
|
+
end
|
|
379
|
+
|
|
380
|
+
response = @client_stub.make_http_request(
|
|
381
|
+
verb,
|
|
382
|
+
uri: uri,
|
|
383
|
+
body: body || "",
|
|
384
|
+
params: query_string_params,
|
|
385
|
+
method_name: "get_mcp_server",
|
|
386
|
+
options: options
|
|
387
|
+
)
|
|
388
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
389
|
+
result = ::Google::Cloud::AgentRegistry::V1::McpServer.decode_json response.body, ignore_unknown_fields: true
|
|
390
|
+
catch :response do
|
|
391
|
+
yield result, operation if block_given?
|
|
392
|
+
result
|
|
393
|
+
end
|
|
394
|
+
end
|
|
395
|
+
|
|
396
|
+
##
|
|
397
|
+
# Baseline implementation for the list_services REST call
|
|
398
|
+
#
|
|
399
|
+
# @param request_pb [::Google::Cloud::AgentRegistry::V1::ListServicesRequest]
|
|
400
|
+
# A request object representing the call parameters. Required.
|
|
401
|
+
# @param options [::Gapic::CallOptions]
|
|
402
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
403
|
+
#
|
|
404
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
405
|
+
# @yieldparam result [::Google::Cloud::AgentRegistry::V1::ListServicesResponse]
|
|
406
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
407
|
+
#
|
|
408
|
+
# @return [::Google::Cloud::AgentRegistry::V1::ListServicesResponse]
|
|
409
|
+
# A result object deserialized from the server's reply
|
|
410
|
+
def list_services request_pb, options = nil
|
|
411
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
412
|
+
|
|
413
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_services_request request_pb
|
|
414
|
+
query_string_params = if query_string_params.any?
|
|
415
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
416
|
+
else
|
|
417
|
+
{}
|
|
418
|
+
end
|
|
419
|
+
|
|
420
|
+
response = @client_stub.make_http_request(
|
|
421
|
+
verb,
|
|
422
|
+
uri: uri,
|
|
423
|
+
body: body || "",
|
|
424
|
+
params: query_string_params,
|
|
425
|
+
method_name: "list_services",
|
|
426
|
+
options: options
|
|
427
|
+
)
|
|
428
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
429
|
+
result = ::Google::Cloud::AgentRegistry::V1::ListServicesResponse.decode_json response.body, ignore_unknown_fields: true
|
|
430
|
+
catch :response do
|
|
431
|
+
yield result, operation if block_given?
|
|
432
|
+
result
|
|
433
|
+
end
|
|
434
|
+
end
|
|
435
|
+
|
|
436
|
+
##
|
|
437
|
+
# Baseline implementation for the get_service REST call
|
|
438
|
+
#
|
|
439
|
+
# @param request_pb [::Google::Cloud::AgentRegistry::V1::GetServiceRequest]
|
|
440
|
+
# A request object representing the call parameters. Required.
|
|
441
|
+
# @param options [::Gapic::CallOptions]
|
|
442
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
443
|
+
#
|
|
444
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
445
|
+
# @yieldparam result [::Google::Cloud::AgentRegistry::V1::Service]
|
|
446
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
447
|
+
#
|
|
448
|
+
# @return [::Google::Cloud::AgentRegistry::V1::Service]
|
|
449
|
+
# A result object deserialized from the server's reply
|
|
450
|
+
def get_service request_pb, options = nil
|
|
451
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
452
|
+
|
|
453
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_service_request request_pb
|
|
454
|
+
query_string_params = if query_string_params.any?
|
|
455
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
456
|
+
else
|
|
457
|
+
{}
|
|
458
|
+
end
|
|
459
|
+
|
|
460
|
+
response = @client_stub.make_http_request(
|
|
461
|
+
verb,
|
|
462
|
+
uri: uri,
|
|
463
|
+
body: body || "",
|
|
464
|
+
params: query_string_params,
|
|
465
|
+
method_name: "get_service",
|
|
466
|
+
options: options
|
|
467
|
+
)
|
|
468
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
469
|
+
result = ::Google::Cloud::AgentRegistry::V1::Service.decode_json response.body, ignore_unknown_fields: true
|
|
470
|
+
catch :response do
|
|
471
|
+
yield result, operation if block_given?
|
|
472
|
+
result
|
|
473
|
+
end
|
|
474
|
+
end
|
|
475
|
+
|
|
476
|
+
##
|
|
477
|
+
# Baseline implementation for the create_service REST call
|
|
478
|
+
#
|
|
479
|
+
# @param request_pb [::Google::Cloud::AgentRegistry::V1::CreateServiceRequest]
|
|
480
|
+
# A request object representing the call parameters. Required.
|
|
481
|
+
# @param options [::Gapic::CallOptions]
|
|
482
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
483
|
+
#
|
|
484
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
485
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
|
486
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
487
|
+
#
|
|
488
|
+
# @return [::Google::Longrunning::Operation]
|
|
489
|
+
# A result object deserialized from the server's reply
|
|
490
|
+
def create_service request_pb, options = nil
|
|
491
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
492
|
+
|
|
493
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_create_service_request request_pb
|
|
494
|
+
query_string_params = if query_string_params.any?
|
|
495
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
496
|
+
else
|
|
497
|
+
{}
|
|
498
|
+
end
|
|
499
|
+
|
|
500
|
+
response = @client_stub.make_http_request(
|
|
501
|
+
verb,
|
|
502
|
+
uri: uri,
|
|
503
|
+
body: body || "",
|
|
504
|
+
params: query_string_params,
|
|
505
|
+
method_name: "create_service",
|
|
506
|
+
options: options
|
|
507
|
+
)
|
|
508
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
509
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
|
510
|
+
catch :response do
|
|
511
|
+
yield result, operation if block_given?
|
|
512
|
+
result
|
|
513
|
+
end
|
|
514
|
+
end
|
|
515
|
+
|
|
516
|
+
##
|
|
517
|
+
# Baseline implementation for the update_service REST call
|
|
518
|
+
#
|
|
519
|
+
# @param request_pb [::Google::Cloud::AgentRegistry::V1::UpdateServiceRequest]
|
|
520
|
+
# A request object representing the call parameters. Required.
|
|
521
|
+
# @param options [::Gapic::CallOptions]
|
|
522
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
523
|
+
#
|
|
524
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
525
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
|
526
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
527
|
+
#
|
|
528
|
+
# @return [::Google::Longrunning::Operation]
|
|
529
|
+
# A result object deserialized from the server's reply
|
|
530
|
+
def update_service request_pb, options = nil
|
|
531
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
532
|
+
|
|
533
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_update_service_request request_pb
|
|
534
|
+
query_string_params = if query_string_params.any?
|
|
535
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
536
|
+
else
|
|
537
|
+
{}
|
|
538
|
+
end
|
|
539
|
+
|
|
540
|
+
response = @client_stub.make_http_request(
|
|
541
|
+
verb,
|
|
542
|
+
uri: uri,
|
|
543
|
+
body: body || "",
|
|
544
|
+
params: query_string_params,
|
|
545
|
+
method_name: "update_service",
|
|
546
|
+
options: options
|
|
547
|
+
)
|
|
548
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
549
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
|
550
|
+
catch :response do
|
|
551
|
+
yield result, operation if block_given?
|
|
552
|
+
result
|
|
553
|
+
end
|
|
554
|
+
end
|
|
555
|
+
|
|
556
|
+
##
|
|
557
|
+
# Baseline implementation for the delete_service REST call
|
|
558
|
+
#
|
|
559
|
+
# @param request_pb [::Google::Cloud::AgentRegistry::V1::DeleteServiceRequest]
|
|
560
|
+
# A request object representing the call parameters. Required.
|
|
561
|
+
# @param options [::Gapic::CallOptions]
|
|
562
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
563
|
+
#
|
|
564
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
565
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
|
566
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
567
|
+
#
|
|
568
|
+
# @return [::Google::Longrunning::Operation]
|
|
569
|
+
# A result object deserialized from the server's reply
|
|
570
|
+
def delete_service request_pb, options = nil
|
|
571
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
572
|
+
|
|
573
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_service_request request_pb
|
|
574
|
+
query_string_params = if query_string_params.any?
|
|
575
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
576
|
+
else
|
|
577
|
+
{}
|
|
578
|
+
end
|
|
579
|
+
|
|
580
|
+
response = @client_stub.make_http_request(
|
|
581
|
+
verb,
|
|
582
|
+
uri: uri,
|
|
583
|
+
body: body || "",
|
|
584
|
+
params: query_string_params,
|
|
585
|
+
method_name: "delete_service",
|
|
586
|
+
options: options
|
|
587
|
+
)
|
|
588
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
589
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
|
590
|
+
catch :response do
|
|
591
|
+
yield result, operation if block_given?
|
|
592
|
+
result
|
|
593
|
+
end
|
|
594
|
+
end
|
|
595
|
+
|
|
596
|
+
##
|
|
597
|
+
# Baseline implementation for the list_bindings REST call
|
|
598
|
+
#
|
|
599
|
+
# @param request_pb [::Google::Cloud::AgentRegistry::V1::ListBindingsRequest]
|
|
600
|
+
# A request object representing the call parameters. Required.
|
|
601
|
+
# @param options [::Gapic::CallOptions]
|
|
602
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
603
|
+
#
|
|
604
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
605
|
+
# @yieldparam result [::Google::Cloud::AgentRegistry::V1::ListBindingsResponse]
|
|
606
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
607
|
+
#
|
|
608
|
+
# @return [::Google::Cloud::AgentRegistry::V1::ListBindingsResponse]
|
|
609
|
+
# A result object deserialized from the server's reply
|
|
610
|
+
def list_bindings request_pb, options = nil
|
|
611
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
612
|
+
|
|
613
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_bindings_request request_pb
|
|
614
|
+
query_string_params = if query_string_params.any?
|
|
615
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
616
|
+
else
|
|
617
|
+
{}
|
|
618
|
+
end
|
|
619
|
+
|
|
620
|
+
response = @client_stub.make_http_request(
|
|
621
|
+
verb,
|
|
622
|
+
uri: uri,
|
|
623
|
+
body: body || "",
|
|
624
|
+
params: query_string_params,
|
|
625
|
+
method_name: "list_bindings",
|
|
626
|
+
options: options
|
|
627
|
+
)
|
|
628
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
629
|
+
result = ::Google::Cloud::AgentRegistry::V1::ListBindingsResponse.decode_json response.body, ignore_unknown_fields: true
|
|
630
|
+
catch :response do
|
|
631
|
+
yield result, operation if block_given?
|
|
632
|
+
result
|
|
633
|
+
end
|
|
634
|
+
end
|
|
635
|
+
|
|
636
|
+
##
|
|
637
|
+
# Baseline implementation for the get_binding REST call
|
|
638
|
+
#
|
|
639
|
+
# @param request_pb [::Google::Cloud::AgentRegistry::V1::GetBindingRequest]
|
|
640
|
+
# A request object representing the call parameters. Required.
|
|
641
|
+
# @param options [::Gapic::CallOptions]
|
|
642
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
643
|
+
#
|
|
644
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
645
|
+
# @yieldparam result [::Google::Cloud::AgentRegistry::V1::Binding]
|
|
646
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
647
|
+
#
|
|
648
|
+
# @return [::Google::Cloud::AgentRegistry::V1::Binding]
|
|
649
|
+
# A result object deserialized from the server's reply
|
|
650
|
+
def get_binding request_pb, options = nil
|
|
651
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
652
|
+
|
|
653
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_binding_request request_pb
|
|
654
|
+
query_string_params = if query_string_params.any?
|
|
655
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
656
|
+
else
|
|
657
|
+
{}
|
|
658
|
+
end
|
|
659
|
+
|
|
660
|
+
response = @client_stub.make_http_request(
|
|
661
|
+
verb,
|
|
662
|
+
uri: uri,
|
|
663
|
+
body: body || "",
|
|
664
|
+
params: query_string_params,
|
|
665
|
+
method_name: "get_binding",
|
|
666
|
+
options: options
|
|
667
|
+
)
|
|
668
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
669
|
+
result = ::Google::Cloud::AgentRegistry::V1::Binding.decode_json response.body, ignore_unknown_fields: true
|
|
670
|
+
catch :response do
|
|
671
|
+
yield result, operation if block_given?
|
|
672
|
+
result
|
|
673
|
+
end
|
|
674
|
+
end
|
|
675
|
+
|
|
676
|
+
##
|
|
677
|
+
# Baseline implementation for the create_binding REST call
|
|
678
|
+
#
|
|
679
|
+
# @param request_pb [::Google::Cloud::AgentRegistry::V1::CreateBindingRequest]
|
|
680
|
+
# A request object representing the call parameters. Required.
|
|
681
|
+
# @param options [::Gapic::CallOptions]
|
|
682
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
683
|
+
#
|
|
684
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
685
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
|
686
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
687
|
+
#
|
|
688
|
+
# @return [::Google::Longrunning::Operation]
|
|
689
|
+
# A result object deserialized from the server's reply
|
|
690
|
+
def create_binding request_pb, options = nil
|
|
691
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
692
|
+
|
|
693
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_create_binding_request request_pb
|
|
694
|
+
query_string_params = if query_string_params.any?
|
|
695
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
696
|
+
else
|
|
697
|
+
{}
|
|
698
|
+
end
|
|
699
|
+
|
|
700
|
+
response = @client_stub.make_http_request(
|
|
701
|
+
verb,
|
|
702
|
+
uri: uri,
|
|
703
|
+
body: body || "",
|
|
704
|
+
params: query_string_params,
|
|
705
|
+
method_name: "create_binding",
|
|
706
|
+
options: options
|
|
707
|
+
)
|
|
708
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
709
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
|
710
|
+
catch :response do
|
|
711
|
+
yield result, operation if block_given?
|
|
712
|
+
result
|
|
713
|
+
end
|
|
714
|
+
end
|
|
715
|
+
|
|
716
|
+
##
|
|
717
|
+
# Baseline implementation for the update_binding REST call
|
|
718
|
+
#
|
|
719
|
+
# @param request_pb [::Google::Cloud::AgentRegistry::V1::UpdateBindingRequest]
|
|
720
|
+
# A request object representing the call parameters. Required.
|
|
721
|
+
# @param options [::Gapic::CallOptions]
|
|
722
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
723
|
+
#
|
|
724
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
725
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
|
726
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
727
|
+
#
|
|
728
|
+
# @return [::Google::Longrunning::Operation]
|
|
729
|
+
# A result object deserialized from the server's reply
|
|
730
|
+
def update_binding request_pb, options = nil
|
|
731
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
732
|
+
|
|
733
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_update_binding_request request_pb
|
|
734
|
+
query_string_params = if query_string_params.any?
|
|
735
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
736
|
+
else
|
|
737
|
+
{}
|
|
738
|
+
end
|
|
739
|
+
|
|
740
|
+
response = @client_stub.make_http_request(
|
|
741
|
+
verb,
|
|
742
|
+
uri: uri,
|
|
743
|
+
body: body || "",
|
|
744
|
+
params: query_string_params,
|
|
745
|
+
method_name: "update_binding",
|
|
746
|
+
options: options
|
|
747
|
+
)
|
|
748
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
749
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
|
750
|
+
catch :response do
|
|
751
|
+
yield result, operation if block_given?
|
|
752
|
+
result
|
|
753
|
+
end
|
|
754
|
+
end
|
|
755
|
+
|
|
756
|
+
##
|
|
757
|
+
# Baseline implementation for the delete_binding REST call
|
|
758
|
+
#
|
|
759
|
+
# @param request_pb [::Google::Cloud::AgentRegistry::V1::DeleteBindingRequest]
|
|
760
|
+
# A request object representing the call parameters. Required.
|
|
761
|
+
# @param options [::Gapic::CallOptions]
|
|
762
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
763
|
+
#
|
|
764
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
765
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
|
766
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
767
|
+
#
|
|
768
|
+
# @return [::Google::Longrunning::Operation]
|
|
769
|
+
# A result object deserialized from the server's reply
|
|
770
|
+
def delete_binding request_pb, options = nil
|
|
771
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
772
|
+
|
|
773
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_binding_request request_pb
|
|
774
|
+
query_string_params = if query_string_params.any?
|
|
775
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
776
|
+
else
|
|
777
|
+
{}
|
|
778
|
+
end
|
|
779
|
+
|
|
780
|
+
response = @client_stub.make_http_request(
|
|
781
|
+
verb,
|
|
782
|
+
uri: uri,
|
|
783
|
+
body: body || "",
|
|
784
|
+
params: query_string_params,
|
|
785
|
+
method_name: "delete_binding",
|
|
786
|
+
options: options
|
|
787
|
+
)
|
|
788
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
789
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
|
790
|
+
catch :response do
|
|
791
|
+
yield result, operation if block_given?
|
|
792
|
+
result
|
|
793
|
+
end
|
|
794
|
+
end
|
|
795
|
+
|
|
796
|
+
##
|
|
797
|
+
# Baseline implementation for the fetch_available_bindings REST call
|
|
798
|
+
#
|
|
799
|
+
# @param request_pb [::Google::Cloud::AgentRegistry::V1::FetchAvailableBindingsRequest]
|
|
800
|
+
# A request object representing the call parameters. Required.
|
|
801
|
+
# @param options [::Gapic::CallOptions]
|
|
802
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
803
|
+
#
|
|
804
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
805
|
+
# @yieldparam result [::Google::Cloud::AgentRegistry::V1::FetchAvailableBindingsResponse]
|
|
806
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
807
|
+
#
|
|
808
|
+
# @return [::Google::Cloud::AgentRegistry::V1::FetchAvailableBindingsResponse]
|
|
809
|
+
# A result object deserialized from the server's reply
|
|
810
|
+
def fetch_available_bindings request_pb, options = nil
|
|
811
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
812
|
+
|
|
813
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_fetch_available_bindings_request request_pb
|
|
814
|
+
query_string_params = if query_string_params.any?
|
|
815
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
816
|
+
else
|
|
817
|
+
{}
|
|
818
|
+
end
|
|
819
|
+
|
|
820
|
+
response = @client_stub.make_http_request(
|
|
821
|
+
verb,
|
|
822
|
+
uri: uri,
|
|
823
|
+
body: body || "",
|
|
824
|
+
params: query_string_params,
|
|
825
|
+
method_name: "fetch_available_bindings",
|
|
826
|
+
options: options
|
|
827
|
+
)
|
|
828
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
829
|
+
result = ::Google::Cloud::AgentRegistry::V1::FetchAvailableBindingsResponse.decode_json response.body, ignore_unknown_fields: true
|
|
830
|
+
catch :response do
|
|
831
|
+
yield result, operation if block_given?
|
|
832
|
+
result
|
|
833
|
+
end
|
|
834
|
+
end
|
|
835
|
+
|
|
836
|
+
##
|
|
837
|
+
# @private
|
|
838
|
+
#
|
|
839
|
+
# GRPC transcoding helper method for the list_agents REST call
|
|
840
|
+
#
|
|
841
|
+
# @param request_pb [::Google::Cloud::AgentRegistry::V1::ListAgentsRequest]
|
|
842
|
+
# A request object representing the call parameters. Required.
|
|
843
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
844
|
+
# Uri, Body, Query string parameters
|
|
845
|
+
def self.transcode_list_agents_request request_pb
|
|
846
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
847
|
+
.with_bindings(
|
|
848
|
+
uri_method: :get,
|
|
849
|
+
uri_template: "/v1/{parent}/agents",
|
|
850
|
+
matches: [
|
|
851
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
|
852
|
+
]
|
|
853
|
+
)
|
|
854
|
+
transcoder.transcode request_pb
|
|
855
|
+
end
|
|
856
|
+
|
|
857
|
+
##
|
|
858
|
+
# @private
|
|
859
|
+
#
|
|
860
|
+
# GRPC transcoding helper method for the search_agents REST call
|
|
861
|
+
#
|
|
862
|
+
# @param request_pb [::Google::Cloud::AgentRegistry::V1::SearchAgentsRequest]
|
|
863
|
+
# A request object representing the call parameters. Required.
|
|
864
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
865
|
+
# Uri, Body, Query string parameters
|
|
866
|
+
def self.transcode_search_agents_request request_pb
|
|
867
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
868
|
+
.with_bindings(
|
|
869
|
+
uri_method: :post,
|
|
870
|
+
uri_template: "/v1/{parent}/agents:search",
|
|
871
|
+
body: "*",
|
|
872
|
+
matches: [
|
|
873
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
|
874
|
+
]
|
|
875
|
+
)
|
|
876
|
+
transcoder.transcode request_pb
|
|
877
|
+
end
|
|
878
|
+
|
|
879
|
+
##
|
|
880
|
+
# @private
|
|
881
|
+
#
|
|
882
|
+
# GRPC transcoding helper method for the get_agent REST call
|
|
883
|
+
#
|
|
884
|
+
# @param request_pb [::Google::Cloud::AgentRegistry::V1::GetAgentRequest]
|
|
885
|
+
# A request object representing the call parameters. Required.
|
|
886
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
887
|
+
# Uri, Body, Query string parameters
|
|
888
|
+
def self.transcode_get_agent_request request_pb
|
|
889
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
890
|
+
.with_bindings(
|
|
891
|
+
uri_method: :get,
|
|
892
|
+
uri_template: "/v1/{name}",
|
|
893
|
+
matches: [
|
|
894
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/?$}, false]
|
|
895
|
+
]
|
|
896
|
+
)
|
|
897
|
+
transcoder.transcode request_pb
|
|
898
|
+
end
|
|
899
|
+
|
|
900
|
+
##
|
|
901
|
+
# @private
|
|
902
|
+
#
|
|
903
|
+
# GRPC transcoding helper method for the list_endpoints REST call
|
|
904
|
+
#
|
|
905
|
+
# @param request_pb [::Google::Cloud::AgentRegistry::V1::ListEndpointsRequest]
|
|
906
|
+
# A request object representing the call parameters. Required.
|
|
907
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
908
|
+
# Uri, Body, Query string parameters
|
|
909
|
+
def self.transcode_list_endpoints_request request_pb
|
|
910
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
911
|
+
.with_bindings(
|
|
912
|
+
uri_method: :get,
|
|
913
|
+
uri_template: "/v1/{parent}/endpoints",
|
|
914
|
+
matches: [
|
|
915
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
|
916
|
+
]
|
|
917
|
+
)
|
|
918
|
+
transcoder.transcode request_pb
|
|
919
|
+
end
|
|
920
|
+
|
|
921
|
+
##
|
|
922
|
+
# @private
|
|
923
|
+
#
|
|
924
|
+
# GRPC transcoding helper method for the get_endpoint REST call
|
|
925
|
+
#
|
|
926
|
+
# @param request_pb [::Google::Cloud::AgentRegistry::V1::GetEndpointRequest]
|
|
927
|
+
# A request object representing the call parameters. Required.
|
|
928
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
929
|
+
# Uri, Body, Query string parameters
|
|
930
|
+
def self.transcode_get_endpoint_request request_pb
|
|
931
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
932
|
+
.with_bindings(
|
|
933
|
+
uri_method: :get,
|
|
934
|
+
uri_template: "/v1/{name}",
|
|
935
|
+
matches: [
|
|
936
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/endpoints/[^/]+/?$}, false]
|
|
937
|
+
]
|
|
938
|
+
)
|
|
939
|
+
transcoder.transcode request_pb
|
|
940
|
+
end
|
|
941
|
+
|
|
942
|
+
##
|
|
943
|
+
# @private
|
|
944
|
+
#
|
|
945
|
+
# GRPC transcoding helper method for the list_mcp_servers REST call
|
|
946
|
+
#
|
|
947
|
+
# @param request_pb [::Google::Cloud::AgentRegistry::V1::ListMcpServersRequest]
|
|
948
|
+
# A request object representing the call parameters. Required.
|
|
949
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
950
|
+
# Uri, Body, Query string parameters
|
|
951
|
+
def self.transcode_list_mcp_servers_request request_pb
|
|
952
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
953
|
+
.with_bindings(
|
|
954
|
+
uri_method: :get,
|
|
955
|
+
uri_template: "/v1/{parent}/mcpServers",
|
|
956
|
+
matches: [
|
|
957
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
|
958
|
+
]
|
|
959
|
+
)
|
|
960
|
+
transcoder.transcode request_pb
|
|
961
|
+
end
|
|
962
|
+
|
|
963
|
+
##
|
|
964
|
+
# @private
|
|
965
|
+
#
|
|
966
|
+
# GRPC transcoding helper method for the search_mcp_servers REST call
|
|
967
|
+
#
|
|
968
|
+
# @param request_pb [::Google::Cloud::AgentRegistry::V1::SearchMcpServersRequest]
|
|
969
|
+
# A request object representing the call parameters. Required.
|
|
970
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
971
|
+
# Uri, Body, Query string parameters
|
|
972
|
+
def self.transcode_search_mcp_servers_request request_pb
|
|
973
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
974
|
+
.with_bindings(
|
|
975
|
+
uri_method: :post,
|
|
976
|
+
uri_template: "/v1/{parent}/mcpServers:search",
|
|
977
|
+
body: "*",
|
|
978
|
+
matches: [
|
|
979
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
|
980
|
+
]
|
|
981
|
+
)
|
|
982
|
+
transcoder.transcode request_pb
|
|
983
|
+
end
|
|
984
|
+
|
|
985
|
+
##
|
|
986
|
+
# @private
|
|
987
|
+
#
|
|
988
|
+
# GRPC transcoding helper method for the get_mcp_server REST call
|
|
989
|
+
#
|
|
990
|
+
# @param request_pb [::Google::Cloud::AgentRegistry::V1::GetMcpServerRequest]
|
|
991
|
+
# A request object representing the call parameters. Required.
|
|
992
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
993
|
+
# Uri, Body, Query string parameters
|
|
994
|
+
def self.transcode_get_mcp_server_request request_pb
|
|
995
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
996
|
+
.with_bindings(
|
|
997
|
+
uri_method: :get,
|
|
998
|
+
uri_template: "/v1/{name}",
|
|
999
|
+
matches: [
|
|
1000
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/mcpServers/[^/]+/?$}, false]
|
|
1001
|
+
]
|
|
1002
|
+
)
|
|
1003
|
+
transcoder.transcode request_pb
|
|
1004
|
+
end
|
|
1005
|
+
|
|
1006
|
+
##
|
|
1007
|
+
# @private
|
|
1008
|
+
#
|
|
1009
|
+
# GRPC transcoding helper method for the list_services REST call
|
|
1010
|
+
#
|
|
1011
|
+
# @param request_pb [::Google::Cloud::AgentRegistry::V1::ListServicesRequest]
|
|
1012
|
+
# A request object representing the call parameters. Required.
|
|
1013
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1014
|
+
# Uri, Body, Query string parameters
|
|
1015
|
+
def self.transcode_list_services_request request_pb
|
|
1016
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1017
|
+
.with_bindings(
|
|
1018
|
+
uri_method: :get,
|
|
1019
|
+
uri_template: "/v1/{parent}/services",
|
|
1020
|
+
matches: [
|
|
1021
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
|
1022
|
+
]
|
|
1023
|
+
)
|
|
1024
|
+
transcoder.transcode request_pb
|
|
1025
|
+
end
|
|
1026
|
+
|
|
1027
|
+
##
|
|
1028
|
+
# @private
|
|
1029
|
+
#
|
|
1030
|
+
# GRPC transcoding helper method for the get_service REST call
|
|
1031
|
+
#
|
|
1032
|
+
# @param request_pb [::Google::Cloud::AgentRegistry::V1::GetServiceRequest]
|
|
1033
|
+
# A request object representing the call parameters. Required.
|
|
1034
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1035
|
+
# Uri, Body, Query string parameters
|
|
1036
|
+
def self.transcode_get_service_request request_pb
|
|
1037
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1038
|
+
.with_bindings(
|
|
1039
|
+
uri_method: :get,
|
|
1040
|
+
uri_template: "/v1/{name}",
|
|
1041
|
+
matches: [
|
|
1042
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/services/[^/]+/?$}, false]
|
|
1043
|
+
]
|
|
1044
|
+
)
|
|
1045
|
+
transcoder.transcode request_pb
|
|
1046
|
+
end
|
|
1047
|
+
|
|
1048
|
+
##
|
|
1049
|
+
# @private
|
|
1050
|
+
#
|
|
1051
|
+
# GRPC transcoding helper method for the create_service REST call
|
|
1052
|
+
#
|
|
1053
|
+
# @param request_pb [::Google::Cloud::AgentRegistry::V1::CreateServiceRequest]
|
|
1054
|
+
# A request object representing the call parameters. Required.
|
|
1055
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1056
|
+
# Uri, Body, Query string parameters
|
|
1057
|
+
def self.transcode_create_service_request request_pb
|
|
1058
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1059
|
+
.with_bindings(
|
|
1060
|
+
uri_method: :post,
|
|
1061
|
+
uri_template: "/v1/{parent}/services",
|
|
1062
|
+
body: "service",
|
|
1063
|
+
matches: [
|
|
1064
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
|
1065
|
+
]
|
|
1066
|
+
)
|
|
1067
|
+
transcoder.transcode request_pb
|
|
1068
|
+
end
|
|
1069
|
+
|
|
1070
|
+
##
|
|
1071
|
+
# @private
|
|
1072
|
+
#
|
|
1073
|
+
# GRPC transcoding helper method for the update_service REST call
|
|
1074
|
+
#
|
|
1075
|
+
# @param request_pb [::Google::Cloud::AgentRegistry::V1::UpdateServiceRequest]
|
|
1076
|
+
# A request object representing the call parameters. Required.
|
|
1077
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1078
|
+
# Uri, Body, Query string parameters
|
|
1079
|
+
def self.transcode_update_service_request request_pb
|
|
1080
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1081
|
+
.with_bindings(
|
|
1082
|
+
uri_method: :patch,
|
|
1083
|
+
uri_template: "/v1/{service.name}",
|
|
1084
|
+
body: "service",
|
|
1085
|
+
matches: [
|
|
1086
|
+
["service.name", %r{^projects/[^/]+/locations/[^/]+/services/[^/]+/?$}, false]
|
|
1087
|
+
]
|
|
1088
|
+
)
|
|
1089
|
+
transcoder.transcode request_pb
|
|
1090
|
+
end
|
|
1091
|
+
|
|
1092
|
+
##
|
|
1093
|
+
# @private
|
|
1094
|
+
#
|
|
1095
|
+
# GRPC transcoding helper method for the delete_service REST call
|
|
1096
|
+
#
|
|
1097
|
+
# @param request_pb [::Google::Cloud::AgentRegistry::V1::DeleteServiceRequest]
|
|
1098
|
+
# A request object representing the call parameters. Required.
|
|
1099
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1100
|
+
# Uri, Body, Query string parameters
|
|
1101
|
+
def self.transcode_delete_service_request request_pb
|
|
1102
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1103
|
+
.with_bindings(
|
|
1104
|
+
uri_method: :delete,
|
|
1105
|
+
uri_template: "/v1/{name}",
|
|
1106
|
+
matches: [
|
|
1107
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/services/[^/]+/?$}, false]
|
|
1108
|
+
]
|
|
1109
|
+
)
|
|
1110
|
+
transcoder.transcode request_pb
|
|
1111
|
+
end
|
|
1112
|
+
|
|
1113
|
+
##
|
|
1114
|
+
# @private
|
|
1115
|
+
#
|
|
1116
|
+
# GRPC transcoding helper method for the list_bindings REST call
|
|
1117
|
+
#
|
|
1118
|
+
# @param request_pb [::Google::Cloud::AgentRegistry::V1::ListBindingsRequest]
|
|
1119
|
+
# A request object representing the call parameters. Required.
|
|
1120
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1121
|
+
# Uri, Body, Query string parameters
|
|
1122
|
+
def self.transcode_list_bindings_request request_pb
|
|
1123
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1124
|
+
.with_bindings(
|
|
1125
|
+
uri_method: :get,
|
|
1126
|
+
uri_template: "/v1/{parent}/bindings",
|
|
1127
|
+
matches: [
|
|
1128
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
|
1129
|
+
]
|
|
1130
|
+
)
|
|
1131
|
+
transcoder.transcode request_pb
|
|
1132
|
+
end
|
|
1133
|
+
|
|
1134
|
+
##
|
|
1135
|
+
# @private
|
|
1136
|
+
#
|
|
1137
|
+
# GRPC transcoding helper method for the get_binding REST call
|
|
1138
|
+
#
|
|
1139
|
+
# @param request_pb [::Google::Cloud::AgentRegistry::V1::GetBindingRequest]
|
|
1140
|
+
# A request object representing the call parameters. Required.
|
|
1141
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1142
|
+
# Uri, Body, Query string parameters
|
|
1143
|
+
def self.transcode_get_binding_request request_pb
|
|
1144
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1145
|
+
.with_bindings(
|
|
1146
|
+
uri_method: :get,
|
|
1147
|
+
uri_template: "/v1/{name}",
|
|
1148
|
+
matches: [
|
|
1149
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/bindings/[^/]+/?$}, false]
|
|
1150
|
+
]
|
|
1151
|
+
)
|
|
1152
|
+
transcoder.transcode request_pb
|
|
1153
|
+
end
|
|
1154
|
+
|
|
1155
|
+
##
|
|
1156
|
+
# @private
|
|
1157
|
+
#
|
|
1158
|
+
# GRPC transcoding helper method for the create_binding REST call
|
|
1159
|
+
#
|
|
1160
|
+
# @param request_pb [::Google::Cloud::AgentRegistry::V1::CreateBindingRequest]
|
|
1161
|
+
# A request object representing the call parameters. Required.
|
|
1162
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1163
|
+
# Uri, Body, Query string parameters
|
|
1164
|
+
def self.transcode_create_binding_request request_pb
|
|
1165
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1166
|
+
.with_bindings(
|
|
1167
|
+
uri_method: :post,
|
|
1168
|
+
uri_template: "/v1/{parent}/bindings",
|
|
1169
|
+
body: "binding",
|
|
1170
|
+
matches: [
|
|
1171
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
|
1172
|
+
]
|
|
1173
|
+
)
|
|
1174
|
+
transcoder.transcode request_pb
|
|
1175
|
+
end
|
|
1176
|
+
|
|
1177
|
+
##
|
|
1178
|
+
# @private
|
|
1179
|
+
#
|
|
1180
|
+
# GRPC transcoding helper method for the update_binding REST call
|
|
1181
|
+
#
|
|
1182
|
+
# @param request_pb [::Google::Cloud::AgentRegistry::V1::UpdateBindingRequest]
|
|
1183
|
+
# A request object representing the call parameters. Required.
|
|
1184
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1185
|
+
# Uri, Body, Query string parameters
|
|
1186
|
+
def self.transcode_update_binding_request request_pb
|
|
1187
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1188
|
+
.with_bindings(
|
|
1189
|
+
uri_method: :patch,
|
|
1190
|
+
uri_template: "/v1/{binding.name}",
|
|
1191
|
+
body: "binding",
|
|
1192
|
+
matches: [
|
|
1193
|
+
["binding.name", %r{^projects/[^/]+/locations/[^/]+/bindings/[^/]+/?$}, false]
|
|
1194
|
+
]
|
|
1195
|
+
)
|
|
1196
|
+
transcoder.transcode request_pb
|
|
1197
|
+
end
|
|
1198
|
+
|
|
1199
|
+
##
|
|
1200
|
+
# @private
|
|
1201
|
+
#
|
|
1202
|
+
# GRPC transcoding helper method for the delete_binding REST call
|
|
1203
|
+
#
|
|
1204
|
+
# @param request_pb [::Google::Cloud::AgentRegistry::V1::DeleteBindingRequest]
|
|
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_delete_binding_request request_pb
|
|
1209
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1210
|
+
.with_bindings(
|
|
1211
|
+
uri_method: :delete,
|
|
1212
|
+
uri_template: "/v1/{name}",
|
|
1213
|
+
matches: [
|
|
1214
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/bindings/[^/]+/?$}, false]
|
|
1215
|
+
]
|
|
1216
|
+
)
|
|
1217
|
+
transcoder.transcode request_pb
|
|
1218
|
+
end
|
|
1219
|
+
|
|
1220
|
+
##
|
|
1221
|
+
# @private
|
|
1222
|
+
#
|
|
1223
|
+
# GRPC transcoding helper method for the fetch_available_bindings REST call
|
|
1224
|
+
#
|
|
1225
|
+
# @param request_pb [::Google::Cloud::AgentRegistry::V1::FetchAvailableBindingsRequest]
|
|
1226
|
+
# A request object representing the call parameters. Required.
|
|
1227
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1228
|
+
# Uri, Body, Query string parameters
|
|
1229
|
+
def self.transcode_fetch_available_bindings_request request_pb
|
|
1230
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1231
|
+
.with_bindings(
|
|
1232
|
+
uri_method: :get,
|
|
1233
|
+
uri_template: "/v1/{parent}/bindings:fetchAvailable",
|
|
1234
|
+
matches: [
|
|
1235
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
|
1236
|
+
]
|
|
1237
|
+
)
|
|
1238
|
+
transcoder.transcode request_pb
|
|
1239
|
+
end
|
|
1240
|
+
end
|
|
1241
|
+
end
|
|
1242
|
+
end
|
|
1243
|
+
end
|
|
1244
|
+
end
|
|
1245
|
+
end
|
|
1246
|
+
end
|