google-cloud-edge_network-v1 0.a → 0.2.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 +144 -8
- data/lib/google/cloud/edge_network/v1/bindings_override.rb +102 -0
- data/lib/google/cloud/edge_network/v1/edge_network/client.rb +3178 -0
- data/lib/google/cloud/edge_network/v1/edge_network/credentials.rb +47 -0
- data/lib/google/cloud/edge_network/v1/edge_network/operations.rb +801 -0
- data/lib/google/cloud/edge_network/v1/edge_network/paths.rb +174 -0
- data/lib/google/cloud/edge_network/v1/edge_network/rest/client.rb +2972 -0
- data/lib/google/cloud/edge_network/v1/edge_network/rest/operations.rb +895 -0
- data/lib/google/cloud/edge_network/v1/edge_network/rest/service_stub.rb +1601 -0
- data/lib/google/cloud/edge_network/v1/edge_network/rest.rb +57 -0
- data/lib/google/cloud/edge_network/v1/edge_network.rb +59 -0
- data/lib/google/cloud/edge_network/v1/rest.rb +38 -0
- data/lib/google/cloud/edge_network/v1/version.rb +7 -2
- data/lib/google/cloud/edge_network/v1.rb +45 -0
- data/lib/google/cloud/edgenetwork/v1/resources_pb.rb +69 -0
- data/lib/google/cloud/edgenetwork/v1/service_pb.rb +92 -0
- data/lib/google/cloud/edgenetwork/v1/service_services_pb.rb +98 -0
- data/lib/google-cloud-edge_network-v1.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/client.rb +395 -0
- data/proto_docs/google/api/field_behavior.rb +85 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/api/resource.rb +222 -0
- data/proto_docs/google/cloud/edgenetwork/v1/resources.rb +637 -0
- data/proto_docs/google/cloud/edgenetwork/v1/service.rb +709 -0
- data/proto_docs/google/longrunning/operations.rb +164 -0
- data/proto_docs/google/protobuf/any.rb +144 -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/timestamp.rb +127 -0
- data/proto_docs/google/rpc/status.rb +48 -0
- metadata +209 -13
@@ -0,0 +1,1601 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2023 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "google/cloud/edgenetwork/v1/service_pb"
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Cloud
|
23
|
+
module EdgeNetwork
|
24
|
+
module V1
|
25
|
+
module EdgeNetwork
|
26
|
+
module Rest
|
27
|
+
##
|
28
|
+
# REST service stub for the EdgeNetwork service.
|
29
|
+
# Service stub contains baseline method implementations
|
30
|
+
# including transcoding, making the REST call, and deserialing the response.
|
31
|
+
#
|
32
|
+
class ServiceStub
|
33
|
+
def initialize endpoint:, endpoint_template:, universe_domain:, credentials:
|
34
|
+
# These require statements are intentionally placed here to initialize
|
35
|
+
# the REST modules only when it's required.
|
36
|
+
require "gapic/rest"
|
37
|
+
|
38
|
+
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint,
|
39
|
+
endpoint_template: endpoint_template,
|
40
|
+
universe_domain: universe_domain,
|
41
|
+
credentials: credentials,
|
42
|
+
numeric_enums: true,
|
43
|
+
raise_faraday_errors: false
|
44
|
+
end
|
45
|
+
|
46
|
+
##
|
47
|
+
# The effective universe domain
|
48
|
+
#
|
49
|
+
# @return [String]
|
50
|
+
#
|
51
|
+
def universe_domain
|
52
|
+
@client_stub.universe_domain
|
53
|
+
end
|
54
|
+
|
55
|
+
##
|
56
|
+
# Baseline implementation for the initialize_zone REST call
|
57
|
+
#
|
58
|
+
# @param request_pb [::Google::Cloud::EdgeNetwork::V1::InitializeZoneRequest]
|
59
|
+
# A request object representing the call parameters. Required.
|
60
|
+
# @param options [::Gapic::CallOptions]
|
61
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
62
|
+
#
|
63
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
64
|
+
# @yieldparam result [::Google::Cloud::EdgeNetwork::V1::InitializeZoneResponse]
|
65
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
66
|
+
#
|
67
|
+
# @return [::Google::Cloud::EdgeNetwork::V1::InitializeZoneResponse]
|
68
|
+
# A result object deserialized from the server's reply
|
69
|
+
def initialize_zone request_pb, options = nil
|
70
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
71
|
+
|
72
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_initialize_zone_request request_pb
|
73
|
+
query_string_params = if query_string_params.any?
|
74
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
75
|
+
else
|
76
|
+
{}
|
77
|
+
end
|
78
|
+
|
79
|
+
response = @client_stub.make_http_request(
|
80
|
+
verb,
|
81
|
+
uri: uri,
|
82
|
+
body: body || "",
|
83
|
+
params: query_string_params,
|
84
|
+
options: options
|
85
|
+
)
|
86
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
87
|
+
result = ::Google::Cloud::EdgeNetwork::V1::InitializeZoneResponse.decode_json response.body, ignore_unknown_fields: true
|
88
|
+
|
89
|
+
yield result, operation if block_given?
|
90
|
+
result
|
91
|
+
end
|
92
|
+
|
93
|
+
##
|
94
|
+
# Baseline implementation for the list_zones REST call
|
95
|
+
#
|
96
|
+
# @param request_pb [::Google::Cloud::EdgeNetwork::V1::ListZonesRequest]
|
97
|
+
# A request object representing the call parameters. Required.
|
98
|
+
# @param options [::Gapic::CallOptions]
|
99
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
100
|
+
#
|
101
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
102
|
+
# @yieldparam result [::Google::Cloud::EdgeNetwork::V1::ListZonesResponse]
|
103
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
104
|
+
#
|
105
|
+
# @return [::Google::Cloud::EdgeNetwork::V1::ListZonesResponse]
|
106
|
+
# A result object deserialized from the server's reply
|
107
|
+
def list_zones request_pb, options = nil
|
108
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
109
|
+
|
110
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_zones_request request_pb
|
111
|
+
query_string_params = if query_string_params.any?
|
112
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
113
|
+
else
|
114
|
+
{}
|
115
|
+
end
|
116
|
+
|
117
|
+
response = @client_stub.make_http_request(
|
118
|
+
verb,
|
119
|
+
uri: uri,
|
120
|
+
body: body || "",
|
121
|
+
params: query_string_params,
|
122
|
+
options: options
|
123
|
+
)
|
124
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
125
|
+
result = ::Google::Cloud::EdgeNetwork::V1::ListZonesResponse.decode_json response.body, ignore_unknown_fields: true
|
126
|
+
|
127
|
+
yield result, operation if block_given?
|
128
|
+
result
|
129
|
+
end
|
130
|
+
|
131
|
+
##
|
132
|
+
# Baseline implementation for the get_zone REST call
|
133
|
+
#
|
134
|
+
# @param request_pb [::Google::Cloud::EdgeNetwork::V1::GetZoneRequest]
|
135
|
+
# A request object representing the call parameters. Required.
|
136
|
+
# @param options [::Gapic::CallOptions]
|
137
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
138
|
+
#
|
139
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
140
|
+
# @yieldparam result [::Google::Cloud::EdgeNetwork::V1::Zone]
|
141
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
142
|
+
#
|
143
|
+
# @return [::Google::Cloud::EdgeNetwork::V1::Zone]
|
144
|
+
# A result object deserialized from the server's reply
|
145
|
+
def get_zone request_pb, options = nil
|
146
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
147
|
+
|
148
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_zone_request request_pb
|
149
|
+
query_string_params = if query_string_params.any?
|
150
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
151
|
+
else
|
152
|
+
{}
|
153
|
+
end
|
154
|
+
|
155
|
+
response = @client_stub.make_http_request(
|
156
|
+
verb,
|
157
|
+
uri: uri,
|
158
|
+
body: body || "",
|
159
|
+
params: query_string_params,
|
160
|
+
options: options
|
161
|
+
)
|
162
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
163
|
+
result = ::Google::Cloud::EdgeNetwork::V1::Zone.decode_json response.body, ignore_unknown_fields: true
|
164
|
+
|
165
|
+
yield result, operation if block_given?
|
166
|
+
result
|
167
|
+
end
|
168
|
+
|
169
|
+
##
|
170
|
+
# Baseline implementation for the list_networks REST call
|
171
|
+
#
|
172
|
+
# @param request_pb [::Google::Cloud::EdgeNetwork::V1::ListNetworksRequest]
|
173
|
+
# A request object representing the call parameters. Required.
|
174
|
+
# @param options [::Gapic::CallOptions]
|
175
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
176
|
+
#
|
177
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
178
|
+
# @yieldparam result [::Google::Cloud::EdgeNetwork::V1::ListNetworksResponse]
|
179
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
180
|
+
#
|
181
|
+
# @return [::Google::Cloud::EdgeNetwork::V1::ListNetworksResponse]
|
182
|
+
# A result object deserialized from the server's reply
|
183
|
+
def list_networks request_pb, options = nil
|
184
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
185
|
+
|
186
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_networks_request request_pb
|
187
|
+
query_string_params = if query_string_params.any?
|
188
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
189
|
+
else
|
190
|
+
{}
|
191
|
+
end
|
192
|
+
|
193
|
+
response = @client_stub.make_http_request(
|
194
|
+
verb,
|
195
|
+
uri: uri,
|
196
|
+
body: body || "",
|
197
|
+
params: query_string_params,
|
198
|
+
options: options
|
199
|
+
)
|
200
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
201
|
+
result = ::Google::Cloud::EdgeNetwork::V1::ListNetworksResponse.decode_json response.body, ignore_unknown_fields: true
|
202
|
+
|
203
|
+
yield result, operation if block_given?
|
204
|
+
result
|
205
|
+
end
|
206
|
+
|
207
|
+
##
|
208
|
+
# Baseline implementation for the get_network REST call
|
209
|
+
#
|
210
|
+
# @param request_pb [::Google::Cloud::EdgeNetwork::V1::GetNetworkRequest]
|
211
|
+
# A request object representing the call parameters. Required.
|
212
|
+
# @param options [::Gapic::CallOptions]
|
213
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
214
|
+
#
|
215
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
216
|
+
# @yieldparam result [::Google::Cloud::EdgeNetwork::V1::Network]
|
217
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
218
|
+
#
|
219
|
+
# @return [::Google::Cloud::EdgeNetwork::V1::Network]
|
220
|
+
# A result object deserialized from the server's reply
|
221
|
+
def get_network request_pb, options = nil
|
222
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
223
|
+
|
224
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_network_request request_pb
|
225
|
+
query_string_params = if query_string_params.any?
|
226
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
227
|
+
else
|
228
|
+
{}
|
229
|
+
end
|
230
|
+
|
231
|
+
response = @client_stub.make_http_request(
|
232
|
+
verb,
|
233
|
+
uri: uri,
|
234
|
+
body: body || "",
|
235
|
+
params: query_string_params,
|
236
|
+
options: options
|
237
|
+
)
|
238
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
239
|
+
result = ::Google::Cloud::EdgeNetwork::V1::Network.decode_json response.body, ignore_unknown_fields: true
|
240
|
+
|
241
|
+
yield result, operation if block_given?
|
242
|
+
result
|
243
|
+
end
|
244
|
+
|
245
|
+
##
|
246
|
+
# Baseline implementation for the diagnose_network REST call
|
247
|
+
#
|
248
|
+
# @param request_pb [::Google::Cloud::EdgeNetwork::V1::DiagnoseNetworkRequest]
|
249
|
+
# A request object representing the call parameters. Required.
|
250
|
+
# @param options [::Gapic::CallOptions]
|
251
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
252
|
+
#
|
253
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
254
|
+
# @yieldparam result [::Google::Cloud::EdgeNetwork::V1::DiagnoseNetworkResponse]
|
255
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
256
|
+
#
|
257
|
+
# @return [::Google::Cloud::EdgeNetwork::V1::DiagnoseNetworkResponse]
|
258
|
+
# A result object deserialized from the server's reply
|
259
|
+
def diagnose_network request_pb, options = nil
|
260
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
261
|
+
|
262
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_diagnose_network_request request_pb
|
263
|
+
query_string_params = if query_string_params.any?
|
264
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
265
|
+
else
|
266
|
+
{}
|
267
|
+
end
|
268
|
+
|
269
|
+
response = @client_stub.make_http_request(
|
270
|
+
verb,
|
271
|
+
uri: uri,
|
272
|
+
body: body || "",
|
273
|
+
params: query_string_params,
|
274
|
+
options: options
|
275
|
+
)
|
276
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
277
|
+
result = ::Google::Cloud::EdgeNetwork::V1::DiagnoseNetworkResponse.decode_json response.body, ignore_unknown_fields: true
|
278
|
+
|
279
|
+
yield result, operation if block_given?
|
280
|
+
result
|
281
|
+
end
|
282
|
+
|
283
|
+
##
|
284
|
+
# Baseline implementation for the create_network REST call
|
285
|
+
#
|
286
|
+
# @param request_pb [::Google::Cloud::EdgeNetwork::V1::CreateNetworkRequest]
|
287
|
+
# A request object representing the call parameters. Required.
|
288
|
+
# @param options [::Gapic::CallOptions]
|
289
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
290
|
+
#
|
291
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
292
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
293
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
294
|
+
#
|
295
|
+
# @return [::Google::Longrunning::Operation]
|
296
|
+
# A result object deserialized from the server's reply
|
297
|
+
def create_network request_pb, options = nil
|
298
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
299
|
+
|
300
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_create_network_request request_pb
|
301
|
+
query_string_params = if query_string_params.any?
|
302
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
303
|
+
else
|
304
|
+
{}
|
305
|
+
end
|
306
|
+
|
307
|
+
response = @client_stub.make_http_request(
|
308
|
+
verb,
|
309
|
+
uri: uri,
|
310
|
+
body: body || "",
|
311
|
+
params: query_string_params,
|
312
|
+
options: options
|
313
|
+
)
|
314
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
315
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
316
|
+
|
317
|
+
yield result, operation if block_given?
|
318
|
+
result
|
319
|
+
end
|
320
|
+
|
321
|
+
##
|
322
|
+
# Baseline implementation for the delete_network REST call
|
323
|
+
#
|
324
|
+
# @param request_pb [::Google::Cloud::EdgeNetwork::V1::DeleteNetworkRequest]
|
325
|
+
# A request object representing the call parameters. Required.
|
326
|
+
# @param options [::Gapic::CallOptions]
|
327
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
328
|
+
#
|
329
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
330
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
331
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
332
|
+
#
|
333
|
+
# @return [::Google::Longrunning::Operation]
|
334
|
+
# A result object deserialized from the server's reply
|
335
|
+
def delete_network request_pb, options = nil
|
336
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
337
|
+
|
338
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_network_request request_pb
|
339
|
+
query_string_params = if query_string_params.any?
|
340
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
341
|
+
else
|
342
|
+
{}
|
343
|
+
end
|
344
|
+
|
345
|
+
response = @client_stub.make_http_request(
|
346
|
+
verb,
|
347
|
+
uri: uri,
|
348
|
+
body: body || "",
|
349
|
+
params: query_string_params,
|
350
|
+
options: options
|
351
|
+
)
|
352
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
353
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
354
|
+
|
355
|
+
yield result, operation if block_given?
|
356
|
+
result
|
357
|
+
end
|
358
|
+
|
359
|
+
##
|
360
|
+
# Baseline implementation for the list_subnets REST call
|
361
|
+
#
|
362
|
+
# @param request_pb [::Google::Cloud::EdgeNetwork::V1::ListSubnetsRequest]
|
363
|
+
# A request object representing the call parameters. Required.
|
364
|
+
# @param options [::Gapic::CallOptions]
|
365
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
366
|
+
#
|
367
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
368
|
+
# @yieldparam result [::Google::Cloud::EdgeNetwork::V1::ListSubnetsResponse]
|
369
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
370
|
+
#
|
371
|
+
# @return [::Google::Cloud::EdgeNetwork::V1::ListSubnetsResponse]
|
372
|
+
# A result object deserialized from the server's reply
|
373
|
+
def list_subnets request_pb, options = nil
|
374
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
375
|
+
|
376
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_subnets_request request_pb
|
377
|
+
query_string_params = if query_string_params.any?
|
378
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
379
|
+
else
|
380
|
+
{}
|
381
|
+
end
|
382
|
+
|
383
|
+
response = @client_stub.make_http_request(
|
384
|
+
verb,
|
385
|
+
uri: uri,
|
386
|
+
body: body || "",
|
387
|
+
params: query_string_params,
|
388
|
+
options: options
|
389
|
+
)
|
390
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
391
|
+
result = ::Google::Cloud::EdgeNetwork::V1::ListSubnetsResponse.decode_json response.body, ignore_unknown_fields: true
|
392
|
+
|
393
|
+
yield result, operation if block_given?
|
394
|
+
result
|
395
|
+
end
|
396
|
+
|
397
|
+
##
|
398
|
+
# Baseline implementation for the get_subnet REST call
|
399
|
+
#
|
400
|
+
# @param request_pb [::Google::Cloud::EdgeNetwork::V1::GetSubnetRequest]
|
401
|
+
# A request object representing the call parameters. Required.
|
402
|
+
# @param options [::Gapic::CallOptions]
|
403
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
404
|
+
#
|
405
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
406
|
+
# @yieldparam result [::Google::Cloud::EdgeNetwork::V1::Subnet]
|
407
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
408
|
+
#
|
409
|
+
# @return [::Google::Cloud::EdgeNetwork::V1::Subnet]
|
410
|
+
# A result object deserialized from the server's reply
|
411
|
+
def get_subnet request_pb, options = nil
|
412
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
413
|
+
|
414
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_subnet_request request_pb
|
415
|
+
query_string_params = if query_string_params.any?
|
416
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
417
|
+
else
|
418
|
+
{}
|
419
|
+
end
|
420
|
+
|
421
|
+
response = @client_stub.make_http_request(
|
422
|
+
verb,
|
423
|
+
uri: uri,
|
424
|
+
body: body || "",
|
425
|
+
params: query_string_params,
|
426
|
+
options: options
|
427
|
+
)
|
428
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
429
|
+
result = ::Google::Cloud::EdgeNetwork::V1::Subnet.decode_json response.body, ignore_unknown_fields: true
|
430
|
+
|
431
|
+
yield result, operation if block_given?
|
432
|
+
result
|
433
|
+
end
|
434
|
+
|
435
|
+
##
|
436
|
+
# Baseline implementation for the create_subnet REST call
|
437
|
+
#
|
438
|
+
# @param request_pb [::Google::Cloud::EdgeNetwork::V1::CreateSubnetRequest]
|
439
|
+
# A request object representing the call parameters. Required.
|
440
|
+
# @param options [::Gapic::CallOptions]
|
441
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
442
|
+
#
|
443
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
444
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
445
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
446
|
+
#
|
447
|
+
# @return [::Google::Longrunning::Operation]
|
448
|
+
# A result object deserialized from the server's reply
|
449
|
+
def create_subnet request_pb, options = nil
|
450
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
451
|
+
|
452
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_create_subnet_request request_pb
|
453
|
+
query_string_params = if query_string_params.any?
|
454
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
455
|
+
else
|
456
|
+
{}
|
457
|
+
end
|
458
|
+
|
459
|
+
response = @client_stub.make_http_request(
|
460
|
+
verb,
|
461
|
+
uri: uri,
|
462
|
+
body: body || "",
|
463
|
+
params: query_string_params,
|
464
|
+
options: options
|
465
|
+
)
|
466
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
467
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
468
|
+
|
469
|
+
yield result, operation if block_given?
|
470
|
+
result
|
471
|
+
end
|
472
|
+
|
473
|
+
##
|
474
|
+
# Baseline implementation for the update_subnet REST call
|
475
|
+
#
|
476
|
+
# @param request_pb [::Google::Cloud::EdgeNetwork::V1::UpdateSubnetRequest]
|
477
|
+
# A request object representing the call parameters. Required.
|
478
|
+
# @param options [::Gapic::CallOptions]
|
479
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
480
|
+
#
|
481
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
482
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
483
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
484
|
+
#
|
485
|
+
# @return [::Google::Longrunning::Operation]
|
486
|
+
# A result object deserialized from the server's reply
|
487
|
+
def update_subnet request_pb, options = nil
|
488
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
489
|
+
|
490
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_update_subnet_request request_pb
|
491
|
+
query_string_params = if query_string_params.any?
|
492
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
493
|
+
else
|
494
|
+
{}
|
495
|
+
end
|
496
|
+
|
497
|
+
response = @client_stub.make_http_request(
|
498
|
+
verb,
|
499
|
+
uri: uri,
|
500
|
+
body: body || "",
|
501
|
+
params: query_string_params,
|
502
|
+
options: options
|
503
|
+
)
|
504
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
505
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
506
|
+
|
507
|
+
yield result, operation if block_given?
|
508
|
+
result
|
509
|
+
end
|
510
|
+
|
511
|
+
##
|
512
|
+
# Baseline implementation for the delete_subnet REST call
|
513
|
+
#
|
514
|
+
# @param request_pb [::Google::Cloud::EdgeNetwork::V1::DeleteSubnetRequest]
|
515
|
+
# A request object representing the call parameters. Required.
|
516
|
+
# @param options [::Gapic::CallOptions]
|
517
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
518
|
+
#
|
519
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
520
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
521
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
522
|
+
#
|
523
|
+
# @return [::Google::Longrunning::Operation]
|
524
|
+
# A result object deserialized from the server's reply
|
525
|
+
def delete_subnet request_pb, options = nil
|
526
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
527
|
+
|
528
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_subnet_request request_pb
|
529
|
+
query_string_params = if query_string_params.any?
|
530
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
531
|
+
else
|
532
|
+
{}
|
533
|
+
end
|
534
|
+
|
535
|
+
response = @client_stub.make_http_request(
|
536
|
+
verb,
|
537
|
+
uri: uri,
|
538
|
+
body: body || "",
|
539
|
+
params: query_string_params,
|
540
|
+
options: options
|
541
|
+
)
|
542
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
543
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
544
|
+
|
545
|
+
yield result, operation if block_given?
|
546
|
+
result
|
547
|
+
end
|
548
|
+
|
549
|
+
##
|
550
|
+
# Baseline implementation for the list_interconnects REST call
|
551
|
+
#
|
552
|
+
# @param request_pb [::Google::Cloud::EdgeNetwork::V1::ListInterconnectsRequest]
|
553
|
+
# A request object representing the call parameters. Required.
|
554
|
+
# @param options [::Gapic::CallOptions]
|
555
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
556
|
+
#
|
557
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
558
|
+
# @yieldparam result [::Google::Cloud::EdgeNetwork::V1::ListInterconnectsResponse]
|
559
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
560
|
+
#
|
561
|
+
# @return [::Google::Cloud::EdgeNetwork::V1::ListInterconnectsResponse]
|
562
|
+
# A result object deserialized from the server's reply
|
563
|
+
def list_interconnects request_pb, options = nil
|
564
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
565
|
+
|
566
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_interconnects_request request_pb
|
567
|
+
query_string_params = if query_string_params.any?
|
568
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
569
|
+
else
|
570
|
+
{}
|
571
|
+
end
|
572
|
+
|
573
|
+
response = @client_stub.make_http_request(
|
574
|
+
verb,
|
575
|
+
uri: uri,
|
576
|
+
body: body || "",
|
577
|
+
params: query_string_params,
|
578
|
+
options: options
|
579
|
+
)
|
580
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
581
|
+
result = ::Google::Cloud::EdgeNetwork::V1::ListInterconnectsResponse.decode_json response.body, ignore_unknown_fields: true
|
582
|
+
|
583
|
+
yield result, operation if block_given?
|
584
|
+
result
|
585
|
+
end
|
586
|
+
|
587
|
+
##
|
588
|
+
# Baseline implementation for the get_interconnect REST call
|
589
|
+
#
|
590
|
+
# @param request_pb [::Google::Cloud::EdgeNetwork::V1::GetInterconnectRequest]
|
591
|
+
# A request object representing the call parameters. Required.
|
592
|
+
# @param options [::Gapic::CallOptions]
|
593
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
594
|
+
#
|
595
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
596
|
+
# @yieldparam result [::Google::Cloud::EdgeNetwork::V1::Interconnect]
|
597
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
598
|
+
#
|
599
|
+
# @return [::Google::Cloud::EdgeNetwork::V1::Interconnect]
|
600
|
+
# A result object deserialized from the server's reply
|
601
|
+
def get_interconnect request_pb, options = nil
|
602
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
603
|
+
|
604
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_interconnect_request request_pb
|
605
|
+
query_string_params = if query_string_params.any?
|
606
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
607
|
+
else
|
608
|
+
{}
|
609
|
+
end
|
610
|
+
|
611
|
+
response = @client_stub.make_http_request(
|
612
|
+
verb,
|
613
|
+
uri: uri,
|
614
|
+
body: body || "",
|
615
|
+
params: query_string_params,
|
616
|
+
options: options
|
617
|
+
)
|
618
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
619
|
+
result = ::Google::Cloud::EdgeNetwork::V1::Interconnect.decode_json response.body, ignore_unknown_fields: true
|
620
|
+
|
621
|
+
yield result, operation if block_given?
|
622
|
+
result
|
623
|
+
end
|
624
|
+
|
625
|
+
##
|
626
|
+
# Baseline implementation for the diagnose_interconnect REST call
|
627
|
+
#
|
628
|
+
# @param request_pb [::Google::Cloud::EdgeNetwork::V1::DiagnoseInterconnectRequest]
|
629
|
+
# A request object representing the call parameters. Required.
|
630
|
+
# @param options [::Gapic::CallOptions]
|
631
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
632
|
+
#
|
633
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
634
|
+
# @yieldparam result [::Google::Cloud::EdgeNetwork::V1::DiagnoseInterconnectResponse]
|
635
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
636
|
+
#
|
637
|
+
# @return [::Google::Cloud::EdgeNetwork::V1::DiagnoseInterconnectResponse]
|
638
|
+
# A result object deserialized from the server's reply
|
639
|
+
def diagnose_interconnect request_pb, options = nil
|
640
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
641
|
+
|
642
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_diagnose_interconnect_request request_pb
|
643
|
+
query_string_params = if query_string_params.any?
|
644
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
645
|
+
else
|
646
|
+
{}
|
647
|
+
end
|
648
|
+
|
649
|
+
response = @client_stub.make_http_request(
|
650
|
+
verb,
|
651
|
+
uri: uri,
|
652
|
+
body: body || "",
|
653
|
+
params: query_string_params,
|
654
|
+
options: options
|
655
|
+
)
|
656
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
657
|
+
result = ::Google::Cloud::EdgeNetwork::V1::DiagnoseInterconnectResponse.decode_json response.body, ignore_unknown_fields: true
|
658
|
+
|
659
|
+
yield result, operation if block_given?
|
660
|
+
result
|
661
|
+
end
|
662
|
+
|
663
|
+
##
|
664
|
+
# Baseline implementation for the list_interconnect_attachments REST call
|
665
|
+
#
|
666
|
+
# @param request_pb [::Google::Cloud::EdgeNetwork::V1::ListInterconnectAttachmentsRequest]
|
667
|
+
# A request object representing the call parameters. Required.
|
668
|
+
# @param options [::Gapic::CallOptions]
|
669
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
670
|
+
#
|
671
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
672
|
+
# @yieldparam result [::Google::Cloud::EdgeNetwork::V1::ListInterconnectAttachmentsResponse]
|
673
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
674
|
+
#
|
675
|
+
# @return [::Google::Cloud::EdgeNetwork::V1::ListInterconnectAttachmentsResponse]
|
676
|
+
# A result object deserialized from the server's reply
|
677
|
+
def list_interconnect_attachments request_pb, options = nil
|
678
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
679
|
+
|
680
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_interconnect_attachments_request request_pb
|
681
|
+
query_string_params = if query_string_params.any?
|
682
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
683
|
+
else
|
684
|
+
{}
|
685
|
+
end
|
686
|
+
|
687
|
+
response = @client_stub.make_http_request(
|
688
|
+
verb,
|
689
|
+
uri: uri,
|
690
|
+
body: body || "",
|
691
|
+
params: query_string_params,
|
692
|
+
options: options
|
693
|
+
)
|
694
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
695
|
+
result = ::Google::Cloud::EdgeNetwork::V1::ListInterconnectAttachmentsResponse.decode_json response.body, ignore_unknown_fields: true
|
696
|
+
|
697
|
+
yield result, operation if block_given?
|
698
|
+
result
|
699
|
+
end
|
700
|
+
|
701
|
+
##
|
702
|
+
# Baseline implementation for the get_interconnect_attachment REST call
|
703
|
+
#
|
704
|
+
# @param request_pb [::Google::Cloud::EdgeNetwork::V1::GetInterconnectAttachmentRequest]
|
705
|
+
# A request object representing the call parameters. Required.
|
706
|
+
# @param options [::Gapic::CallOptions]
|
707
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
708
|
+
#
|
709
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
710
|
+
# @yieldparam result [::Google::Cloud::EdgeNetwork::V1::InterconnectAttachment]
|
711
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
712
|
+
#
|
713
|
+
# @return [::Google::Cloud::EdgeNetwork::V1::InterconnectAttachment]
|
714
|
+
# A result object deserialized from the server's reply
|
715
|
+
def get_interconnect_attachment request_pb, options = nil
|
716
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
717
|
+
|
718
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_interconnect_attachment_request request_pb
|
719
|
+
query_string_params = if query_string_params.any?
|
720
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
721
|
+
else
|
722
|
+
{}
|
723
|
+
end
|
724
|
+
|
725
|
+
response = @client_stub.make_http_request(
|
726
|
+
verb,
|
727
|
+
uri: uri,
|
728
|
+
body: body || "",
|
729
|
+
params: query_string_params,
|
730
|
+
options: options
|
731
|
+
)
|
732
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
733
|
+
result = ::Google::Cloud::EdgeNetwork::V1::InterconnectAttachment.decode_json response.body, ignore_unknown_fields: true
|
734
|
+
|
735
|
+
yield result, operation if block_given?
|
736
|
+
result
|
737
|
+
end
|
738
|
+
|
739
|
+
##
|
740
|
+
# Baseline implementation for the create_interconnect_attachment REST call
|
741
|
+
#
|
742
|
+
# @param request_pb [::Google::Cloud::EdgeNetwork::V1::CreateInterconnectAttachmentRequest]
|
743
|
+
# A request object representing the call parameters. Required.
|
744
|
+
# @param options [::Gapic::CallOptions]
|
745
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
746
|
+
#
|
747
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
748
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
749
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
750
|
+
#
|
751
|
+
# @return [::Google::Longrunning::Operation]
|
752
|
+
# A result object deserialized from the server's reply
|
753
|
+
def create_interconnect_attachment request_pb, options = nil
|
754
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
755
|
+
|
756
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_create_interconnect_attachment_request request_pb
|
757
|
+
query_string_params = if query_string_params.any?
|
758
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
759
|
+
else
|
760
|
+
{}
|
761
|
+
end
|
762
|
+
|
763
|
+
response = @client_stub.make_http_request(
|
764
|
+
verb,
|
765
|
+
uri: uri,
|
766
|
+
body: body || "",
|
767
|
+
params: query_string_params,
|
768
|
+
options: options
|
769
|
+
)
|
770
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
771
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
772
|
+
|
773
|
+
yield result, operation if block_given?
|
774
|
+
result
|
775
|
+
end
|
776
|
+
|
777
|
+
##
|
778
|
+
# Baseline implementation for the delete_interconnect_attachment REST call
|
779
|
+
#
|
780
|
+
# @param request_pb [::Google::Cloud::EdgeNetwork::V1::DeleteInterconnectAttachmentRequest]
|
781
|
+
# A request object representing the call parameters. Required.
|
782
|
+
# @param options [::Gapic::CallOptions]
|
783
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
784
|
+
#
|
785
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
786
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
787
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
788
|
+
#
|
789
|
+
# @return [::Google::Longrunning::Operation]
|
790
|
+
# A result object deserialized from the server's reply
|
791
|
+
def delete_interconnect_attachment request_pb, options = nil
|
792
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
793
|
+
|
794
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_interconnect_attachment_request request_pb
|
795
|
+
query_string_params = if query_string_params.any?
|
796
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
797
|
+
else
|
798
|
+
{}
|
799
|
+
end
|
800
|
+
|
801
|
+
response = @client_stub.make_http_request(
|
802
|
+
verb,
|
803
|
+
uri: uri,
|
804
|
+
body: body || "",
|
805
|
+
params: query_string_params,
|
806
|
+
options: options
|
807
|
+
)
|
808
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
809
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
810
|
+
|
811
|
+
yield result, operation if block_given?
|
812
|
+
result
|
813
|
+
end
|
814
|
+
|
815
|
+
##
|
816
|
+
# Baseline implementation for the list_routers REST call
|
817
|
+
#
|
818
|
+
# @param request_pb [::Google::Cloud::EdgeNetwork::V1::ListRoutersRequest]
|
819
|
+
# A request object representing the call parameters. Required.
|
820
|
+
# @param options [::Gapic::CallOptions]
|
821
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
822
|
+
#
|
823
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
824
|
+
# @yieldparam result [::Google::Cloud::EdgeNetwork::V1::ListRoutersResponse]
|
825
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
826
|
+
#
|
827
|
+
# @return [::Google::Cloud::EdgeNetwork::V1::ListRoutersResponse]
|
828
|
+
# A result object deserialized from the server's reply
|
829
|
+
def list_routers request_pb, options = nil
|
830
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
831
|
+
|
832
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_routers_request request_pb
|
833
|
+
query_string_params = if query_string_params.any?
|
834
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
835
|
+
else
|
836
|
+
{}
|
837
|
+
end
|
838
|
+
|
839
|
+
response = @client_stub.make_http_request(
|
840
|
+
verb,
|
841
|
+
uri: uri,
|
842
|
+
body: body || "",
|
843
|
+
params: query_string_params,
|
844
|
+
options: options
|
845
|
+
)
|
846
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
847
|
+
result = ::Google::Cloud::EdgeNetwork::V1::ListRoutersResponse.decode_json response.body, ignore_unknown_fields: true
|
848
|
+
|
849
|
+
yield result, operation if block_given?
|
850
|
+
result
|
851
|
+
end
|
852
|
+
|
853
|
+
##
|
854
|
+
# Baseline implementation for the get_router REST call
|
855
|
+
#
|
856
|
+
# @param request_pb [::Google::Cloud::EdgeNetwork::V1::GetRouterRequest]
|
857
|
+
# A request object representing the call parameters. Required.
|
858
|
+
# @param options [::Gapic::CallOptions]
|
859
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
860
|
+
#
|
861
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
862
|
+
# @yieldparam result [::Google::Cloud::EdgeNetwork::V1::Router]
|
863
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
864
|
+
#
|
865
|
+
# @return [::Google::Cloud::EdgeNetwork::V1::Router]
|
866
|
+
# A result object deserialized from the server's reply
|
867
|
+
def get_router request_pb, options = nil
|
868
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
869
|
+
|
870
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_router_request request_pb
|
871
|
+
query_string_params = if query_string_params.any?
|
872
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
873
|
+
else
|
874
|
+
{}
|
875
|
+
end
|
876
|
+
|
877
|
+
response = @client_stub.make_http_request(
|
878
|
+
verb,
|
879
|
+
uri: uri,
|
880
|
+
body: body || "",
|
881
|
+
params: query_string_params,
|
882
|
+
options: options
|
883
|
+
)
|
884
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
885
|
+
result = ::Google::Cloud::EdgeNetwork::V1::Router.decode_json response.body, ignore_unknown_fields: true
|
886
|
+
|
887
|
+
yield result, operation if block_given?
|
888
|
+
result
|
889
|
+
end
|
890
|
+
|
891
|
+
##
|
892
|
+
# Baseline implementation for the diagnose_router REST call
|
893
|
+
#
|
894
|
+
# @param request_pb [::Google::Cloud::EdgeNetwork::V1::DiagnoseRouterRequest]
|
895
|
+
# A request object representing the call parameters. Required.
|
896
|
+
# @param options [::Gapic::CallOptions]
|
897
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
898
|
+
#
|
899
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
900
|
+
# @yieldparam result [::Google::Cloud::EdgeNetwork::V1::DiagnoseRouterResponse]
|
901
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
902
|
+
#
|
903
|
+
# @return [::Google::Cloud::EdgeNetwork::V1::DiagnoseRouterResponse]
|
904
|
+
# A result object deserialized from the server's reply
|
905
|
+
def diagnose_router request_pb, options = nil
|
906
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
907
|
+
|
908
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_diagnose_router_request request_pb
|
909
|
+
query_string_params = if query_string_params.any?
|
910
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
911
|
+
else
|
912
|
+
{}
|
913
|
+
end
|
914
|
+
|
915
|
+
response = @client_stub.make_http_request(
|
916
|
+
verb,
|
917
|
+
uri: uri,
|
918
|
+
body: body || "",
|
919
|
+
params: query_string_params,
|
920
|
+
options: options
|
921
|
+
)
|
922
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
923
|
+
result = ::Google::Cloud::EdgeNetwork::V1::DiagnoseRouterResponse.decode_json response.body, ignore_unknown_fields: true
|
924
|
+
|
925
|
+
yield result, operation if block_given?
|
926
|
+
result
|
927
|
+
end
|
928
|
+
|
929
|
+
##
|
930
|
+
# Baseline implementation for the create_router REST call
|
931
|
+
#
|
932
|
+
# @param request_pb [::Google::Cloud::EdgeNetwork::V1::CreateRouterRequest]
|
933
|
+
# A request object representing the call parameters. Required.
|
934
|
+
# @param options [::Gapic::CallOptions]
|
935
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
936
|
+
#
|
937
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
938
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
939
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
940
|
+
#
|
941
|
+
# @return [::Google::Longrunning::Operation]
|
942
|
+
# A result object deserialized from the server's reply
|
943
|
+
def create_router request_pb, options = nil
|
944
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
945
|
+
|
946
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_create_router_request request_pb
|
947
|
+
query_string_params = if query_string_params.any?
|
948
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
949
|
+
else
|
950
|
+
{}
|
951
|
+
end
|
952
|
+
|
953
|
+
response = @client_stub.make_http_request(
|
954
|
+
verb,
|
955
|
+
uri: uri,
|
956
|
+
body: body || "",
|
957
|
+
params: query_string_params,
|
958
|
+
options: options
|
959
|
+
)
|
960
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
961
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
962
|
+
|
963
|
+
yield result, operation if block_given?
|
964
|
+
result
|
965
|
+
end
|
966
|
+
|
967
|
+
##
|
968
|
+
# Baseline implementation for the update_router REST call
|
969
|
+
#
|
970
|
+
# @param request_pb [::Google::Cloud::EdgeNetwork::V1::UpdateRouterRequest]
|
971
|
+
# A request object representing the call parameters. Required.
|
972
|
+
# @param options [::Gapic::CallOptions]
|
973
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
974
|
+
#
|
975
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
976
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
977
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
978
|
+
#
|
979
|
+
# @return [::Google::Longrunning::Operation]
|
980
|
+
# A result object deserialized from the server's reply
|
981
|
+
def update_router request_pb, options = nil
|
982
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
983
|
+
|
984
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_update_router_request request_pb
|
985
|
+
query_string_params = if query_string_params.any?
|
986
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
987
|
+
else
|
988
|
+
{}
|
989
|
+
end
|
990
|
+
|
991
|
+
response = @client_stub.make_http_request(
|
992
|
+
verb,
|
993
|
+
uri: uri,
|
994
|
+
body: body || "",
|
995
|
+
params: query_string_params,
|
996
|
+
options: options
|
997
|
+
)
|
998
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
999
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
1000
|
+
|
1001
|
+
yield result, operation if block_given?
|
1002
|
+
result
|
1003
|
+
end
|
1004
|
+
|
1005
|
+
##
|
1006
|
+
# Baseline implementation for the delete_router REST call
|
1007
|
+
#
|
1008
|
+
# @param request_pb [::Google::Cloud::EdgeNetwork::V1::DeleteRouterRequest]
|
1009
|
+
# A request object representing the call parameters. Required.
|
1010
|
+
# @param options [::Gapic::CallOptions]
|
1011
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1012
|
+
#
|
1013
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1014
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
1015
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1016
|
+
#
|
1017
|
+
# @return [::Google::Longrunning::Operation]
|
1018
|
+
# A result object deserialized from the server's reply
|
1019
|
+
def delete_router request_pb, options = nil
|
1020
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1021
|
+
|
1022
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_router_request request_pb
|
1023
|
+
query_string_params = if query_string_params.any?
|
1024
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1025
|
+
else
|
1026
|
+
{}
|
1027
|
+
end
|
1028
|
+
|
1029
|
+
response = @client_stub.make_http_request(
|
1030
|
+
verb,
|
1031
|
+
uri: uri,
|
1032
|
+
body: body || "",
|
1033
|
+
params: query_string_params,
|
1034
|
+
options: options
|
1035
|
+
)
|
1036
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1037
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
1038
|
+
|
1039
|
+
yield result, operation if block_given?
|
1040
|
+
result
|
1041
|
+
end
|
1042
|
+
|
1043
|
+
##
|
1044
|
+
# @private
|
1045
|
+
#
|
1046
|
+
# GRPC transcoding helper method for the initialize_zone REST call
|
1047
|
+
#
|
1048
|
+
# @param request_pb [::Google::Cloud::EdgeNetwork::V1::InitializeZoneRequest]
|
1049
|
+
# A request object representing the call parameters. Required.
|
1050
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1051
|
+
# Uri, Body, Query string parameters
|
1052
|
+
def self.transcode_initialize_zone_request request_pb
|
1053
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1054
|
+
.with_bindings(
|
1055
|
+
uri_method: :post,
|
1056
|
+
uri_template: "/v1/{name}:initialize",
|
1057
|
+
body: "*",
|
1058
|
+
matches: [
|
1059
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/zones/[^/]+/?$}, false]
|
1060
|
+
]
|
1061
|
+
)
|
1062
|
+
transcoder.transcode request_pb
|
1063
|
+
end
|
1064
|
+
|
1065
|
+
##
|
1066
|
+
# @private
|
1067
|
+
#
|
1068
|
+
# GRPC transcoding helper method for the list_zones REST call
|
1069
|
+
#
|
1070
|
+
# @param request_pb [::Google::Cloud::EdgeNetwork::V1::ListZonesRequest]
|
1071
|
+
# A request object representing the call parameters. Required.
|
1072
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1073
|
+
# Uri, Body, Query string parameters
|
1074
|
+
def self.transcode_list_zones_request request_pb
|
1075
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1076
|
+
.with_bindings(
|
1077
|
+
uri_method: :get,
|
1078
|
+
uri_template: "/v1/{parent}/zones",
|
1079
|
+
matches: [
|
1080
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
1081
|
+
]
|
1082
|
+
)
|
1083
|
+
transcoder.transcode request_pb
|
1084
|
+
end
|
1085
|
+
|
1086
|
+
##
|
1087
|
+
# @private
|
1088
|
+
#
|
1089
|
+
# GRPC transcoding helper method for the get_zone REST call
|
1090
|
+
#
|
1091
|
+
# @param request_pb [::Google::Cloud::EdgeNetwork::V1::GetZoneRequest]
|
1092
|
+
# A request object representing the call parameters. Required.
|
1093
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1094
|
+
# Uri, Body, Query string parameters
|
1095
|
+
def self.transcode_get_zone_request request_pb
|
1096
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1097
|
+
.with_bindings(
|
1098
|
+
uri_method: :get,
|
1099
|
+
uri_template: "/v1/{name}",
|
1100
|
+
matches: [
|
1101
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/zones/[^/]+/?$}, false]
|
1102
|
+
]
|
1103
|
+
)
|
1104
|
+
transcoder.transcode request_pb
|
1105
|
+
end
|
1106
|
+
|
1107
|
+
##
|
1108
|
+
# @private
|
1109
|
+
#
|
1110
|
+
# GRPC transcoding helper method for the list_networks REST call
|
1111
|
+
#
|
1112
|
+
# @param request_pb [::Google::Cloud::EdgeNetwork::V1::ListNetworksRequest]
|
1113
|
+
# A request object representing the call parameters. Required.
|
1114
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1115
|
+
# Uri, Body, Query string parameters
|
1116
|
+
def self.transcode_list_networks_request request_pb
|
1117
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1118
|
+
.with_bindings(
|
1119
|
+
uri_method: :get,
|
1120
|
+
uri_template: "/v1/{parent}/networks",
|
1121
|
+
matches: [
|
1122
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/zones/[^/]+/?$}, false]
|
1123
|
+
]
|
1124
|
+
)
|
1125
|
+
transcoder.transcode request_pb
|
1126
|
+
end
|
1127
|
+
|
1128
|
+
##
|
1129
|
+
# @private
|
1130
|
+
#
|
1131
|
+
# GRPC transcoding helper method for the get_network REST call
|
1132
|
+
#
|
1133
|
+
# @param request_pb [::Google::Cloud::EdgeNetwork::V1::GetNetworkRequest]
|
1134
|
+
# A request object representing the call parameters. Required.
|
1135
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1136
|
+
# Uri, Body, Query string parameters
|
1137
|
+
def self.transcode_get_network_request request_pb
|
1138
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1139
|
+
.with_bindings(
|
1140
|
+
uri_method: :get,
|
1141
|
+
uri_template: "/v1/{name}",
|
1142
|
+
matches: [
|
1143
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/zones/[^/]+/networks/[^/]+/?$}, false]
|
1144
|
+
]
|
1145
|
+
)
|
1146
|
+
transcoder.transcode request_pb
|
1147
|
+
end
|
1148
|
+
|
1149
|
+
##
|
1150
|
+
# @private
|
1151
|
+
#
|
1152
|
+
# GRPC transcoding helper method for the diagnose_network REST call
|
1153
|
+
#
|
1154
|
+
# @param request_pb [::Google::Cloud::EdgeNetwork::V1::DiagnoseNetworkRequest]
|
1155
|
+
# A request object representing the call parameters. Required.
|
1156
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1157
|
+
# Uri, Body, Query string parameters
|
1158
|
+
def self.transcode_diagnose_network_request request_pb
|
1159
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1160
|
+
.with_bindings(
|
1161
|
+
uri_method: :get,
|
1162
|
+
uri_template: "/v1/{name}:diagnose",
|
1163
|
+
matches: [
|
1164
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/zones/[^/]+/networks/[^/]+/?$}, false]
|
1165
|
+
]
|
1166
|
+
)
|
1167
|
+
transcoder.transcode request_pb
|
1168
|
+
end
|
1169
|
+
|
1170
|
+
##
|
1171
|
+
# @private
|
1172
|
+
#
|
1173
|
+
# GRPC transcoding helper method for the create_network REST call
|
1174
|
+
#
|
1175
|
+
# @param request_pb [::Google::Cloud::EdgeNetwork::V1::CreateNetworkRequest]
|
1176
|
+
# A request object representing the call parameters. Required.
|
1177
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1178
|
+
# Uri, Body, Query string parameters
|
1179
|
+
def self.transcode_create_network_request request_pb
|
1180
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1181
|
+
.with_bindings(
|
1182
|
+
uri_method: :post,
|
1183
|
+
uri_template: "/v1/{parent}/networks",
|
1184
|
+
body: "network",
|
1185
|
+
matches: [
|
1186
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/zones/[^/]+/?$}, false]
|
1187
|
+
]
|
1188
|
+
)
|
1189
|
+
transcoder.transcode request_pb
|
1190
|
+
end
|
1191
|
+
|
1192
|
+
##
|
1193
|
+
# @private
|
1194
|
+
#
|
1195
|
+
# GRPC transcoding helper method for the delete_network REST call
|
1196
|
+
#
|
1197
|
+
# @param request_pb [::Google::Cloud::EdgeNetwork::V1::DeleteNetworkRequest]
|
1198
|
+
# A request object representing the call parameters. Required.
|
1199
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1200
|
+
# Uri, Body, Query string parameters
|
1201
|
+
def self.transcode_delete_network_request request_pb
|
1202
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1203
|
+
.with_bindings(
|
1204
|
+
uri_method: :delete,
|
1205
|
+
uri_template: "/v1/{name}",
|
1206
|
+
matches: [
|
1207
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/zones/[^/]+/networks/[^/]+/?$}, false]
|
1208
|
+
]
|
1209
|
+
)
|
1210
|
+
transcoder.transcode request_pb
|
1211
|
+
end
|
1212
|
+
|
1213
|
+
##
|
1214
|
+
# @private
|
1215
|
+
#
|
1216
|
+
# GRPC transcoding helper method for the list_subnets REST call
|
1217
|
+
#
|
1218
|
+
# @param request_pb [::Google::Cloud::EdgeNetwork::V1::ListSubnetsRequest]
|
1219
|
+
# A request object representing the call parameters. Required.
|
1220
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1221
|
+
# Uri, Body, Query string parameters
|
1222
|
+
def self.transcode_list_subnets_request request_pb
|
1223
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1224
|
+
.with_bindings(
|
1225
|
+
uri_method: :get,
|
1226
|
+
uri_template: "/v1/{parent}/subnets",
|
1227
|
+
matches: [
|
1228
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/zones/[^/]+/?$}, false]
|
1229
|
+
]
|
1230
|
+
)
|
1231
|
+
transcoder.transcode request_pb
|
1232
|
+
end
|
1233
|
+
|
1234
|
+
##
|
1235
|
+
# @private
|
1236
|
+
#
|
1237
|
+
# GRPC transcoding helper method for the get_subnet REST call
|
1238
|
+
#
|
1239
|
+
# @param request_pb [::Google::Cloud::EdgeNetwork::V1::GetSubnetRequest]
|
1240
|
+
# A request object representing the call parameters. Required.
|
1241
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1242
|
+
# Uri, Body, Query string parameters
|
1243
|
+
def self.transcode_get_subnet_request request_pb
|
1244
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1245
|
+
.with_bindings(
|
1246
|
+
uri_method: :get,
|
1247
|
+
uri_template: "/v1/{name}",
|
1248
|
+
matches: [
|
1249
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/zones/[^/]+/subnets/[^/]+/?$}, false]
|
1250
|
+
]
|
1251
|
+
)
|
1252
|
+
transcoder.transcode request_pb
|
1253
|
+
end
|
1254
|
+
|
1255
|
+
##
|
1256
|
+
# @private
|
1257
|
+
#
|
1258
|
+
# GRPC transcoding helper method for the create_subnet REST call
|
1259
|
+
#
|
1260
|
+
# @param request_pb [::Google::Cloud::EdgeNetwork::V1::CreateSubnetRequest]
|
1261
|
+
# A request object representing the call parameters. Required.
|
1262
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1263
|
+
# Uri, Body, Query string parameters
|
1264
|
+
def self.transcode_create_subnet_request request_pb
|
1265
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1266
|
+
.with_bindings(
|
1267
|
+
uri_method: :post,
|
1268
|
+
uri_template: "/v1/{parent}/subnets",
|
1269
|
+
body: "subnet",
|
1270
|
+
matches: [
|
1271
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/zones/[^/]+/?$}, false]
|
1272
|
+
]
|
1273
|
+
)
|
1274
|
+
transcoder.transcode request_pb
|
1275
|
+
end
|
1276
|
+
|
1277
|
+
##
|
1278
|
+
# @private
|
1279
|
+
#
|
1280
|
+
# GRPC transcoding helper method for the update_subnet REST call
|
1281
|
+
#
|
1282
|
+
# @param request_pb [::Google::Cloud::EdgeNetwork::V1::UpdateSubnetRequest]
|
1283
|
+
# A request object representing the call parameters. Required.
|
1284
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1285
|
+
# Uri, Body, Query string parameters
|
1286
|
+
def self.transcode_update_subnet_request request_pb
|
1287
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1288
|
+
.with_bindings(
|
1289
|
+
uri_method: :patch,
|
1290
|
+
uri_template: "/v1/{subnet.name}",
|
1291
|
+
body: "subnet",
|
1292
|
+
matches: [
|
1293
|
+
["subnet.name", %r{^projects/[^/]+/locations/[^/]+/zones/[^/]+/subnets/[^/]+/?$}, false]
|
1294
|
+
]
|
1295
|
+
)
|
1296
|
+
transcoder.transcode request_pb
|
1297
|
+
end
|
1298
|
+
|
1299
|
+
##
|
1300
|
+
# @private
|
1301
|
+
#
|
1302
|
+
# GRPC transcoding helper method for the delete_subnet REST call
|
1303
|
+
#
|
1304
|
+
# @param request_pb [::Google::Cloud::EdgeNetwork::V1::DeleteSubnetRequest]
|
1305
|
+
# A request object representing the call parameters. Required.
|
1306
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1307
|
+
# Uri, Body, Query string parameters
|
1308
|
+
def self.transcode_delete_subnet_request request_pb
|
1309
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1310
|
+
.with_bindings(
|
1311
|
+
uri_method: :delete,
|
1312
|
+
uri_template: "/v1/{name}",
|
1313
|
+
matches: [
|
1314
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/zones/[^/]+/subnets/[^/]+/?$}, false]
|
1315
|
+
]
|
1316
|
+
)
|
1317
|
+
transcoder.transcode request_pb
|
1318
|
+
end
|
1319
|
+
|
1320
|
+
##
|
1321
|
+
# @private
|
1322
|
+
#
|
1323
|
+
# GRPC transcoding helper method for the list_interconnects REST call
|
1324
|
+
#
|
1325
|
+
# @param request_pb [::Google::Cloud::EdgeNetwork::V1::ListInterconnectsRequest]
|
1326
|
+
# A request object representing the call parameters. Required.
|
1327
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1328
|
+
# Uri, Body, Query string parameters
|
1329
|
+
def self.transcode_list_interconnects_request request_pb
|
1330
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1331
|
+
.with_bindings(
|
1332
|
+
uri_method: :get,
|
1333
|
+
uri_template: "/v1/{parent}/interconnects",
|
1334
|
+
matches: [
|
1335
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/zones/[^/]+/?$}, false]
|
1336
|
+
]
|
1337
|
+
)
|
1338
|
+
transcoder.transcode request_pb
|
1339
|
+
end
|
1340
|
+
|
1341
|
+
##
|
1342
|
+
# @private
|
1343
|
+
#
|
1344
|
+
# GRPC transcoding helper method for the get_interconnect REST call
|
1345
|
+
#
|
1346
|
+
# @param request_pb [::Google::Cloud::EdgeNetwork::V1::GetInterconnectRequest]
|
1347
|
+
# A request object representing the call parameters. Required.
|
1348
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1349
|
+
# Uri, Body, Query string parameters
|
1350
|
+
def self.transcode_get_interconnect_request request_pb
|
1351
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1352
|
+
.with_bindings(
|
1353
|
+
uri_method: :get,
|
1354
|
+
uri_template: "/v1/{name}",
|
1355
|
+
matches: [
|
1356
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/zones/[^/]+/interconnects/[^/]+/?$}, false]
|
1357
|
+
]
|
1358
|
+
)
|
1359
|
+
transcoder.transcode request_pb
|
1360
|
+
end
|
1361
|
+
|
1362
|
+
##
|
1363
|
+
# @private
|
1364
|
+
#
|
1365
|
+
# GRPC transcoding helper method for the diagnose_interconnect REST call
|
1366
|
+
#
|
1367
|
+
# @param request_pb [::Google::Cloud::EdgeNetwork::V1::DiagnoseInterconnectRequest]
|
1368
|
+
# A request object representing the call parameters. Required.
|
1369
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1370
|
+
# Uri, Body, Query string parameters
|
1371
|
+
def self.transcode_diagnose_interconnect_request request_pb
|
1372
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1373
|
+
.with_bindings(
|
1374
|
+
uri_method: :get,
|
1375
|
+
uri_template: "/v1/{name}:diagnose",
|
1376
|
+
matches: [
|
1377
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/zones/[^/]+/interconnects/[^/]+/?$}, false]
|
1378
|
+
]
|
1379
|
+
)
|
1380
|
+
transcoder.transcode request_pb
|
1381
|
+
end
|
1382
|
+
|
1383
|
+
##
|
1384
|
+
# @private
|
1385
|
+
#
|
1386
|
+
# GRPC transcoding helper method for the list_interconnect_attachments REST call
|
1387
|
+
#
|
1388
|
+
# @param request_pb [::Google::Cloud::EdgeNetwork::V1::ListInterconnectAttachmentsRequest]
|
1389
|
+
# A request object representing the call parameters. Required.
|
1390
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1391
|
+
# Uri, Body, Query string parameters
|
1392
|
+
def self.transcode_list_interconnect_attachments_request request_pb
|
1393
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1394
|
+
.with_bindings(
|
1395
|
+
uri_method: :get,
|
1396
|
+
uri_template: "/v1/{parent}/interconnectAttachments",
|
1397
|
+
matches: [
|
1398
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/zones/[^/]+/?$}, false]
|
1399
|
+
]
|
1400
|
+
)
|
1401
|
+
transcoder.transcode request_pb
|
1402
|
+
end
|
1403
|
+
|
1404
|
+
##
|
1405
|
+
# @private
|
1406
|
+
#
|
1407
|
+
# GRPC transcoding helper method for the get_interconnect_attachment REST call
|
1408
|
+
#
|
1409
|
+
# @param request_pb [::Google::Cloud::EdgeNetwork::V1::GetInterconnectAttachmentRequest]
|
1410
|
+
# A request object representing the call parameters. Required.
|
1411
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1412
|
+
# Uri, Body, Query string parameters
|
1413
|
+
def self.transcode_get_interconnect_attachment_request request_pb
|
1414
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1415
|
+
.with_bindings(
|
1416
|
+
uri_method: :get,
|
1417
|
+
uri_template: "/v1/{name}",
|
1418
|
+
matches: [
|
1419
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/zones/[^/]+/interconnectAttachments/[^/]+/?$}, false]
|
1420
|
+
]
|
1421
|
+
)
|
1422
|
+
transcoder.transcode request_pb
|
1423
|
+
end
|
1424
|
+
|
1425
|
+
##
|
1426
|
+
# @private
|
1427
|
+
#
|
1428
|
+
# GRPC transcoding helper method for the create_interconnect_attachment REST call
|
1429
|
+
#
|
1430
|
+
# @param request_pb [::Google::Cloud::EdgeNetwork::V1::CreateInterconnectAttachmentRequest]
|
1431
|
+
# A request object representing the call parameters. Required.
|
1432
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1433
|
+
# Uri, Body, Query string parameters
|
1434
|
+
def self.transcode_create_interconnect_attachment_request request_pb
|
1435
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1436
|
+
.with_bindings(
|
1437
|
+
uri_method: :post,
|
1438
|
+
uri_template: "/v1/{parent}/interconnectAttachments",
|
1439
|
+
body: "interconnect_attachment",
|
1440
|
+
matches: [
|
1441
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/zones/[^/]+/?$}, false]
|
1442
|
+
]
|
1443
|
+
)
|
1444
|
+
transcoder.transcode request_pb
|
1445
|
+
end
|
1446
|
+
|
1447
|
+
##
|
1448
|
+
# @private
|
1449
|
+
#
|
1450
|
+
# GRPC transcoding helper method for the delete_interconnect_attachment REST call
|
1451
|
+
#
|
1452
|
+
# @param request_pb [::Google::Cloud::EdgeNetwork::V1::DeleteInterconnectAttachmentRequest]
|
1453
|
+
# A request object representing the call parameters. Required.
|
1454
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1455
|
+
# Uri, Body, Query string parameters
|
1456
|
+
def self.transcode_delete_interconnect_attachment_request request_pb
|
1457
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1458
|
+
.with_bindings(
|
1459
|
+
uri_method: :delete,
|
1460
|
+
uri_template: "/v1/{name}",
|
1461
|
+
matches: [
|
1462
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/zones/[^/]+/interconnectAttachments/[^/]+/?$}, false]
|
1463
|
+
]
|
1464
|
+
)
|
1465
|
+
transcoder.transcode request_pb
|
1466
|
+
end
|
1467
|
+
|
1468
|
+
##
|
1469
|
+
# @private
|
1470
|
+
#
|
1471
|
+
# GRPC transcoding helper method for the list_routers REST call
|
1472
|
+
#
|
1473
|
+
# @param request_pb [::Google::Cloud::EdgeNetwork::V1::ListRoutersRequest]
|
1474
|
+
# A request object representing the call parameters. Required.
|
1475
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1476
|
+
# Uri, Body, Query string parameters
|
1477
|
+
def self.transcode_list_routers_request request_pb
|
1478
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1479
|
+
.with_bindings(
|
1480
|
+
uri_method: :get,
|
1481
|
+
uri_template: "/v1/{parent}/routers",
|
1482
|
+
matches: [
|
1483
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/zones/[^/]+/?$}, false]
|
1484
|
+
]
|
1485
|
+
)
|
1486
|
+
transcoder.transcode request_pb
|
1487
|
+
end
|
1488
|
+
|
1489
|
+
##
|
1490
|
+
# @private
|
1491
|
+
#
|
1492
|
+
# GRPC transcoding helper method for the get_router REST call
|
1493
|
+
#
|
1494
|
+
# @param request_pb [::Google::Cloud::EdgeNetwork::V1::GetRouterRequest]
|
1495
|
+
# A request object representing the call parameters. Required.
|
1496
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1497
|
+
# Uri, Body, Query string parameters
|
1498
|
+
def self.transcode_get_router_request request_pb
|
1499
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1500
|
+
.with_bindings(
|
1501
|
+
uri_method: :get,
|
1502
|
+
uri_template: "/v1/{name}",
|
1503
|
+
matches: [
|
1504
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/zones/[^/]+/routers/[^/]+/?$}, false]
|
1505
|
+
]
|
1506
|
+
)
|
1507
|
+
transcoder.transcode request_pb
|
1508
|
+
end
|
1509
|
+
|
1510
|
+
##
|
1511
|
+
# @private
|
1512
|
+
#
|
1513
|
+
# GRPC transcoding helper method for the diagnose_router REST call
|
1514
|
+
#
|
1515
|
+
# @param request_pb [::Google::Cloud::EdgeNetwork::V1::DiagnoseRouterRequest]
|
1516
|
+
# A request object representing the call parameters. Required.
|
1517
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1518
|
+
# Uri, Body, Query string parameters
|
1519
|
+
def self.transcode_diagnose_router_request request_pb
|
1520
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1521
|
+
.with_bindings(
|
1522
|
+
uri_method: :get,
|
1523
|
+
uri_template: "/v1/{name}:diagnose",
|
1524
|
+
matches: [
|
1525
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/zones/[^/]+/routers/[^/]+/?$}, false]
|
1526
|
+
]
|
1527
|
+
)
|
1528
|
+
transcoder.transcode request_pb
|
1529
|
+
end
|
1530
|
+
|
1531
|
+
##
|
1532
|
+
# @private
|
1533
|
+
#
|
1534
|
+
# GRPC transcoding helper method for the create_router REST call
|
1535
|
+
#
|
1536
|
+
# @param request_pb [::Google::Cloud::EdgeNetwork::V1::CreateRouterRequest]
|
1537
|
+
# A request object representing the call parameters. Required.
|
1538
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1539
|
+
# Uri, Body, Query string parameters
|
1540
|
+
def self.transcode_create_router_request request_pb
|
1541
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1542
|
+
.with_bindings(
|
1543
|
+
uri_method: :post,
|
1544
|
+
uri_template: "/v1/{parent}/routers",
|
1545
|
+
body: "router",
|
1546
|
+
matches: [
|
1547
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/zones/[^/]+/?$}, false]
|
1548
|
+
]
|
1549
|
+
)
|
1550
|
+
transcoder.transcode request_pb
|
1551
|
+
end
|
1552
|
+
|
1553
|
+
##
|
1554
|
+
# @private
|
1555
|
+
#
|
1556
|
+
# GRPC transcoding helper method for the update_router REST call
|
1557
|
+
#
|
1558
|
+
# @param request_pb [::Google::Cloud::EdgeNetwork::V1::UpdateRouterRequest]
|
1559
|
+
# A request object representing the call parameters. Required.
|
1560
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1561
|
+
# Uri, Body, Query string parameters
|
1562
|
+
def self.transcode_update_router_request request_pb
|
1563
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1564
|
+
.with_bindings(
|
1565
|
+
uri_method: :patch,
|
1566
|
+
uri_template: "/v1/{router.name}",
|
1567
|
+
body: "router",
|
1568
|
+
matches: [
|
1569
|
+
["router.name", %r{^projects/[^/]+/locations/[^/]+/zones/[^/]+/routers/[^/]+/?$}, false]
|
1570
|
+
]
|
1571
|
+
)
|
1572
|
+
transcoder.transcode request_pb
|
1573
|
+
end
|
1574
|
+
|
1575
|
+
##
|
1576
|
+
# @private
|
1577
|
+
#
|
1578
|
+
# GRPC transcoding helper method for the delete_router REST call
|
1579
|
+
#
|
1580
|
+
# @param request_pb [::Google::Cloud::EdgeNetwork::V1::DeleteRouterRequest]
|
1581
|
+
# A request object representing the call parameters. Required.
|
1582
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1583
|
+
# Uri, Body, Query string parameters
|
1584
|
+
def self.transcode_delete_router_request request_pb
|
1585
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1586
|
+
.with_bindings(
|
1587
|
+
uri_method: :delete,
|
1588
|
+
uri_template: "/v1/{name}",
|
1589
|
+
matches: [
|
1590
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/zones/[^/]+/routers/[^/]+/?$}, false]
|
1591
|
+
]
|
1592
|
+
)
|
1593
|
+
transcoder.transcode request_pb
|
1594
|
+
end
|
1595
|
+
end
|
1596
|
+
end
|
1597
|
+
end
|
1598
|
+
end
|
1599
|
+
end
|
1600
|
+
end
|
1601
|
+
end
|