google-cloud-vmware_engine-v1 0.3.1 → 0.5.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.
@@ -136,6 +136,26 @@ module Google
136
136
  # @return [::Gapic::Operation]
137
137
  #
138
138
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
139
+ #
140
+ # @example Basic example
141
+ # require "google/longrunning"
142
+ #
143
+ # # Create a client object. The client can be reused for multiple calls.
144
+ # client = Google::Longrunning::Operations::Rest::Client.new
145
+ #
146
+ # # Create a request. To set request fields, pass in keyword arguments.
147
+ # request = Google::Longrunning::ListOperationsRequest.new
148
+ #
149
+ # # Call the list_operations method.
150
+ # result = client.list_operations request
151
+ #
152
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
153
+ # # over elements, and API calls will be issued to fetch pages as needed.
154
+ # result.each do |item|
155
+ # # Each element is of type ::Google::Longrunning::Operation.
156
+ # p item
157
+ # end
158
+ #
139
159
  def list_operations request, options = nil
140
160
  raise ::ArgumentError, "request must be provided" if request.nil?
141
161
 
@@ -201,6 +221,29 @@ module Google
201
221
  # @return [::Gapic::Operation]
202
222
  #
203
223
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
224
+ #
225
+ # @example Basic example
226
+ # require "google/longrunning"
227
+ #
228
+ # # Create a client object. The client can be reused for multiple calls.
229
+ # client = Google::Longrunning::Operations::Rest::Client.new
230
+ #
231
+ # # Create a request. To set request fields, pass in keyword arguments.
232
+ # request = Google::Longrunning::GetOperationRequest.new
233
+ #
234
+ # # Call the get_operation method.
235
+ # result = client.get_operation request
236
+ #
237
+ # # The returned object is of type Gapic::Operation. You can use it to
238
+ # # check the status of an operation, cancel it, or wait for results.
239
+ # # Here is how to wait for a response.
240
+ # result.wait_until_done! timeout: 60
241
+ # if result.response?
242
+ # p result.response
243
+ # else
244
+ # puts "No response received."
245
+ # end
246
+ #
204
247
  def get_operation request, options = nil
205
248
  raise ::ArgumentError, "request must be provided" if request.nil?
206
249
 
@@ -267,6 +310,22 @@ module Google
267
310
  # @return [::Google::Protobuf::Empty]
268
311
  #
269
312
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
313
+ #
314
+ # @example Basic example
315
+ # require "google/longrunning"
316
+ #
317
+ # # Create a client object. The client can be reused for multiple calls.
318
+ # client = Google::Longrunning::Operations::Rest::Client.new
319
+ #
320
+ # # Create a request. To set request fields, pass in keyword arguments.
321
+ # request = Google::Longrunning::DeleteOperationRequest.new
322
+ #
323
+ # # Call the delete_operation method.
324
+ # result = client.delete_operation request
325
+ #
326
+ # # The returned object is of type Google::Protobuf::Empty.
327
+ # p result
328
+ #
270
329
  def delete_operation request, options = nil
271
330
  raise ::ArgumentError, "request must be provided" if request.nil?
272
331
 
@@ -338,6 +397,22 @@ module Google
338
397
  # @return [::Google::Protobuf::Empty]
339
398
  #
340
399
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
400
+ #
401
+ # @example Basic example
402
+ # require "google/longrunning"
403
+ #
404
+ # # Create a client object. The client can be reused for multiple calls.
405
+ # client = Google::Longrunning::Operations::Rest::Client.new
406
+ #
407
+ # # Create a request. To set request fields, pass in keyword arguments.
408
+ # request = Google::Longrunning::CancelOperationRequest.new
409
+ #
410
+ # # Call the cancel_operation method.
411
+ # result = client.cancel_operation request
412
+ #
413
+ # # The returned object is of type Google::Protobuf::Empty.
414
+ # p result
415
+ #
341
416
  def cancel_operation request, options = nil
342
417
  raise ::ArgumentError, "request must be provided" if request.nil?
