google-cloud-vmware_engine-v1 0.3.0 → 0.4.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.
@@ -59,7 +59,7 @@ module Google
59
59
 
60
60
  verb, uri, query_string_params, body = ServiceStub.transcode_list_private_clouds_request request_pb
61
61
  query_string_params = if query_string_params.any?
62
- query_string_params.to_h { |p| p.split("=", 2) }
62
+ query_string_params.to_h { |p| p.split "=", 2 }
63
63
  else
64
64
  {}
65
65
  end
@@ -97,7 +97,7 @@ module Google
97
97
 
98
98
  verb, uri, query_string_params, body = ServiceStub.transcode_get_private_cloud_request request_pb
99
99
  query_string_params = if query_string_params.any?
100
- query_string_params.to_h { |p| p.split("=", 2) }
100
+ query_string_params.to_h { |p| p.split "=", 2 }
101
101
  else
102
102
  {}
103
103
  end
@@ -135,7 +135,7 @@ module Google
135
135
 
136
136
  verb, uri, query_string_params, body = ServiceStub.transcode_create_private_cloud_request request_pb
137
137
  query_string_params = if query_string_params.any?
138
- query_string_params.to_h { |p| p.split("=", 2) }
138
+ query_string_params.to_h { |p| p.split "=", 2 }
139
139
  else
140
140
  {}
141
141
  end
@@ -173,7 +173,7 @@ module Google
173
173
 
174
174
  verb, uri, query_string_params, body = ServiceStub.transcode_update_private_cloud_request request_pb
175
175
  query_string_params = if query_string_params.any?
176
- query_string_params.to_h { |p| p.split("=", 2) }
176
+ query_string_params.to_h { |p| p.split "=", 2 }
177
177
  else
178
178
  {}
179
179
  end
@@ -211,7 +211,7 @@ module Google
211
211
 
212
212
  verb, uri, query_string_params, body = ServiceStub.transcode_delete_private_cloud_request request_pb
213
213
  query_string_params = if query_string_params.any?
214
- query_string_params.to_h { |p| p.split("=", 2) }
214
+ query_string_params.to_h { |p| p.split "=", 2 }
215
215
  else
216
216
  {}
217
217
  end
@@ -249,7 +249,7 @@ module Google
249
249
 
250
250
  verb, uri, query_string_params, body = ServiceStub.transcode_undelete_private_cloud_request request_pb
251
251
  query_string_params = if query_string_params.any?
252
- query_string_params.to_h { |p| p.split("=", 2) }
252
+ query_string_params.to_h { |p| p.split "=", 2 }
253
253
  else
254
254
  {}
255
255
  end
@@ -287,7 +287,7 @@ module Google
287
287
 
288
288
  verb, uri, query_string_params, body = ServiceStub.transcode_list_clusters_request request_pb
289
289
  query_string_params = if query_string_params.any?
290
- query_string_params.to_h { |p| p.split("=", 2) }
290
+ query_string_params.to_h { |p| p.split "=", 2 }
291
291
  else
292
292
  {}
293
293
  end
@@ -325,7 +325,7 @@ module Google
325
325
 
326
326
  verb, uri, query_string_params, body = ServiceStub.transcode_get_cluster_request request_pb
327
327
  query_string_params = if query_string_params.any?
328
- query_string_params.to_h { |p| p.split("=", 2) }
328
+ query_string_params.to_h { |p| p.split "=", 2 }
329
329
  else
330
330
  {}
331
331
  end
@@ -363,7 +363,7 @@ module Google
363
363
 
364
364
  verb, uri, query_string_params, body = ServiceStub.transcode_create_cluster_request request_pb
365
365
  query_string_params = if query_string_params.any?
366
- query_string_params.to_h { |p| p.split("=", 2) }
366
+ query_string_params.to_h { |p| p.split "=", 2 }
367
367
  else
368
368
  {}
369
369
  end
@@ -401,7 +401,7 @@ module Google
401
401
 
402
402
  verb, uri, query_string_params, body = ServiceStub.transcode_update_cluster_request request_pb
403
403
  query_string_params = if query_string_params.any?
404
- query_string_params.to_h { |p| p.split("=", 2) }
404
+ query_string_params.to_h { |p| p.split "=", 2 }
405
405
  else
406
406
  {}
407
407
  end
@@ -439,7 +439,7 @@ module Google
439
439
 
440
440
  verb, uri, query_string_params, body = ServiceStub.transcode_delete_cluster_request request_pb
441
441
  query_string_params = if query_string_params.any?
