google-cloud-network_connectivity-v1beta 0.2.0 → 0.3.2
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/lib/google/cloud/network_connectivity/v1beta/bindings_override.rb +180 -0
- data/lib/google/cloud/network_connectivity/v1beta/data_transfer_service/rest/client.rb +1666 -0
- data/lib/google/cloud/network_connectivity/v1beta/data_transfer_service/rest/operations.rb +927 -0
- data/lib/google/cloud/network_connectivity/v1beta/data_transfer_service/rest/service_stub.rb +817 -0
- data/lib/google/cloud/network_connectivity/v1beta/data_transfer_service/rest.rb +54 -0
- data/lib/google/cloud/network_connectivity/v1beta/data_transfer_service.rb +6 -0
- data/lib/google/cloud/network_connectivity/v1beta/hub_service/rest/client.rb +3353 -0
- data/lib/google/cloud/network_connectivity/v1beta/hub_service/rest/operations.rb +927 -0
- data/lib/google/cloud/network_connectivity/v1beta/hub_service/rest/service_stub.rb +1800 -0
- data/lib/google/cloud/network_connectivity/v1beta/hub_service/rest.rb +56 -0
- data/lib/google/cloud/network_connectivity/v1beta/hub_service.rb +6 -0
- data/lib/google/cloud/network_connectivity/v1beta/policy_based_routing_service/rest/client.rb +817 -0
- data/lib/google/cloud/network_connectivity/v1beta/policy_based_routing_service/rest/operations.rb +927 -0
- data/lib/google/cloud/network_connectivity/v1beta/policy_based_routing_service/rest/service_stub.rb +326 -0
- data/lib/google/cloud/network_connectivity/v1beta/policy_based_routing_service/rest.rb +55 -0
- data/lib/google/cloud/network_connectivity/v1beta/policy_based_routing_service.rb +6 -0
- data/lib/google/cloud/network_connectivity/v1beta/rest.rb +41 -0
- data/lib/google/cloud/network_connectivity/v1beta/transport_manager/client.rb +98 -1
- data/lib/google/cloud/network_connectivity/v1beta/transport_manager/paths.rb +17 -0
- data/lib/google/cloud/network_connectivity/v1beta/transport_manager/rest/client.rb +1287 -0
- data/lib/google/cloud/network_connectivity/v1beta/transport_manager/rest/operations.rb +927 -0
- data/lib/google/cloud/network_connectivity/v1beta/transport_manager/rest/service_stub.rb +632 -0
- data/lib/google/cloud/network_connectivity/v1beta/transport_manager/rest.rb +54 -0
- data/lib/google/cloud/network_connectivity/v1beta/transport_manager.rb +6 -0
- data/lib/google/cloud/network_connectivity/v1beta/version.rb +1 -1
- data/lib/google/cloud/network_connectivity/v1beta.rb +5 -0
- data/lib/google/cloud/networkconnectivity/v1beta/hub_pb.rb +2 -1
- data/lib/google/cloud/networkconnectivity/v1beta/transport_manager_pb.rb +4 -1
- data/lib/google/cloud/networkconnectivity/v1beta/transport_manager_services_pb.rb +2 -0
- data/proto_docs/google/cloud/networkconnectivity/v1beta/hub.rb +65 -0
- data/proto_docs/google/cloud/networkconnectivity/v1beta/transport_manager.rb +70 -10
- data/proto_docs/google/protobuf/timestamp.rb +7 -6
- metadata +19 -2
- data/proto_docs/google/type/expr.rb +0 -75
|
@@ -0,0 +1,1800 @@
|
|
|
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/networkconnectivity/v1beta/hub_pb"
|
|
20
|
+
|
|
21
|
+
module Google
|
|
22
|
+
module Cloud
|
|
23
|
+
module NetworkConnectivity
|
|
24
|
+
module V1beta
|
|
25
|
+
module HubService
|
|
26
|
+
module Rest
|
|
27
|
+
##
|
|
28
|
+
# REST service stub for the HubService 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_hubs REST call
|
|
78
|
+
#
|
|
79
|
+
# @param request_pb [::Google::Cloud::NetworkConnectivity::V1beta::ListHubsRequest]
|
|
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::NetworkConnectivity::V1beta::ListHubsResponse]
|
|
86
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
87
|
+
#
|
|
88
|
+
# @return [::Google::Cloud::NetworkConnectivity::V1beta::ListHubsResponse]
|
|
89
|
+
# A result object deserialized from the server's reply
|
|
90
|
+
def list_hubs 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_hubs_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_hubs",
|
|
106
|
+
options: options
|
|
107
|
+
)
|
|
108
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
109
|
+
result = ::Google::Cloud::NetworkConnectivity::V1beta::ListHubsResponse.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 get_hub REST call
|
|
118
|
+
#
|
|
119
|
+
# @param request_pb [::Google::Cloud::NetworkConnectivity::V1beta::GetHubRequest]
|
|
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::NetworkConnectivity::V1beta::Hub]
|
|
126
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
127
|
+
#
|
|
128
|
+
# @return [::Google::Cloud::NetworkConnectivity::V1beta::Hub]
|
|
129
|
+
# A result object deserialized from the server's reply
|
|
130
|
+
def get_hub 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_get_hub_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: "get_hub",
|
|
146
|
+
options: options
|
|
147
|
+
)
|
|
148
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
149
|
+
result = ::Google::Cloud::NetworkConnectivity::V1beta::Hub.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 create_hub REST call
|
|
158
|
+
#
|
|
159
|
+
# @param request_pb [::Google::Cloud::NetworkConnectivity::V1beta::CreateHubRequest]
|
|
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::Longrunning::Operation]
|
|
166
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
167
|
+
#
|
|
168
|
+
# @return [::Google::Longrunning::Operation]
|
|
169
|
+
# A result object deserialized from the server's reply
|
|
170
|
+
def create_hub 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_create_hub_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: "create_hub",
|
|
186
|
+
options: options
|
|
187
|
+
)
|
|
188
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
189
|
+
result = ::Google::Longrunning::Operation.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 update_hub REST call
|
|
198
|
+
#
|
|
199
|
+
# @param request_pb [::Google::Cloud::NetworkConnectivity::V1beta::UpdateHubRequest]
|
|
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::Longrunning::Operation]
|
|
206
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
207
|
+
#
|
|
208
|
+
# @return [::Google::Longrunning::Operation]
|
|
209
|
+
# A result object deserialized from the server's reply
|
|
210
|
+
def update_hub 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_update_hub_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: "update_hub",
|
|
226
|
+
options: options
|
|
227
|
+
)
|
|
228
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
229
|
+
result = ::Google::Longrunning::Operation.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 delete_hub REST call
|
|
238
|
+
#
|
|
239
|
+
# @param request_pb [::Google::Cloud::NetworkConnectivity::V1beta::DeleteHubRequest]
|
|
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::Longrunning::Operation]
|
|
246
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
247
|
+
#
|
|
248
|
+
# @return [::Google::Longrunning::Operation]
|
|
249
|
+
# A result object deserialized from the server's reply
|
|
250
|
+
def delete_hub 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_delete_hub_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: "delete_hub",
|
|
266
|
+
options: options
|
|
267
|
+
)
|
|
268
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
269
|
+
result = ::Google::Longrunning::Operation.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_hub_spokes REST call
|
|
278
|
+
#
|
|
279
|
+
# @param request_pb [::Google::Cloud::NetworkConnectivity::V1beta::ListHubSpokesRequest]
|
|
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::NetworkConnectivity::V1beta::ListHubSpokesResponse]
|
|
286
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
287
|
+
#
|
|
288
|
+
# @return [::Google::Cloud::NetworkConnectivity::V1beta::ListHubSpokesResponse]
|
|
289
|
+
# A result object deserialized from the server's reply
|
|
290
|
+
def list_hub_spokes 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_hub_spokes_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_hub_spokes",
|
|
306
|
+
options: options
|
|
307
|
+
)
|
|
308
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
309
|
+
result = ::Google::Cloud::NetworkConnectivity::V1beta::ListHubSpokesResponse.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 query_hub_status REST call
|
|
318
|
+
#
|
|
319
|
+
# @param request_pb [::Google::Cloud::NetworkConnectivity::V1beta::QueryHubStatusRequest]
|
|
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::NetworkConnectivity::V1beta::QueryHubStatusResponse]
|
|
326
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
327
|
+
#
|
|
328
|
+
# @return [::Google::Cloud::NetworkConnectivity::V1beta::QueryHubStatusResponse]
|
|
329
|
+
# A result object deserialized from the server's reply
|
|
330
|
+
def query_hub_status 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_query_hub_status_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: "query_hub_status",
|
|
346
|
+
options: options
|
|
347
|
+
)
|
|
348
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
349
|
+
result = ::Google::Cloud::NetworkConnectivity::V1beta::QueryHubStatusResponse.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 list_spokes REST call
|
|
358
|
+
#
|
|
359
|
+
# @param request_pb [::Google::Cloud::NetworkConnectivity::V1beta::ListSpokesRequest]
|
|
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::NetworkConnectivity::V1beta::ListSpokesResponse]
|
|
366
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
367
|
+
#
|
|
368
|
+
# @return [::Google::Cloud::NetworkConnectivity::V1beta::ListSpokesResponse]
|
|
369
|
+
# A result object deserialized from the server's reply
|
|
370
|
+
def list_spokes 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_list_spokes_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: "list_spokes",
|
|
386
|
+
options: options
|
|
387
|
+
)
|
|
388
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
389
|
+
result = ::Google::Cloud::NetworkConnectivity::V1beta::ListSpokesResponse.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 get_spoke REST call
|
|
398
|
+
#
|
|
399
|
+
# @param request_pb [::Google::Cloud::NetworkConnectivity::V1beta::GetSpokeRequest]
|
|
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::NetworkConnectivity::V1beta::Spoke]
|
|
406
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
407
|
+
#
|
|
408
|
+
# @return [::Google::Cloud::NetworkConnectivity::V1beta::Spoke]
|
|
409
|
+
# A result object deserialized from the server's reply
|
|
410
|
+
def get_spoke 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_get_spoke_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: "get_spoke",
|
|
426
|
+
options: options
|
|
427
|
+
)
|
|
428
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
429
|
+
result = ::Google::Cloud::NetworkConnectivity::V1beta::Spoke.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 create_spoke REST call
|
|
438
|
+
#
|
|
439
|
+
# @param request_pb [::Google::Cloud::NetworkConnectivity::V1beta::CreateSpokeRequest]
|
|
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::Longrunning::Operation]
|
|
446
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
447
|
+
#
|
|
448
|
+
# @return [::Google::Longrunning::Operation]
|
|
449
|
+
# A result object deserialized from the server's reply
|
|
450
|
+
def create_spoke 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_create_spoke_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: "create_spoke",
|
|
466
|
+
options: options
|
|
467
|
+
)
|
|
468
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
469
|
+
result = ::Google::Longrunning::Operation.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 update_spoke REST call
|
|
478
|
+
#
|
|
479
|
+
# @param request_pb [::Google::Cloud::NetworkConnectivity::V1beta::UpdateSpokeRequest]
|
|
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 update_spoke 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_update_spoke_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: "update_spoke",
|
|
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 reject_hub_spoke REST call
|
|
518
|
+
#
|
|
519
|
+
# @param request_pb [::Google::Cloud::NetworkConnectivity::V1beta::RejectHubSpokeRequest]
|
|
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 reject_hub_spoke 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_reject_hub_spoke_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: "reject_hub_spoke",
|
|
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 accept_hub_spoke REST call
|
|
558
|
+
#
|
|
559
|
+
# @param request_pb [::Google::Cloud::NetworkConnectivity::V1beta::AcceptHubSpokeRequest]
|
|
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 accept_hub_spoke 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_accept_hub_spoke_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: "accept_hub_spoke",
|
|
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 accept_spoke_update REST call
|
|
598
|
+
#
|
|
599
|
+
# @param request_pb [::Google::Cloud::NetworkConnectivity::V1beta::AcceptSpokeUpdateRequest]
|
|
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::Longrunning::Operation]
|
|
606
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
607
|
+
#
|
|
608
|
+
# @return [::Google::Longrunning::Operation]
|
|
609
|
+
# A result object deserialized from the server's reply
|
|
610
|
+
def accept_spoke_update 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_accept_spoke_update_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: "accept_spoke_update",
|
|
626
|
+
options: options
|
|
627
|
+
)
|
|
628
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
629
|
+
result = ::Google::Longrunning::Operation.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 reject_spoke_update REST call
|
|
638
|
+
#
|
|
639
|
+
# @param request_pb [::Google::Cloud::NetworkConnectivity::V1beta::RejectSpokeUpdateRequest]
|
|
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::Longrunning::Operation]
|
|
646
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
647
|
+
#
|
|
648
|
+
# @return [::Google::Longrunning::Operation]
|
|
649
|
+
# A result object deserialized from the server's reply
|
|
650
|
+
def reject_spoke_update 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_reject_spoke_update_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: "reject_spoke_update",
|
|
666
|
+
options: options
|
|
667
|
+
)
|
|
668
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
669
|
+
result = ::Google::Longrunning::Operation.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 delete_spoke REST call
|
|
678
|
+
#
|
|
679
|
+
# @param request_pb [::Google::Cloud::NetworkConnectivity::V1beta::DeleteSpokeRequest]
|
|
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 delete_spoke 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_delete_spoke_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: "delete_spoke",
|
|
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 get_route_table REST call
|
|
718
|
+
#
|
|
719
|
+
# @param request_pb [::Google::Cloud::NetworkConnectivity::V1beta::GetRouteTableRequest]
|
|
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::Cloud::NetworkConnectivity::V1beta::RouteTable]
|
|
726
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
727
|
+
#
|
|
728
|
+
# @return [::Google::Cloud::NetworkConnectivity::V1beta::RouteTable]
|
|
729
|
+
# A result object deserialized from the server's reply
|
|
730
|
+
def get_route_table 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_get_route_table_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: "get_route_table",
|
|
746
|
+
options: options
|
|
747
|
+
)
|
|
748
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
749
|
+
result = ::Google::Cloud::NetworkConnectivity::V1beta::RouteTable.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 get_route REST call
|
|
758
|
+
#
|
|
759
|
+
# @param request_pb [::Google::Cloud::NetworkConnectivity::V1beta::GetRouteRequest]
|
|
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::Cloud::NetworkConnectivity::V1beta::Route]
|
|
766
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
767
|
+
#
|
|
768
|
+
# @return [::Google::Cloud::NetworkConnectivity::V1beta::Route]
|
|
769
|
+
# A result object deserialized from the server's reply
|
|
770
|
+
def get_route 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_get_route_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: "get_route",
|
|
786
|
+
options: options
|
|
787
|
+
)
|
|
788
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
789
|
+
result = ::Google::Cloud::NetworkConnectivity::V1beta::Route.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 list_routes REST call
|
|
798
|
+
#
|
|
799
|
+
# @param request_pb [::Google::Cloud::NetworkConnectivity::V1beta::ListRoutesRequest]
|
|
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::NetworkConnectivity::V1beta::ListRoutesResponse]
|
|
806
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
807
|
+
#
|
|
808
|
+
# @return [::Google::Cloud::NetworkConnectivity::V1beta::ListRoutesResponse]
|
|
809
|
+
# A result object deserialized from the server's reply
|
|
810
|
+
def list_routes 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_list_routes_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: "list_routes",
|
|
826
|
+
options: options
|
|
827
|
+
)
|
|
828
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
829
|
+
result = ::Google::Cloud::NetworkConnectivity::V1beta::ListRoutesResponse.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
|
+
# Baseline implementation for the list_route_tables REST call
|
|
838
|
+
#
|
|
839
|
+
# @param request_pb [::Google::Cloud::NetworkConnectivity::V1beta::ListRouteTablesRequest]
|
|
840
|
+
# A request object representing the call parameters. Required.
|
|
841
|
+
# @param options [::Gapic::CallOptions]
|
|
842
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
843
|
+
#
|
|
844
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
845
|
+
# @yieldparam result [::Google::Cloud::NetworkConnectivity::V1beta::ListRouteTablesResponse]
|
|
846
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
847
|
+
#
|
|
848
|
+
# @return [::Google::Cloud::NetworkConnectivity::V1beta::ListRouteTablesResponse]
|
|
849
|
+
# A result object deserialized from the server's reply
|
|
850
|
+
def list_route_tables request_pb, options = nil
|
|
851
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
852
|
+
|
|
853
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_route_tables_request request_pb
|
|
854
|
+
query_string_params = if query_string_params.any?
|
|
855
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
856
|
+
else
|
|
857
|
+
{}
|
|
858
|
+
end
|
|
859
|
+
|
|
860
|
+
response = @client_stub.make_http_request(
|
|
861
|
+
verb,
|
|
862
|
+
uri: uri,
|
|
863
|
+
body: body || "",
|
|
864
|
+
params: query_string_params,
|
|
865
|
+
method_name: "list_route_tables",
|
|
866
|
+
options: options
|
|
867
|
+
)
|
|
868
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
869
|
+
result = ::Google::Cloud::NetworkConnectivity::V1beta::ListRouteTablesResponse.decode_json response.body, ignore_unknown_fields: true
|
|
870
|
+
catch :response do
|
|
871
|
+
yield result, operation if block_given?
|
|
872
|
+
result
|
|
873
|
+
end
|
|
874
|
+
end
|
|
875
|
+
|
|
876
|
+
##
|
|
877
|
+
# Baseline implementation for the get_group REST call
|
|
878
|
+
#
|
|
879
|
+
# @param request_pb [::Google::Cloud::NetworkConnectivity::V1beta::GetGroupRequest]
|
|
880
|
+
# A request object representing the call parameters. Required.
|
|
881
|
+
# @param options [::Gapic::CallOptions]
|
|
882
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
883
|
+
#
|
|
884
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
885
|
+
# @yieldparam result [::Google::Cloud::NetworkConnectivity::V1beta::Group]
|
|
886
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
887
|
+
#
|
|
888
|
+
# @return [::Google::Cloud::NetworkConnectivity::V1beta::Group]
|
|
889
|
+
# A result object deserialized from the server's reply
|
|
890
|
+
def get_group request_pb, options = nil
|
|
891
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
892
|
+
|
|
893
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_group_request request_pb
|
|
894
|
+
query_string_params = if query_string_params.any?
|
|
895
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
896
|
+
else
|
|
897
|
+
{}
|
|
898
|
+
end
|
|
899
|
+
|
|
900
|
+
response = @client_stub.make_http_request(
|
|
901
|
+
verb,
|
|
902
|
+
uri: uri,
|
|
903
|
+
body: body || "",
|
|
904
|
+
params: query_string_params,
|
|
905
|
+
method_name: "get_group",
|
|
906
|
+
options: options
|
|
907
|
+
)
|
|
908
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
909
|
+
result = ::Google::Cloud::NetworkConnectivity::V1beta::Group.decode_json response.body, ignore_unknown_fields: true
|
|
910
|
+
catch :response do
|
|
911
|
+
yield result, operation if block_given?
|
|
912
|
+
result
|
|
913
|
+
end
|
|
914
|
+
end
|
|
915
|
+
|
|
916
|
+
##
|
|
917
|
+
# Baseline implementation for the list_groups REST call
|
|
918
|
+
#
|
|
919
|
+
# @param request_pb [::Google::Cloud::NetworkConnectivity::V1beta::ListGroupsRequest]
|
|
920
|
+
# A request object representing the call parameters. Required.
|
|
921
|
+
# @param options [::Gapic::CallOptions]
|
|
922
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
923
|
+
#
|
|
924
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
925
|
+
# @yieldparam result [::Google::Cloud::NetworkConnectivity::V1beta::ListGroupsResponse]
|
|
926
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
927
|
+
#
|
|
928
|
+
# @return [::Google::Cloud::NetworkConnectivity::V1beta::ListGroupsResponse]
|
|
929
|
+
# A result object deserialized from the server's reply
|
|
930
|
+
def list_groups request_pb, options = nil
|
|
931
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
932
|
+
|
|
933
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_groups_request request_pb
|
|
934
|
+
query_string_params = if query_string_params.any?
|
|
935
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
936
|
+
else
|
|
937
|
+
{}
|
|
938
|
+
end
|
|
939
|
+
|
|
940
|
+
response = @client_stub.make_http_request(
|
|
941
|
+
verb,
|
|
942
|
+
uri: uri,
|
|
943
|
+
body: body || "",
|
|
944
|
+
params: query_string_params,
|
|
945
|
+
method_name: "list_groups",
|
|
946
|
+
options: options
|
|
947
|
+
)
|
|
948
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
949
|
+
result = ::Google::Cloud::NetworkConnectivity::V1beta::ListGroupsResponse.decode_json response.body, ignore_unknown_fields: true
|
|
950
|
+
catch :response do
|
|
951
|
+
yield result, operation if block_given?
|
|
952
|
+
result
|
|
953
|
+
end
|
|
954
|
+
end
|
|
955
|
+
|
|
956
|
+
##
|
|
957
|
+
# Baseline implementation for the update_group REST call
|
|
958
|
+
#
|
|
959
|
+
# @param request_pb [::Google::Cloud::NetworkConnectivity::V1beta::UpdateGroupRequest]
|
|
960
|
+
# A request object representing the call parameters. Required.
|
|
961
|
+
# @param options [::Gapic::CallOptions]
|
|
962
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
963
|
+
#
|
|
964
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
965
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
|
966
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
967
|
+
#
|
|
968
|
+
# @return [::Google::Longrunning::Operation]
|
|
969
|
+
# A result object deserialized from the server's reply
|
|
970
|
+
def update_group request_pb, options = nil
|
|
971
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
972
|
+
|
|
973
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_update_group_request request_pb
|
|
974
|
+
query_string_params = if query_string_params.any?
|
|
975
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
976
|
+
else
|
|
977
|
+
{}
|
|
978
|
+
end
|
|
979
|
+
|
|
980
|
+
response = @client_stub.make_http_request(
|
|
981
|
+
verb,
|
|
982
|
+
uri: uri,
|
|
983
|
+
body: body || "",
|
|
984
|
+
params: query_string_params,
|
|
985
|
+
method_name: "update_group",
|
|
986
|
+
options: options
|
|
987
|
+
)
|
|
988
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
989
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
|
990
|
+
catch :response do
|
|
991
|
+
yield result, operation if block_given?
|
|
992
|
+
result
|
|
993
|
+
end
|
|
994
|
+
end
|
|
995
|
+
|
|
996
|
+
##
|
|
997
|
+
# Baseline implementation for the create_gateway_advertised_route REST call
|
|
998
|
+
#
|
|
999
|
+
# @param request_pb [::Google::Cloud::NetworkConnectivity::V1beta::CreateGatewayAdvertisedRouteRequest]
|
|
1000
|
+
# A request object representing the call parameters. Required.
|
|
1001
|
+
# @param options [::Gapic::CallOptions]
|
|
1002
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1003
|
+
#
|
|
1004
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1005
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
|
1006
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1007
|
+
#
|
|
1008
|
+
# @return [::Google::Longrunning::Operation]
|
|
1009
|
+
# A result object deserialized from the server's reply
|
|
1010
|
+
def create_gateway_advertised_route request_pb, options = nil
|
|
1011
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
1012
|
+
|
|
1013
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_create_gateway_advertised_route_request request_pb
|
|
1014
|
+
query_string_params = if query_string_params.any?
|
|
1015
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
1016
|
+
else
|
|
1017
|
+
{}
|
|
1018
|
+
end
|
|
1019
|
+
|
|
1020
|
+
response = @client_stub.make_http_request(
|
|
1021
|
+
verb,
|
|
1022
|
+
uri: uri,
|
|
1023
|
+
body: body || "",
|
|
1024
|
+
params: query_string_params,
|
|
1025
|
+
method_name: "create_gateway_advertised_route",
|
|
1026
|
+
options: options
|
|
1027
|
+
)
|
|
1028
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
1029
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
|
1030
|
+
catch :response do
|
|
1031
|
+
yield result, operation if block_given?
|
|
1032
|
+
result
|
|
1033
|
+
end
|
|
1034
|
+
end
|
|
1035
|
+
|
|
1036
|
+
##
|
|
1037
|
+
# Baseline implementation for the get_gateway_advertised_route REST call
|
|
1038
|
+
#
|
|
1039
|
+
# @param request_pb [::Google::Cloud::NetworkConnectivity::V1beta::GetGatewayAdvertisedRouteRequest]
|
|
1040
|
+
# A request object representing the call parameters. Required.
|
|
1041
|
+
# @param options [::Gapic::CallOptions]
|
|
1042
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1043
|
+
#
|
|
1044
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1045
|
+
# @yieldparam result [::Google::Cloud::NetworkConnectivity::V1beta::GatewayAdvertisedRoute]
|
|
1046
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1047
|
+
#
|
|
1048
|
+
# @return [::Google::Cloud::NetworkConnectivity::V1beta::GatewayAdvertisedRoute]
|
|
1049
|
+
# A result object deserialized from the server's reply
|
|
1050
|
+
def get_gateway_advertised_route request_pb, options = nil
|
|
1051
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
1052
|
+
|
|
1053
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_gateway_advertised_route_request request_pb
|
|
1054
|
+
query_string_params = if query_string_params.any?
|
|
1055
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
1056
|
+
else
|
|
1057
|
+
{}
|
|
1058
|
+
end
|
|
1059
|
+
|
|
1060
|
+
response = @client_stub.make_http_request(
|
|
1061
|
+
verb,
|
|
1062
|
+
uri: uri,
|
|
1063
|
+
body: body || "",
|
|
1064
|
+
params: query_string_params,
|
|
1065
|
+
method_name: "get_gateway_advertised_route",
|
|
1066
|
+
options: options
|
|
1067
|
+
)
|
|
1068
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
1069
|
+
result = ::Google::Cloud::NetworkConnectivity::V1beta::GatewayAdvertisedRoute.decode_json response.body, ignore_unknown_fields: true
|
|
1070
|
+
catch :response do
|
|
1071
|
+
yield result, operation if block_given?
|
|
1072
|
+
result
|
|
1073
|
+
end
|
|
1074
|
+
end
|
|
1075
|
+
|
|
1076
|
+
##
|
|
1077
|
+
# Baseline implementation for the list_gateway_advertised_routes REST call
|
|
1078
|
+
#
|
|
1079
|
+
# @param request_pb [::Google::Cloud::NetworkConnectivity::V1beta::ListGatewayAdvertisedRoutesRequest]
|
|
1080
|
+
# A request object representing the call parameters. Required.
|
|
1081
|
+
# @param options [::Gapic::CallOptions]
|
|
1082
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1083
|
+
#
|
|
1084
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1085
|
+
# @yieldparam result [::Google::Cloud::NetworkConnectivity::V1beta::ListGatewayAdvertisedRoutesResponse]
|
|
1086
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1087
|
+
#
|
|
1088
|
+
# @return [::Google::Cloud::NetworkConnectivity::V1beta::ListGatewayAdvertisedRoutesResponse]
|
|
1089
|
+
# A result object deserialized from the server's reply
|
|
1090
|
+
def list_gateway_advertised_routes request_pb, options = nil
|
|
1091
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
1092
|
+
|
|
1093
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_gateway_advertised_routes_request request_pb
|
|
1094
|
+
query_string_params = if query_string_params.any?
|
|
1095
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
1096
|
+
else
|
|
1097
|
+
{}
|
|
1098
|
+
end
|
|
1099
|
+
|
|
1100
|
+
response = @client_stub.make_http_request(
|
|
1101
|
+
verb,
|
|
1102
|
+
uri: uri,
|
|
1103
|
+
body: body || "",
|
|
1104
|
+
params: query_string_params,
|
|
1105
|
+
method_name: "list_gateway_advertised_routes",
|
|
1106
|
+
options: options
|
|
1107
|
+
)
|
|
1108
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
1109
|
+
result = ::Google::Cloud::NetworkConnectivity::V1beta::ListGatewayAdvertisedRoutesResponse.decode_json response.body, ignore_unknown_fields: true
|
|
1110
|
+
catch :response do
|
|
1111
|
+
yield result, operation if block_given?
|
|
1112
|
+
result
|
|
1113
|
+
end
|
|
1114
|
+
end
|
|
1115
|
+
|
|
1116
|
+
##
|
|
1117
|
+
# Baseline implementation for the update_gateway_advertised_route REST call
|
|
1118
|
+
#
|
|
1119
|
+
# @param request_pb [::Google::Cloud::NetworkConnectivity::V1beta::UpdateGatewayAdvertisedRouteRequest]
|
|
1120
|
+
# A request object representing the call parameters. Required.
|
|
1121
|
+
# @param options [::Gapic::CallOptions]
|
|
1122
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1123
|
+
#
|
|
1124
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1125
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
|
1126
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1127
|
+
#
|
|
1128
|
+
# @return [::Google::Longrunning::Operation]
|
|
1129
|
+
# A result object deserialized from the server's reply
|
|
1130
|
+
def update_gateway_advertised_route request_pb, options = nil
|
|
1131
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
1132
|
+
|
|
1133
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_update_gateway_advertised_route_request request_pb
|
|
1134
|
+
query_string_params = if query_string_params.any?
|
|
1135
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
1136
|
+
else
|
|
1137
|
+
{}
|
|
1138
|
+
end
|
|
1139
|
+
|
|
1140
|
+
response = @client_stub.make_http_request(
|
|
1141
|
+
verb,
|
|
1142
|
+
uri: uri,
|
|
1143
|
+
body: body || "",
|
|
1144
|
+
params: query_string_params,
|
|
1145
|
+
method_name: "update_gateway_advertised_route",
|
|
1146
|
+
options: options
|
|
1147
|
+
)
|
|
1148
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
1149
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
|
1150
|
+
catch :response do
|
|
1151
|
+
yield result, operation if block_given?
|
|
1152
|
+
result
|
|
1153
|
+
end
|
|
1154
|
+
end
|
|
1155
|
+
|
|
1156
|
+
##
|
|
1157
|
+
# Baseline implementation for the delete_gateway_advertised_route REST call
|
|
1158
|
+
#
|
|
1159
|
+
# @param request_pb [::Google::Cloud::NetworkConnectivity::V1beta::DeleteGatewayAdvertisedRouteRequest]
|
|
1160
|
+
# A request object representing the call parameters. Required.
|
|
1161
|
+
# @param options [::Gapic::CallOptions]
|
|
1162
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1163
|
+
#
|
|
1164
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1165
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
|
1166
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1167
|
+
#
|
|
1168
|
+
# @return [::Google::Longrunning::Operation]
|
|
1169
|
+
# A result object deserialized from the server's reply
|
|
1170
|
+
def delete_gateway_advertised_route request_pb, options = nil
|
|
1171
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
1172
|
+
|
|
1173
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_gateway_advertised_route_request request_pb
|
|
1174
|
+
query_string_params = if query_string_params.any?
|
|
1175
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
1176
|
+
else
|
|
1177
|
+
{}
|
|
1178
|
+
end
|
|
1179
|
+
|
|
1180
|
+
response = @client_stub.make_http_request(
|
|
1181
|
+
verb,
|
|
1182
|
+
uri: uri,
|
|
1183
|
+
body: body || "",
|
|
1184
|
+
params: query_string_params,
|
|
1185
|
+
method_name: "delete_gateway_advertised_route",
|
|
1186
|
+
options: options
|
|
1187
|
+
)
|
|
1188
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
1189
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
|
1190
|
+
catch :response do
|
|
1191
|
+
yield result, operation if block_given?
|
|
1192
|
+
result
|
|
1193
|
+
end
|
|
1194
|
+
end
|
|
1195
|
+
|
|
1196
|
+
##
|
|
1197
|
+
# @private
|
|
1198
|
+
#
|
|
1199
|
+
# GRPC transcoding helper method for the list_hubs REST call
|
|
1200
|
+
#
|
|
1201
|
+
# @param request_pb [::Google::Cloud::NetworkConnectivity::V1beta::ListHubsRequest]
|
|
1202
|
+
# A request object representing the call parameters. Required.
|
|
1203
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1204
|
+
# Uri, Body, Query string parameters
|
|
1205
|
+
def self.transcode_list_hubs_request request_pb
|
|
1206
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1207
|
+
.with_bindings(
|
|
1208
|
+
uri_method: :get,
|
|
1209
|
+
uri_template: "/v1beta/{parent}/hubs",
|
|
1210
|
+
matches: [
|
|
1211
|
+
["parent", %r{^projects/[^/]+/locations/global/?$}, false]
|
|
1212
|
+
]
|
|
1213
|
+
)
|
|
1214
|
+
transcoder.transcode request_pb
|
|
1215
|
+
end
|
|
1216
|
+
|
|
1217
|
+
##
|
|
1218
|
+
# @private
|
|
1219
|
+
#
|
|
1220
|
+
# GRPC transcoding helper method for the get_hub REST call
|
|
1221
|
+
#
|
|
1222
|
+
# @param request_pb [::Google::Cloud::NetworkConnectivity::V1beta::GetHubRequest]
|
|
1223
|
+
# A request object representing the call parameters. Required.
|
|
1224
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1225
|
+
# Uri, Body, Query string parameters
|
|
1226
|
+
def self.transcode_get_hub_request request_pb
|
|
1227
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1228
|
+
.with_bindings(
|
|
1229
|
+
uri_method: :get,
|
|
1230
|
+
uri_template: "/v1beta/{name}",
|
|
1231
|
+
matches: [
|
|
1232
|
+
["name", %r{^projects/[^/]+/locations/global/hubs/[^/]+/?$}, false]
|
|
1233
|
+
]
|
|
1234
|
+
)
|
|
1235
|
+
transcoder.transcode request_pb
|
|
1236
|
+
end
|
|
1237
|
+
|
|
1238
|
+
##
|
|
1239
|
+
# @private
|
|
1240
|
+
#
|
|
1241
|
+
# GRPC transcoding helper method for the create_hub REST call
|
|
1242
|
+
#
|
|
1243
|
+
# @param request_pb [::Google::Cloud::NetworkConnectivity::V1beta::CreateHubRequest]
|
|
1244
|
+
# A request object representing the call parameters. Required.
|
|
1245
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1246
|
+
# Uri, Body, Query string parameters
|
|
1247
|
+
def self.transcode_create_hub_request request_pb
|
|
1248
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1249
|
+
.with_bindings(
|
|
1250
|
+
uri_method: :post,
|
|
1251
|
+
uri_template: "/v1beta/{parent}/hubs",
|
|
1252
|
+
body: "hub",
|
|
1253
|
+
matches: [
|
|
1254
|
+
["parent", %r{^projects/[^/]+/locations/global/?$}, false]
|
|
1255
|
+
]
|
|
1256
|
+
)
|
|
1257
|
+
transcoder.transcode request_pb
|
|
1258
|
+
end
|
|
1259
|
+
|
|
1260
|
+
##
|
|
1261
|
+
# @private
|
|
1262
|
+
#
|
|
1263
|
+
# GRPC transcoding helper method for the update_hub REST call
|
|
1264
|
+
#
|
|
1265
|
+
# @param request_pb [::Google::Cloud::NetworkConnectivity::V1beta::UpdateHubRequest]
|
|
1266
|
+
# A request object representing the call parameters. Required.
|
|
1267
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1268
|
+
# Uri, Body, Query string parameters
|
|
1269
|
+
def self.transcode_update_hub_request request_pb
|
|
1270
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1271
|
+
.with_bindings(
|
|
1272
|
+
uri_method: :patch,
|
|
1273
|
+
uri_template: "/v1beta/{hub.name}",
|
|
1274
|
+
body: "hub",
|
|
1275
|
+
matches: [
|
|
1276
|
+
["hub.name", %r{^projects/[^/]+/locations/global/hubs/[^/]+/?$}, false]
|
|
1277
|
+
]
|
|
1278
|
+
)
|
|
1279
|
+
transcoder.transcode request_pb
|
|
1280
|
+
end
|
|
1281
|
+
|
|
1282
|
+
##
|
|
1283
|
+
# @private
|
|
1284
|
+
#
|
|
1285
|
+
# GRPC transcoding helper method for the delete_hub REST call
|
|
1286
|
+
#
|
|
1287
|
+
# @param request_pb [::Google::Cloud::NetworkConnectivity::V1beta::DeleteHubRequest]
|
|
1288
|
+
# A request object representing the call parameters. Required.
|
|
1289
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1290
|
+
# Uri, Body, Query string parameters
|
|
1291
|
+
def self.transcode_delete_hub_request request_pb
|
|
1292
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1293
|
+
.with_bindings(
|
|
1294
|
+
uri_method: :delete,
|
|
1295
|
+
uri_template: "/v1beta/{name}",
|
|
1296
|
+
matches: [
|
|
1297
|
+
["name", %r{^projects/[^/]+/locations/global/hubs/[^/]+/?$}, false]
|
|
1298
|
+
]
|
|
1299
|
+
)
|
|
1300
|
+
transcoder.transcode request_pb
|
|
1301
|
+
end
|
|
1302
|
+
|
|
1303
|
+
##
|
|
1304
|
+
# @private
|
|
1305
|
+
#
|
|
1306
|
+
# GRPC transcoding helper method for the list_hub_spokes REST call
|
|
1307
|
+
#
|
|
1308
|
+
# @param request_pb [::Google::Cloud::NetworkConnectivity::V1beta::ListHubSpokesRequest]
|
|
1309
|
+
# A request object representing the call parameters. Required.
|
|
1310
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1311
|
+
# Uri, Body, Query string parameters
|
|
1312
|
+
def self.transcode_list_hub_spokes_request request_pb
|
|
1313
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1314
|
+
.with_bindings(
|
|
1315
|
+
uri_method: :get,
|
|
1316
|
+
uri_template: "/v1beta/{name}:listSpokes",
|
|
1317
|
+
matches: [
|
|
1318
|
+
["name", %r{^projects/[^/]+/locations/global/hubs/[^/]+/?$}, false]
|
|
1319
|
+
]
|
|
1320
|
+
)
|
|
1321
|
+
transcoder.transcode request_pb
|
|
1322
|
+
end
|
|
1323
|
+
|
|
1324
|
+
##
|
|
1325
|
+
# @private
|
|
1326
|
+
#
|
|
1327
|
+
# GRPC transcoding helper method for the query_hub_status REST call
|
|
1328
|
+
#
|
|
1329
|
+
# @param request_pb [::Google::Cloud::NetworkConnectivity::V1beta::QueryHubStatusRequest]
|
|
1330
|
+
# A request object representing the call parameters. Required.
|
|
1331
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1332
|
+
# Uri, Body, Query string parameters
|
|
1333
|
+
def self.transcode_query_hub_status_request request_pb
|
|
1334
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1335
|
+
.with_bindings(
|
|
1336
|
+
uri_method: :get,
|
|
1337
|
+
uri_template: "/v1beta/{name}:queryStatus",
|
|
1338
|
+
matches: [
|
|
1339
|
+
["name", %r{^projects/[^/]+/locations/global/hubs/[^/]+/?$}, false]
|
|
1340
|
+
]
|
|
1341
|
+
)
|
|
1342
|
+
transcoder.transcode request_pb
|
|
1343
|
+
end
|
|
1344
|
+
|
|
1345
|
+
##
|
|
1346
|
+
# @private
|
|
1347
|
+
#
|
|
1348
|
+
# GRPC transcoding helper method for the list_spokes REST call
|
|
1349
|
+
#
|
|
1350
|
+
# @param request_pb [::Google::Cloud::NetworkConnectivity::V1beta::ListSpokesRequest]
|
|
1351
|
+
# A request object representing the call parameters. Required.
|
|
1352
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1353
|
+
# Uri, Body, Query string parameters
|
|
1354
|
+
def self.transcode_list_spokes_request request_pb
|
|
1355
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1356
|
+
.with_bindings(
|
|
1357
|
+
uri_method: :get,
|
|
1358
|
+
uri_template: "/v1beta/{parent}/spokes",
|
|
1359
|
+
matches: [
|
|
1360
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
|
1361
|
+
]
|
|
1362
|
+
)
|
|
1363
|
+
transcoder.transcode request_pb
|
|
1364
|
+
end
|
|
1365
|
+
|
|
1366
|
+
##
|
|
1367
|
+
# @private
|
|
1368
|
+
#
|
|
1369
|
+
# GRPC transcoding helper method for the get_spoke REST call
|
|
1370
|
+
#
|
|
1371
|
+
# @param request_pb [::Google::Cloud::NetworkConnectivity::V1beta::GetSpokeRequest]
|
|
1372
|
+
# A request object representing the call parameters. Required.
|
|
1373
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1374
|
+
# Uri, Body, Query string parameters
|
|
1375
|
+
def self.transcode_get_spoke_request request_pb
|
|
1376
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1377
|
+
.with_bindings(
|
|
1378
|
+
uri_method: :get,
|
|
1379
|
+
uri_template: "/v1beta/{name}",
|
|
1380
|
+
matches: [
|
|
1381
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/spokes/[^/]+/?$}, false]
|
|
1382
|
+
]
|
|
1383
|
+
)
|
|
1384
|
+
transcoder.transcode request_pb
|
|
1385
|
+
end
|
|
1386
|
+
|
|
1387
|
+
##
|
|
1388
|
+
# @private
|
|
1389
|
+
#
|
|
1390
|
+
# GRPC transcoding helper method for the create_spoke REST call
|
|
1391
|
+
#
|
|
1392
|
+
# @param request_pb [::Google::Cloud::NetworkConnectivity::V1beta::CreateSpokeRequest]
|
|
1393
|
+
# A request object representing the call parameters. Required.
|
|
1394
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1395
|
+
# Uri, Body, Query string parameters
|
|
1396
|
+
def self.transcode_create_spoke_request request_pb
|
|
1397
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1398
|
+
.with_bindings(
|
|
1399
|
+
uri_method: :post,
|
|
1400
|
+
uri_template: "/v1beta/{parent}/spokes",
|
|
1401
|
+
body: "spoke",
|
|
1402
|
+
matches: [
|
|
1403
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
|
1404
|
+
]
|
|
1405
|
+
)
|
|
1406
|
+
transcoder.transcode request_pb
|
|
1407
|
+
end
|
|
1408
|
+
|
|
1409
|
+
##
|
|
1410
|
+
# @private
|
|
1411
|
+
#
|
|
1412
|
+
# GRPC transcoding helper method for the update_spoke REST call
|
|
1413
|
+
#
|
|
1414
|
+
# @param request_pb [::Google::Cloud::NetworkConnectivity::V1beta::UpdateSpokeRequest]
|
|
1415
|
+
# A request object representing the call parameters. Required.
|
|
1416
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1417
|
+
# Uri, Body, Query string parameters
|
|
1418
|
+
def self.transcode_update_spoke_request request_pb
|
|
1419
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1420
|
+
.with_bindings(
|
|
1421
|
+
uri_method: :patch,
|
|
1422
|
+
uri_template: "/v1beta/{spoke.name}",
|
|
1423
|
+
body: "spoke",
|
|
1424
|
+
matches: [
|
|
1425
|
+
["spoke.name", %r{^projects/[^/]+/locations/[^/]+/spokes/[^/]+/?$}, false]
|
|
1426
|
+
]
|
|
1427
|
+
)
|
|
1428
|
+
transcoder.transcode request_pb
|
|
1429
|
+
end
|
|
1430
|
+
|
|
1431
|
+
##
|
|
1432
|
+
# @private
|
|
1433
|
+
#
|
|
1434
|
+
# GRPC transcoding helper method for the reject_hub_spoke REST call
|
|
1435
|
+
#
|
|
1436
|
+
# @param request_pb [::Google::Cloud::NetworkConnectivity::V1beta::RejectHubSpokeRequest]
|
|
1437
|
+
# A request object representing the call parameters. Required.
|
|
1438
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1439
|
+
# Uri, Body, Query string parameters
|
|
1440
|
+
def self.transcode_reject_hub_spoke_request request_pb
|
|
1441
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1442
|
+
.with_bindings(
|
|
1443
|
+
uri_method: :post,
|
|
1444
|
+
uri_template: "/v1beta/{name}:rejectSpoke",
|
|
1445
|
+
body: "*",
|
|
1446
|
+
matches: [
|
|
1447
|
+
["name", %r{^projects/[^/]+/locations/global/hubs/[^/]+/?$}, false]
|
|
1448
|
+
]
|
|
1449
|
+
)
|
|
1450
|
+
transcoder.transcode request_pb
|
|
1451
|
+
end
|
|
1452
|
+
|
|
1453
|
+
##
|
|
1454
|
+
# @private
|
|
1455
|
+
#
|
|
1456
|
+
# GRPC transcoding helper method for the accept_hub_spoke REST call
|
|
1457
|
+
#
|
|
1458
|
+
# @param request_pb [::Google::Cloud::NetworkConnectivity::V1beta::AcceptHubSpokeRequest]
|
|
1459
|
+
# A request object representing the call parameters. Required.
|
|
1460
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1461
|
+
# Uri, Body, Query string parameters
|
|
1462
|
+
def self.transcode_accept_hub_spoke_request request_pb
|
|
1463
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1464
|
+
.with_bindings(
|
|
1465
|
+
uri_method: :post,
|
|
1466
|
+
uri_template: "/v1beta/{name}:acceptSpoke",
|
|
1467
|
+
body: "*",
|
|
1468
|
+
matches: [
|
|
1469
|
+
["name", %r{^projects/[^/]+/locations/global/hubs/[^/]+/?$}, false]
|
|
1470
|
+
]
|
|
1471
|
+
)
|
|
1472
|
+
transcoder.transcode request_pb
|
|
1473
|
+
end
|
|
1474
|
+
|
|
1475
|
+
##
|
|
1476
|
+
# @private
|
|
1477
|
+
#
|
|
1478
|
+
# GRPC transcoding helper method for the accept_spoke_update REST call
|
|
1479
|
+
#
|
|
1480
|
+
# @param request_pb [::Google::Cloud::NetworkConnectivity::V1beta::AcceptSpokeUpdateRequest]
|
|
1481
|
+
# A request object representing the call parameters. Required.
|
|
1482
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1483
|
+
# Uri, Body, Query string parameters
|
|
1484
|
+
def self.transcode_accept_spoke_update_request request_pb
|
|
1485
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1486
|
+
.with_bindings(
|
|
1487
|
+
uri_method: :post,
|
|
1488
|
+
uri_template: "/v1beta/{name}:acceptSpokeUpdate",
|
|
1489
|
+
body: "*",
|
|
1490
|
+
matches: [
|
|
1491
|
+
["name", %r{^projects/[^/]+/locations/global/hubs/[^/]+/?$}, false]
|
|
1492
|
+
]
|
|
1493
|
+
)
|
|
1494
|
+
transcoder.transcode request_pb
|
|
1495
|
+
end
|
|
1496
|
+
|
|
1497
|
+
##
|
|
1498
|
+
# @private
|
|
1499
|
+
#
|
|
1500
|
+
# GRPC transcoding helper method for the reject_spoke_update REST call
|
|
1501
|
+
#
|
|
1502
|
+
# @param request_pb [::Google::Cloud::NetworkConnectivity::V1beta::RejectSpokeUpdateRequest]
|
|
1503
|
+
# A request object representing the call parameters. Required.
|
|
1504
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1505
|
+
# Uri, Body, Query string parameters
|
|
1506
|
+
def self.transcode_reject_spoke_update_request request_pb
|
|
1507
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1508
|
+
.with_bindings(
|
|
1509
|
+
uri_method: :post,
|
|
1510
|
+
uri_template: "/v1beta/{name}:rejectSpokeUpdate",
|
|
1511
|
+
body: "*",
|
|
1512
|
+
matches: [
|
|
1513
|
+
["name", %r{^projects/[^/]+/locations/global/hubs/[^/]+/?$}, false]
|
|
1514
|
+
]
|
|
1515
|
+
)
|
|
1516
|
+
transcoder.transcode request_pb
|
|
1517
|
+
end
|
|
1518
|
+
|
|
1519
|
+
##
|
|
1520
|
+
# @private
|
|
1521
|
+
#
|
|
1522
|
+
# GRPC transcoding helper method for the delete_spoke REST call
|
|
1523
|
+
#
|
|
1524
|
+
# @param request_pb [::Google::Cloud::NetworkConnectivity::V1beta::DeleteSpokeRequest]
|
|
1525
|
+
# A request object representing the call parameters. Required.
|
|
1526
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1527
|
+
# Uri, Body, Query string parameters
|
|
1528
|
+
def self.transcode_delete_spoke_request request_pb
|
|
1529
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1530
|
+
.with_bindings(
|
|
1531
|
+
uri_method: :delete,
|
|
1532
|
+
uri_template: "/v1beta/{name}",
|
|
1533
|
+
matches: [
|
|
1534
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/spokes/[^/]+/?$}, false]
|
|
1535
|
+
]
|
|
1536
|
+
)
|
|
1537
|
+
transcoder.transcode request_pb
|
|
1538
|
+
end
|
|
1539
|
+
|
|
1540
|
+
##
|
|
1541
|
+
# @private
|
|
1542
|
+
#
|
|
1543
|
+
# GRPC transcoding helper method for the get_route_table REST call
|
|
1544
|
+
#
|
|
1545
|
+
# @param request_pb [::Google::Cloud::NetworkConnectivity::V1beta::GetRouteTableRequest]
|
|
1546
|
+
# A request object representing the call parameters. Required.
|
|
1547
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1548
|
+
# Uri, Body, Query string parameters
|
|
1549
|
+
def self.transcode_get_route_table_request request_pb
|
|
1550
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1551
|
+
.with_bindings(
|
|
1552
|
+
uri_method: :get,
|
|
1553
|
+
uri_template: "/v1beta/{name}",
|
|
1554
|
+
matches: [
|
|
1555
|
+
["name", %r{^projects/[^/]+/locations/global/hubs/[^/]+/routeTables/[^/]+/?$}, false]
|
|
1556
|
+
]
|
|
1557
|
+
)
|
|
1558
|
+
transcoder.transcode request_pb
|
|
1559
|
+
end
|
|
1560
|
+
|
|
1561
|
+
##
|
|
1562
|
+
# @private
|
|
1563
|
+
#
|
|
1564
|
+
# GRPC transcoding helper method for the get_route REST call
|
|
1565
|
+
#
|
|
1566
|
+
# @param request_pb [::Google::Cloud::NetworkConnectivity::V1beta::GetRouteRequest]
|
|
1567
|
+
# A request object representing the call parameters. Required.
|
|
1568
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1569
|
+
# Uri, Body, Query string parameters
|
|
1570
|
+
def self.transcode_get_route_request request_pb
|
|
1571
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1572
|
+
.with_bindings(
|
|
1573
|
+
uri_method: :get,
|
|
1574
|
+
uri_template: "/v1beta/{name}",
|
|
1575
|
+
matches: [
|
|
1576
|
+
["name", %r{^projects/[^/]+/locations/global/hubs/[^/]+/routeTables/[^/]+/routes/[^/]+/?$}, false]
|
|
1577
|
+
]
|
|
1578
|
+
)
|
|
1579
|
+
transcoder.transcode request_pb
|
|
1580
|
+
end
|
|
1581
|
+
|
|
1582
|
+
##
|
|
1583
|
+
# @private
|
|
1584
|
+
#
|
|
1585
|
+
# GRPC transcoding helper method for the list_routes REST call
|
|
1586
|
+
#
|
|
1587
|
+
# @param request_pb [::Google::Cloud::NetworkConnectivity::V1beta::ListRoutesRequest]
|
|
1588
|
+
# A request object representing the call parameters. Required.
|
|
1589
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1590
|
+
# Uri, Body, Query string parameters
|
|
1591
|
+
def self.transcode_list_routes_request request_pb
|
|
1592
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1593
|
+
.with_bindings(
|
|
1594
|
+
uri_method: :get,
|
|
1595
|
+
uri_template: "/v1beta/{parent}/routes",
|
|
1596
|
+
matches: [
|
|
1597
|
+
["parent", %r{^projects/[^/]+/locations/global/hubs/[^/]+/routeTables/[^/]+/?$}, false]
|
|
1598
|
+
]
|
|
1599
|
+
)
|
|
1600
|
+
transcoder.transcode request_pb
|
|
1601
|
+
end
|
|
1602
|
+
|
|
1603
|
+
##
|
|
1604
|
+
# @private
|
|
1605
|
+
#
|
|
1606
|
+
# GRPC transcoding helper method for the list_route_tables REST call
|
|
1607
|
+
#
|
|
1608
|
+
# @param request_pb [::Google::Cloud::NetworkConnectivity::V1beta::ListRouteTablesRequest]
|
|
1609
|
+
# A request object representing the call parameters. Required.
|
|
1610
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1611
|
+
# Uri, Body, Query string parameters
|
|
1612
|
+
def self.transcode_list_route_tables_request request_pb
|
|
1613
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1614
|
+
.with_bindings(
|
|
1615
|
+
uri_method: :get,
|
|
1616
|
+
uri_template: "/v1beta/{parent}/routeTables",
|
|
1617
|
+
matches: [
|
|
1618
|
+
["parent", %r{^projects/[^/]+/locations/global/hubs/[^/]+/?$}, false]
|
|
1619
|
+
]
|
|
1620
|
+
)
|
|
1621
|
+
transcoder.transcode request_pb
|
|
1622
|
+
end
|
|
1623
|
+
|
|
1624
|
+
##
|
|
1625
|
+
# @private
|
|
1626
|
+
#
|
|
1627
|
+
# GRPC transcoding helper method for the get_group REST call
|
|
1628
|
+
#
|
|
1629
|
+
# @param request_pb [::Google::Cloud::NetworkConnectivity::V1beta::GetGroupRequest]
|
|
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_get_group_request request_pb
|
|
1634
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1635
|
+
.with_bindings(
|
|
1636
|
+
uri_method: :get,
|
|
1637
|
+
uri_template: "/v1beta/{name}",
|
|
1638
|
+
matches: [
|
|
1639
|
+
["name", %r{^projects/[^/]+/locations/global/hubs/[^/]+/groups/[^/]+/?$}, false]
|
|
1640
|
+
]
|
|
1641
|
+
)
|
|
1642
|
+
transcoder.transcode request_pb
|
|
1643
|
+
end
|
|
1644
|
+
|
|
1645
|
+
##
|
|
1646
|
+
# @private
|
|
1647
|
+
#
|
|
1648
|
+
# GRPC transcoding helper method for the list_groups REST call
|
|
1649
|
+
#
|
|
1650
|
+
# @param request_pb [::Google::Cloud::NetworkConnectivity::V1beta::ListGroupsRequest]
|
|
1651
|
+
# A request object representing the call parameters. Required.
|
|
1652
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1653
|
+
# Uri, Body, Query string parameters
|
|
1654
|
+
def self.transcode_list_groups_request request_pb
|
|
1655
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1656
|
+
.with_bindings(
|
|
1657
|
+
uri_method: :get,
|
|
1658
|
+
uri_template: "/v1beta/{parent}/groups",
|
|
1659
|
+
matches: [
|
|
1660
|
+
["parent", %r{^projects/[^/]+/locations/global/hubs/[^/]+/?$}, false]
|
|
1661
|
+
]
|
|
1662
|
+
)
|
|
1663
|
+
transcoder.transcode request_pb
|
|
1664
|
+
end
|
|
1665
|
+
|
|
1666
|
+
##
|
|
1667
|
+
# @private
|
|
1668
|
+
#
|
|
1669
|
+
# GRPC transcoding helper method for the update_group REST call
|
|
1670
|
+
#
|
|
1671
|
+
# @param request_pb [::Google::Cloud::NetworkConnectivity::V1beta::UpdateGroupRequest]
|
|
1672
|
+
# A request object representing the call parameters. Required.
|
|
1673
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1674
|
+
# Uri, Body, Query string parameters
|
|
1675
|
+
def self.transcode_update_group_request request_pb
|
|
1676
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1677
|
+
.with_bindings(
|
|
1678
|
+
uri_method: :patch,
|
|
1679
|
+
uri_template: "/v1beta/{group.name}",
|
|
1680
|
+
body: "group",
|
|
1681
|
+
matches: [
|
|
1682
|
+
["group.name", %r{^projects/[^/]+/locations/global/hubs/[^/]+/groups/[^/]+/?$}, false]
|
|
1683
|
+
]
|
|
1684
|
+
)
|
|
1685
|
+
transcoder.transcode request_pb
|
|
1686
|
+
end
|
|
1687
|
+
|
|
1688
|
+
##
|
|
1689
|
+
# @private
|
|
1690
|
+
#
|
|
1691
|
+
# GRPC transcoding helper method for the create_gateway_advertised_route REST call
|
|
1692
|
+
#
|
|
1693
|
+
# @param request_pb [::Google::Cloud::NetworkConnectivity::V1beta::CreateGatewayAdvertisedRouteRequest]
|
|
1694
|
+
# A request object representing the call parameters. Required.
|
|
1695
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1696
|
+
# Uri, Body, Query string parameters
|
|
1697
|
+
def self.transcode_create_gateway_advertised_route_request request_pb
|
|
1698
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1699
|
+
.with_bindings(
|
|
1700
|
+
uri_method: :post,
|
|
1701
|
+
uri_template: "/v1beta/{parent}/gatewayAdvertisedRoutes",
|
|
1702
|
+
body: "gateway_advertised_route",
|
|
1703
|
+
matches: [
|
|
1704
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/spokes/[^/]+/?$}, false]
|
|
1705
|
+
]
|
|
1706
|
+
)
|
|
1707
|
+
transcoder.transcode request_pb
|
|
1708
|
+
end
|
|
1709
|
+
|
|
1710
|
+
##
|
|
1711
|
+
# @private
|
|
1712
|
+
#
|
|
1713
|
+
# GRPC transcoding helper method for the get_gateway_advertised_route REST call
|
|
1714
|
+
#
|
|
1715
|
+
# @param request_pb [::Google::Cloud::NetworkConnectivity::V1beta::GetGatewayAdvertisedRouteRequest]
|
|
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_gateway_advertised_route_request request_pb
|
|
1720
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1721
|
+
.with_bindings(
|
|
1722
|
+
uri_method: :get,
|
|
1723
|
+
uri_template: "/v1beta/{name}",
|
|
1724
|
+
matches: [
|
|
1725
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/spokes/[^/]+/gatewayAdvertisedRoutes/[^/]+/?$}, false]
|
|
1726
|
+
]
|
|
1727
|
+
)
|
|
1728
|
+
transcoder.transcode request_pb
|
|
1729
|
+
end
|
|
1730
|
+
|
|
1731
|
+
##
|
|
1732
|
+
# @private
|
|
1733
|
+
#
|
|
1734
|
+
# GRPC transcoding helper method for the list_gateway_advertised_routes REST call
|
|
1735
|
+
#
|
|
1736
|
+
# @param request_pb [::Google::Cloud::NetworkConnectivity::V1beta::ListGatewayAdvertisedRoutesRequest]
|
|
1737
|
+
# A request object representing the call parameters. Required.
|
|
1738
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1739
|
+
# Uri, Body, Query string parameters
|
|
1740
|
+
def self.transcode_list_gateway_advertised_routes_request request_pb
|
|
1741
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1742
|
+
.with_bindings(
|
|
1743
|
+
uri_method: :get,
|
|
1744
|
+
uri_template: "/v1beta/{parent}/gatewayAdvertisedRoutes",
|
|
1745
|
+
matches: [
|
|
1746
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/spokes/[^/]+/?$}, false]
|
|
1747
|
+
]
|
|
1748
|
+
)
|
|
1749
|
+
transcoder.transcode request_pb
|
|
1750
|
+
end
|
|
1751
|
+
|
|
1752
|
+
##
|
|
1753
|
+
# @private
|
|
1754
|
+
#
|
|
1755
|
+
# GRPC transcoding helper method for the update_gateway_advertised_route REST call
|
|
1756
|
+
#
|
|
1757
|
+
# @param request_pb [::Google::Cloud::NetworkConnectivity::V1beta::UpdateGatewayAdvertisedRouteRequest]
|
|
1758
|
+
# A request object representing the call parameters. Required.
|
|
1759
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1760
|
+
# Uri, Body, Query string parameters
|
|
1761
|
+
def self.transcode_update_gateway_advertised_route_request request_pb
|
|
1762
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1763
|
+
.with_bindings(
|
|
1764
|
+
uri_method: :patch,
|
|
1765
|
+
uri_template: "/v1beta/{gateway_advertised_route.name}",
|
|
1766
|
+
body: "gateway_advertised_route",
|
|
1767
|
+
matches: [
|
|
1768
|
+
["gateway_advertised_route.name", %r{^projects/[^/]+/locations/[^/]+/spokes/[^/]+/gatewayAdvertisedRoutes/[^/]+/?$}, false]
|
|
1769
|
+
]
|
|
1770
|
+
)
|
|
1771
|
+
transcoder.transcode request_pb
|
|
1772
|
+
end
|
|
1773
|
+
|
|
1774
|
+
##
|
|
1775
|
+
# @private
|
|
1776
|
+
#
|
|
1777
|
+
# GRPC transcoding helper method for the delete_gateway_advertised_route REST call
|
|
1778
|
+
#
|
|
1779
|
+
# @param request_pb [::Google::Cloud::NetworkConnectivity::V1beta::DeleteGatewayAdvertisedRouteRequest]
|
|
1780
|
+
# A request object representing the call parameters. Required.
|
|
1781
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1782
|
+
# Uri, Body, Query string parameters
|
|
1783
|
+
def self.transcode_delete_gateway_advertised_route_request request_pb
|
|
1784
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1785
|
+
.with_bindings(
|
|
1786
|
+
uri_method: :delete,
|
|
1787
|
+
uri_template: "/v1beta/{name}",
|
|
1788
|
+
matches: [
|
|
1789
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/spokes/[^/]+/gatewayAdvertisedRoutes/[^/]+/?$}, false]
|
|
1790
|
+
]
|
|
1791
|
+
)
|
|
1792
|
+
transcoder.transcode request_pb
|
|
1793
|
+
end
|
|
1794
|
+
end
|
|
1795
|
+
end
|
|
1796
|
+
end
|
|
1797
|
+
end
|
|
1798
|
+
end
|
|
1799
|
+
end
|
|
1800
|
+
end
|