343
418
 
@@ -496,6 +496,82 @@ module Google
496
496
  result
497
497
  end
498
498
 
499
+ ##
500
+ # Baseline implementation for the get_subnet REST call
501
+ #
502
+ # @param request_pb [::Google::Cloud::VmwareEngine::V1::GetSubnetRequest]
503
+ # A request object representing the call parameters. Required.
504
+ # @param options [::Gapic::CallOptions]
505
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
506
+ #
507
+ # @yield [result, operation] Access the result along with the TransportOperation object
508
+ # @yieldparam result [::Google::Cloud::VmwareEngine::V1::Subnet]
509
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
510
+ #
511
+ # @return [::Google::Cloud::VmwareEngine::V1::Subnet]
512
+ # A result object deserialized from the server's reply
513
+ def get_subnet request_pb, options = nil
514
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
515
+
516
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_subnet_request request_pb
517
+ query_string_params = if query_string_params.any?
518
+ query_string_params.to_h { |p| p.split "=", 2 }
519
+ else
520
+ {}
521
+ end
522
+
523
+ response = @client_stub.make_http_request(
524
+ verb,
525
+ uri: uri,
526
+ body: body || "",
527
+ params: query_string_params,
528
+ options: options
529
+ )
530
+ operation = ::Gapic::Rest::TransportOperation.new response
531
+ result = ::Google::Cloud::VmwareEngine::V1::Subnet.decode_json response.body, ignore_unknown_fields: true
532
+
533
+ yield result, operation if block_given?
534
+ result
535
+ end
536
+
537
+ ##
538
+ # Baseline implementation for the update_subnet REST call
539
+ #
540
+ # @param request_pb [::Google::Cloud::VmwareEngine::V1::UpdateSubnetRequest]
541
+ # A request object representing the call parameters. Required.
542
+ # @param options [::Gapic::CallOptions]
543
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
544
+ #
545
+ # @yield [result, operation] Access the result along with the TransportOperation object
546
+ # @yieldparam result [::Google::Longrunning::Operation]
547
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
548
+ #
549
+ # @return [::Google::Longrunning::Operation]
550
+ # A result object deserialized from the server's reply
551
+ def update_subnet request_pb, options = nil
552
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
553
+
554
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_subnet_request request_pb
555
+ query_string_params = if query_string_params.any?
556
+ query_string_params.to_h { |p| p.split "=", 2 }
557
+ else
558
+ {}
559
+ end
560
+
561
+ response = @client_stub.make_http_request(
562
+ verb,
563
+ uri: uri,
564
+ body: body || "",
565
+ params: query_string_params,
566
+ options: options
567
+ )
568
+ operation = ::Gapic::Rest::TransportOperation.new response
569
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
570
+
571
+ yield result, operation if block_given?
572
+ result
573
+ end
574
+
499
575
  ##
500
576
  # Baseline implementation for the list_node_types REST call
501
577
  #
@@ -1218,6 +1294,234 @@ module Google
1218
1294
  result
1219
1295
  end
1220
1296
 