442
- query_string_params.to_h { |p| p.split("=", 2) }
442
+ query_string_params.to_h { |p| p.split "=", 2 }
443
443
  else
444
444
  {}
445
445
  end
@@ -477,7 +477,7 @@ module Google
477
477
 
478
478
  verb, uri, query_string_params, body = ServiceStub.transcode_list_subnets_request request_pb
479
479
  query_string_params = if query_string_params.any?
480
- query_string_params.to_h { |p| p.split("=", 2) }
480
+ query_string_params.to_h { |p| p.split "=", 2 }
481
481
  else
482
482
  {}
483
483
  end
@@ -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
  #
@@ -515,7 +591,7 @@ module Google
515
591
 
516
592
  verb, uri, query_string_params, body = ServiceStub.transcode_list_node_types_request request_pb
517
593
  query_string_params = if query_string_params.any?
518
- query_string_params.to_h { |p| p.split("=", 2) }
594
+ query_string_params.to_h { |p| p.split "=", 2 }
519
595
  else
520
596
  {}
521
597
  end
@@ -553,7 +629,7 @@ module Google
553
629
 
554
630
  verb, uri, query_string_params, body = ServiceStub.transcode_get_node_type_request request_pb
555
631
  query_string_params = if query_string_params.any?
556
- query_string_params.to_h { |p| p.split("=", 2) }
632
+ query_string_params.to_h { |p| p.split "=", 2 }
557
633
  else
558
634
  {}
559
635
  end
@@ -591,7 +667,7 @@ module Google
591
667
 
592
668
  verb, uri, query_string_params, body = ServiceStub.transcode_show_nsx_credentials_request request_pb
593
669
  query_string_params = if query_string_params.any?
594
- query_string_params.to_h { |p| p.split("=", 2) }
670
+ query_string_params.to_h { |p| p.split "=", 2 }
595
671
  else
596
672
  {}
597
673
  end
@@ -629,7 +705,7 @@ module Google
629
705
 
630
706
  verb, uri, query_string_params, body = ServiceStub.transcode_show_vcenter_credentials_request request_pb
631
707
  query_string_params = if query_string_params.any?
632
- query_string_params.to_h { |p| p.split("=", 2) }
708
+ query_string_params.to_h { |p| p.split "=", 2 }
633
709
  else
634
710
  {}
635
711
  end
@@ -667,7 +743,7 @@ module Google
667
743
 
668
744
  verb, uri, query_string_params, body = ServiceStub.transcode_reset_nsx_credentials_request request_pb
669
745
  query_string_params = if query_string_params.any?
670
- query_string_params.to_h { |p| p.split("=", 2) }
746
+ query_string_params.to_h { |p| p.split "=", 2 }
671
747
  else
672
748
  {}
673
749
  end
@@ -705,7 +781,7 @@ module Google
705
781
 
706
782
  verb, uri, query_string_params, body = ServiceStub.transcode_reset_vcenter_credentials_request request_pb
707
783
  query_string_params = if query_string_params.any?
708
- query_string_params.to_h { |p| p.split("=", 2) }
784
+ query_string_params.to_h { |p| p.split "=", 2 }
709
785
  else
710
786
  {}
711
787
  end
@@ -743,7 +819,7 @@ module Google
743
819
 
744
820
  verb, uri, query_string_params, body = ServiceStub.transcode_create_hcx_activation_key_request request_pb
745
821
  query_string_params = if query_string_params.any?
746
- query_string_params.to_h { |p| p.split("=", 2) }
822
+ query_string_params.to_h { |p| p.split "=", 2 }
747
823
  else
748
824
  {}
749
825
  end
@@ -781,7 +857,7 @@ module Google
781
857
 
782
858
  verb, uri, query_string_params, body = ServiceStub.transcode_list_hcx_activation_keys_request request_pb
783
859
  query_string_params = if query_string_params.any?
784
- query_string_params.to_h { |p| p.split("=", 2) }
860
+ query_string_params.to_h { |p| p.split "=", 2 }
785
861
  else
786
862
  {}
787
863
  end
@@ -819,7 +895,7 @@ module Google
819
895
 
820
896
  verb, uri, query_string_params, body = ServiceStub.transcode_get_hcx_activation_key_request request_pb
821
897
  query_string_params = if query_string_params.any?
822
- query_string_params.to_h { |p| p.split("=", 2) }
898
+ query_string_params.to_h { |p| p.split "=", 2 }
823
899
  else
824
900
  {}
825
901
  end
@@ -857,7 +933,7 @@ module Google
857
933
 