1297
+ ##
1298
+ # Baseline implementation for the create_private_connection REST call
1299
+ #
1300
+ # @param request_pb [::Google::Cloud::VmwareEngine::V1::CreatePrivateConnectionRequest]
1301
+ # A request object representing the call parameters. Required.
1302
+ # @param options [::Gapic::CallOptions]
1303
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1304
+ #
1305
+ # @yield [result, operation] Access the result along with the TransportOperation object
1306
+ # @yieldparam result [::Google::Longrunning::Operation]
1307
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1308
+ #
1309
+ # @return [::Google::Longrunning::Operation]
1310
+ # A result object deserialized from the server's reply
1311
+ def create_private_connection request_pb, options = nil
1312
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1313
+
1314
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_private_connection_request request_pb
1315
+ query_string_params = if query_string_params.any?
1316
+ query_string_params.to_h { |p| p.split "=", 2 }
1317
+ else
1318
+ {}
1319
+ end
1320
+
1321
+ response = @client_stub.make_http_request(
1322
+ verb,
1323
+ uri: uri,
1324
+ body: body || "",
1325
+ params: query_string_params,
1326
+ options: options
1327
+ )
1328
+ operation = ::Gapic::Rest::TransportOperation.new response
1329
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
1330
+
1331
+ yield result, operation if block_given?
1332
+ result
1333
+ end
1334
+
1335
+ ##
1336
+ # Baseline implementation for the get_private_connection REST call
1337
+ #
1338
+ # @param request_pb [::Google::Cloud::VmwareEngine::V1::GetPrivateConnectionRequest]
1339
+ # A request object representing the call parameters. Required.
1340
+ # @param options [::Gapic::CallOptions]
1341
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1342
+ #
1343
+ # @yield [result, operation] Access the result along with the TransportOperation object
1344
+ # @yieldparam result [::Google::Cloud::VmwareEngine::V1::PrivateConnection]
1345
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1346
+ #
1347
+ # @return [::Google::Cloud::VmwareEngine::V1::PrivateConnection]
1348
+ # A result object deserialized from the server's reply
1349
+ def get_private_connection request_pb, options = nil
1350
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1351
+
1352
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_private_connection_request request_pb
1353
+ query_string_params = if query_string_params.any?
1354
+ query_string_params.to_h { |p| p.split "=", 2 }
1355
+ else
1356
+ {}
1357
+ end
1358
+
1359
+ response = @client_stub.make_http_request(
1360
+ verb,
1361
+ uri: uri,
1362
+ body: body || "",
1363
+ params: query_string_params,
1364
+ options: options
1365
+ )
1366
+ operation = ::Gapic::Rest::TransportOperation.new response
1367
+ result = ::Google::Cloud::VmwareEngine::V1::PrivateConnection.decode_json response.body, ignore_unknown_fields: true
1368
+
1369
+ yield result, operation if block_given?
1370
+ result
1371
+ end
1372
+
1373
+ ##
1374
+ # Baseline implementation for the list_private_connections REST call
1375
+ #
1376
+ # @param request_pb [::Google::Cloud::VmwareEngine::V1::ListPrivateConnectionsRequest]
1377
+ # A request object representing the call parameters. Required.
1378
+ # @param options [::Gapic::CallOptions]
1379
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1380
+ #
1381
+ # @yield [result, operation] Access the result along with the TransportOperation object
1382
+ # @yieldparam result [::Google::Cloud::VmwareEngine::V1::ListPrivateConnectionsResponse]
1383
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1384
+ #
1385
+ # @return [::Google::Cloud::VmwareEngine::V1::ListPrivateConnectionsResponse]
1386
+ # A result object deserialized from the server's reply
1387
+ def list_private_connections request_pb, options = nil
1388
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1389
+
1390
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_private_connections_request request_pb
1391
+ query_string_params = if query_string_params.any?
1392
+ query_string_params.to_h { |p| p.split "=", 2 }
1393
+ else
1394
+ {}
1395
+ end
1396
+
1397
+ response = @client_stub.make_http_request(
1398
+ verb,
1399
+ uri: uri,
1400
+ body: body || "",
1401
+ params: query_string_params,
1402
+ options: options
1403
+ )
1404
+ operation = ::Gapic::Rest::TransportOperation.new response
1405
+ result = ::Google::Cloud::VmwareEngine::V1::ListPrivateConnectionsResponse.decode_json response.body, ignore_unknown_fields: true
1406
+
1407
+ yield result, operation if block_given?
1408
+ result
1409
+ end
1410
+
1411
+ ##
1412
+ # Baseline implementation for the update_private_connection REST call
1413
+ #
1414
+ # @param request_pb [::Google::Cloud::VmwareEngine::V1::UpdatePrivateConnectionRequest]
1415
+ # A request object representing the call parameters. Required.
1416
+ # @param options [::Gapic::CallOptions]
1417
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1418
+ #
1419
+ # @yield [result, operation] Access the result along with the TransportOperation object
1420
+ # @yieldparam result [::Google::Longrunning::Operation]
1421
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1422
+ #
1423
+ # @return [::Google::Longrunning::Operation]
1424
+ # A result object deserialized from the server's reply
1425
+ def update_private_connection request_pb, options = nil
1426
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1427
+
1428
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_private_connection_request request_pb
1429
+ query_string_params = if query_string_params.any?
1430
+ query_string_params.to_h { |p| p.split "=", 2 }
1431
+ else
1432
+ {}
1433
+ end
1434
+
1435
+ response = @client_stub.make_http_request(
1436
+ verb,
1437
+ uri: uri,
1438
+ body: body || "",
1439
+ params: query_string_params,
1440
+ options: options
1441
+ )
1442
+ operation = ::Gapic::Rest::TransportOperation.new response
1443
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
1444
+
1445
+ yield result, operation if block_given?
1446
+ result
1447
+ end
1448
+
1449
+ ##
1450
+ # Baseline implementation for the delete_private_connection REST call
1451
+ #
1452
+ # @param request_pb [::Google::Cloud::VmwareEngine::V1::DeletePrivateConnectionRequest]
1453
+ # A request object representing the call parameters. Required.
1454
+ # @param options [::Gapic::CallOptions]
1455
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1456
+ #
1457
+ # @yield [result, operation] Access the result along with the TransportOperation object
1458
+ # @yieldparam result [::Google::Longrunning::Operation]
1459
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1460
+ #
1461
+ # @return [::Google::Longrunning::Operation]
1462
+ # A result object deserialized from the server's reply
1463
+ def delete_private_connection request_pb, options = nil
1464
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1465
+
1466
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_private_connection_request request_pb
1467
+ query_string_params = if query_string_params.any?
1468
+ query_string_params.to_h { |p| p.split "=", 2 }
1469
+ else
1470
+ {}
1471
+ end
1472
+
1473
+ response = @client_stub.make_http_request(
1474
+ verb,
1475
+ uri: uri,
1476
+ body: body || "",
1477
+ params: query_string_params,
1478
+ options: options
1479
+ )
1480
+ operation = ::Gapic::Rest::TransportOperation.new response
1481
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
1482
+
1483
+ yield result, operation if block_given?
1484
+ result
1485
+ end
1486
+
1487
+ ##
1488
+ # Baseline implementation for the list_private_connection_peering_routes REST call
1489
+ #
1490
+ # @param request_pb [::Google::Cloud::VmwareEngine::V1::ListPrivateConnectionPeeringRoutesRequest]
1491
+ # A request object representing the call parameters. Required.
1492
+ # @param options [::Gapic::CallOptions]
1493
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1494
+ #
1495
+ # @yield [result, operation] Access the result along with the TransportOperation object
1496
+ # @yieldparam result [::Google::Cloud::VmwareEngine::V1::ListPrivateConnectionPeeringRoutesResponse]
1497
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1498
+ #
1499
+ # @return [::Google::Cloud::VmwareEngine::V1::ListPrivateConnectionPeeringRoutesResponse]
1500
+ # A result object deserialized from the server's reply
1501
+ def list_private_connection_peering_routes request_pb, options = nil
1502
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1503
+
1504
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_private_connection_peering_routes_request request_pb
1505
+ query_string_params = if query_string_params.any?
1506
+ query_string_params.to_h { |p| p.split "=", 2 }
1507
+ else
1508
+ {}
1509
+ end
1510
+
1511
+ response = @client_stub.make_http_request(
1512
+ verb,
1513
+ uri: uri,
1514
+ body: body || "",
1515
+ params: query_string_params,
1516
+ options: options
1517
+ )
1518
+ operation = ::Gapic::Rest::TransportOperation.new response
1519
+ result = ::Google::Cloud::VmwareEngine::V1::ListPrivateConnectionPeeringRoutesResponse.decode_json response.body, ignore_unknown_fields: true
1520
+
1521
+ yield result, operation if block_given?
1522
+ result
1523
+ end
1524
+
1221
1525
  ##
1222
1526
  # @private
1223
1527
  #
@@ -1475,6 +1779,49 @@ module Google
1475
1779
  transcoder.transcode request_pb
1476
1780
  end
1477
1781
 
1782
+ ##
1783
+ # @private
1784
+ #
1785
+ # GRPC transcoding helper method for the get_subnet REST call
1786
+ #
1787
+ # @param request_pb [::Google::Cloud::VmwareEngine::V1::GetSubnetRequest]
1788
+ # A request object representing the call parameters. Required.
1789
+ # @return [Array(String, [String, nil], Hash{String => String})]
1790
+ # Uri, Body, Query string parameters
1791
+ def self.transcode_get_subnet_request request_pb
1792
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1793
+ .with_bindings(
1794
+ uri_method: :get,
1795
+ uri_template: "/v1/{name}",
1796
+ matches: [
1797
+ ["name", %r{^projects/[^/]+/locations/[^/]+/privateClouds/[^/]+/subnets/[^/]+/?$}, false]
1798
+ ]
1799
+ )
1800
+ transcoder.transcode request_pb
1801
+ end
1802
+
1803
+ ##
1804
+ # @private
1805
+ #
1806
+ # GRPC transcoding helper method for the update_subnet REST call
1807
+ #
1808
+ # @param request_pb [::Google::Cloud::VmwareEngine::V1::UpdateSubnetRequest]
1809
+ # A request object representing the call parameters. Required.
1810
+ # @return [Array(String, [String, nil], Hash{String => String})]
1811
+ # Uri, Body, Query string parameters
1812
+ def self.transcode_update_subnet_request request_pb
1813
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1814
+ .with_bindings(
1815
+ uri_method: :patch,
1816
+ uri_template: "/v1/{subnet.name}",
1817
+ body: "subnet",
1818
+ matches: [
1819
+ ["subnet.name", %r{^projects/[^/]+/locations/[^/]+/privateClouds/[^/]+/subnets/[^/]+/?$}, false]
1820
+ ]
1821
+ )
1822
+ transcoder.transcode request_pb
1823
+ end
1824
+
1478
1825
  ##