858
934
  verb, uri, query_string_params, body = ServiceStub.transcode_get_network_policy_request request_pb
859
935
  query_string_params = if query_string_params.any?
860
- query_string_params.to_h { |p| p.split("=", 2) }
936
+ query_string_params.to_h { |p| p.split "=", 2 }
861
937
  else
862
938
  {}
863
939
  end
@@ -895,7 +971,7 @@ module Google
895
971
 
896
972
  verb, uri, query_string_params, body = ServiceStub.transcode_list_network_policies_request request_pb
897
973
  query_string_params = if query_string_params.any?
898
- query_string_params.to_h { |p| p.split("=", 2) }
974
+ query_string_params.to_h { |p| p.split "=", 2 }
899
975
  else
900
976
  {}
901
977
  end
@@ -933,7 +1009,7 @@ module Google
933
1009
 
934
1010
  verb, uri, query_string_params, body = ServiceStub.transcode_create_network_policy_request request_pb
935
1011
  query_string_params = if query_string_params.any?
936
- query_string_params.to_h { |p| p.split("=", 2) }
1012
+ query_string_params.to_h { |p| p.split "=", 2 }
937
1013
  else
938
1014
  {}
939
1015
  end
@@ -971,7 +1047,7 @@ module Google
971
1047
 
972
1048
  verb, uri, query_string_params, body = ServiceStub.transcode_update_network_policy_request request_pb
973
1049
  query_string_params = if query_string_params.any?
974
- query_string_params.to_h { |p| p.split("=", 2) }
1050
+ query_string_params.to_h { |p| p.split "=", 2 }
975
1051
  else
976
1052
  {}
977
1053
  end
@@ -1009,7 +1085,7 @@ module Google
1009
1085
 
1010
1086
  verb, uri, query_string_params, body = ServiceStub.transcode_delete_network_policy_request request_pb
1011
1087
  query_string_params = if query_string_params.any?
1012
- query_string_params.to_h { |p| p.split("=", 2) }
1088
+ query_string_params.to_h { |p| p.split "=", 2 }
1013
1089
  else
1014
1090
  {}
1015
1091
  end
@@ -1047,7 +1123,7 @@ module Google
1047
1123
 
1048
1124
  verb, uri, query_string_params, body = ServiceStub.transcode_create_vmware_engine_network_request request_pb
1049
1125
  query_string_params = if query_string_params.any?
1050
- query_string_params.to_h { |p| p.split("=", 2) }
1126
+ query_string_params.to_h { |p| p.split "=", 2 }
1051
1127
  else
1052
1128
  {}
1053
1129
  end
@@ -1085,7 +1161,7 @@ module Google
1085
1161
 
1086
1162
  verb, uri, query_string_params, body = ServiceStub.transcode_update_vmware_engine_network_request request_pb
1087
1163
  query_string_params = if query_string_params.any?
1088
- query_string_params.to_h { |p| p.split("=", 2) }
1164
+ query_string_params.to_h { |p| p.split "=", 2 }
1089
1165
  else
1090
1166
  {}
1091
1167
  end
@@ -1123,7 +1199,7 @@ module Google
1123
1199
 
1124
1200
  verb, uri, query_string_params, body = ServiceStub.transcode_delete_vmware_engine_network_request request_pb
1125
1201
  query_string_params = if query_string_params.any?
1126
- query_string_params.to_h { |p| p.split("=", 2) }
1202
+ query_string_params.to_h { |p| p.split "=", 2 }
1127
1203
  else
1128
1204
  {}
1129
1205
  end
@@ -1161,7 +1237,7 @@ module Google
1161
1237
 
1162
1238
  verb, uri, query_string_params, body = ServiceStub.transcode_get_vmware_engine_network_request request_pb
1163
1239
  query_string_params = if query_string_params.any?
1164
- query_string_params.to_h { |p| p.split("=", 2) }
1240
+ query_string_params.to_h { |p| p.split "=", 2 }
1165
1241
  else
1166
1242
  {}
1167
1243
  end
@@ -1199,7 +1275,7 @@ module Google
1199
1275
 
1200
1276
  verb, uri, query_string_params, body = ServiceStub.transcode_list_vmware_engine_networks_request request_pb
1201
1277
  query_string_params = if query_string_params.any?
1202
- query_string_params.to_h { |p| p.split("=", 2) }
1278
+ query_string_params.to_h { |p| p.split "=", 2 }
1203
1279
  else
1204
1280
  {}
1205
1281
  end
@@ -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