1479
1826
  # @private
1480
1827
  #
@@ -1880,6 +2227,134 @@ module Google
1880
2227
  )
1881
2228
  transcoder.transcode request_pb
1882
2229
  end
2230
+
2231
+ ##
2232
+ # @private
2233
+ #
2234
+ # GRPC transcoding helper method for the create_private_connection REST call
2235
+ #
2236
+ # @param request_pb [::Google::Cloud::VmwareEngine::V1::CreatePrivateConnectionRequest]
2237
+ # A request object representing the call parameters. Required.
2238
+ # @return [Array(String, [String, nil], Hash{String => String})]
2239
+ # Uri, Body, Query string parameters
2240
+ def self.transcode_create_private_connection_request request_pb
2241
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2242
+ .with_bindings(
2243
+ uri_method: :post,
2244
+ uri_template: "/v1/{parent}/privateConnections",
2245
+ body: "private_connection",
2246
+ matches: [
2247
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
2248
+ ]
2249
+ )
2250
+ transcoder.transcode request_pb
2251
+ end
2252
+
2253
+ ##
2254
+ # @private
2255
+ #
2256
+ # GRPC transcoding helper method for the get_private_connection REST call
2257
+ #
2258
+ # @param request_pb [::Google::Cloud::VmwareEngine::V1::GetPrivateConnectionRequest]
2259
+ # A request object representing the call parameters. Required.
2260
+ # @return [Array(String, [String, nil], Hash{String => String})]
2261
+ # Uri, Body, Query string parameters
2262
+ def self.transcode_get_private_connection_request request_pb
2263
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2264
+ .with_bindings(
2265
+ uri_method: :get,
2266
+ uri_template: "/v1/{name}",
2267
+ matches: [
2268
+ ["name", %r{^projects/[^/]+/locations/[^/]+/privateConnections/[^/]+/?$}, false]
2269
+ ]
2270
+ )
2271
+ transcoder.transcode request_pb
2272
+ end
2273
+
2274
+ ##
2275
+ # @private
2276
+ #
2277
+ # GRPC transcoding helper method for the list_private_connections REST call
2278
+ #
2279
+ # @param request_pb [::Google::Cloud::VmwareEngine::V1::ListPrivateConnectionsRequest]
2280
+ # A request object representing the call parameters. Required.
2281
+ # @return [Array(String, [String, nil], Hash{String => String})]
2282
+ # Uri, Body, Query string parameters
2283
+ def self.transcode_list_private_connections_request request_pb
2284
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2285
+ .with_bindings(
2286
+ uri_method: :get,
2287
+ uri_template: "/v1/{parent}/privateConnections",
2288
+ matches: [
2289
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
2290
+ ]
2291
+ )
2292
+ transcoder.transcode request_pb
2293
+ end
2294
+
2295
+ ##
2296
+ # @private
2297
+ #
2298
+ # GRPC transcoding helper method for the update_private_connection REST call
2299
+ #
2300
+ # @param request_pb [::Google::Cloud::VmwareEngine::V1::UpdatePrivateConnectionRequest]
2301
+ # A request object representing the call parameters. Required.
2302
+ # @return [Array(String, [String, nil], Hash{String => String})]
2303
+ # Uri, Body, Query string parameters
2304
+ def self.transcode_update_private_connection_request request_pb
2305
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2306
+ .with_bindings(
2307
+ uri_method: :patch,
2308
+ uri_template: "/v1/{private_connection.name}",
2309
+ body: "private_connection",
2310
+ matches: [
2311
+ ["private_connection.name", %r{^projects/[^/]+/locations/[^/]+/privateConnections/[^/]+/?$}, false]
2312
+ ]
2313
+ )
2314
+ transcoder.transcode request_pb
2315
+ end
2316
+
2317
+ ##
2318
+ # @private
2319
+ #
2320
+ # GRPC transcoding helper method for the delete_private_connection REST call
2321
+ #
2322
+ # @param request_pb [::Google::Cloud::VmwareEngine::V1::DeletePrivateConnectionRequest]
2323
+ # A request object representing the call parameters. Required.
2324
+ # @return [Array(String, [String, nil], Hash{String => String})]
2325
+ # Uri, Body, Query string parameters
2326
+ def self.transcode_delete_private_connection_request request_pb
2327
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2328
+ .with_bindings(
2329
+ uri_method: :delete,
2330
+ uri_template: "/v1/{name}",
2331
+ matches: [
2332
+ ["name", %r{^projects/[^/]+/locations/[^/]+/privateConnections/[^/]+/?$}, false]
2333
+ ]
2334
+ )
2335
+ transcoder.transcode request_pb
2336
+ end
2337
+
2338
+ ##
2339
+ # @private
2340
+ #
2341
+ # GRPC transcoding helper method for the list_private_connection_peering_routes REST call
2342
+ #
2343
+ # @param request_pb [::Google::Cloud::VmwareEngine::V1::ListPrivateConnectionPeeringRoutesRequest]
2344
+ # A request object representing the call parameters. Required.
2345
+ # @return [Array(String, [String, nil], Hash{String => String})]
2346
+ # Uri, Body, Query string parameters
2347
+ def self.transcode_list_private_connection_peering_routes_request request_pb
2348
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2349
+ .with_bindings(
2350
+ uri_method: :get,
2351
+ uri_template: "/v1/{parent}/peeringRoutes",
2352
+ matches: [
2353
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/privateConnections/[^/]+/?$}, false]
2354
+ ]
2355
+ )
2356
+ transcoder.transcode request_pb
2357
+ end
1883
2358
  end
1884
2359
  end
1885
2360
  end