google-cloud-network_services-v1 2.1.0 → 2.3.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.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/network_services/v1/dep_service/client.rb +579 -24
  3. data/lib/google/cloud/network_services/v1/dep_service/paths.rb +19 -0
  4. data/lib/google/cloud/network_services/v1/dep_service/rest/client.rb +544 -24
  5. data/lib/google/cloud/network_services/v1/dep_service/rest/service_stub.rb +307 -0
  6. data/lib/google/cloud/network_services/v1/network_services/client.rb +2816 -824
  7. data/lib/google/cloud/network_services/v1/network_services/paths.rb +215 -0
  8. data/lib/google/cloud/network_services/v1/network_services/rest/client.rb +2658 -799
  9. data/lib/google/cloud/network_services/v1/network_services/rest/service_stub.rb +1443 -278
  10. data/lib/google/cloud/network_services/v1/version.rb +1 -1
  11. data/lib/google/cloud/networkservices/v1/common_pb.rb +2 -1
  12. data/lib/google/cloud/networkservices/v1/dep_pb.rb +10 -2
  13. data/lib/google/cloud/networkservices/v1/dep_services_pb.rb +12 -0
  14. data/lib/google/cloud/networkservices/v1/endpoint_policy_pb.rb +1 -1
  15. data/lib/google/cloud/networkservices/v1/extensibility_pb.rb +66 -0
  16. data/lib/google/cloud/networkservices/v1/gateway_pb.rb +4 -1
  17. data/lib/google/cloud/networkservices/v1/grpc_route_pb.rb +2 -1
  18. data/lib/google/cloud/networkservices/v1/http_route_pb.rb +3 -1
  19. data/lib/google/cloud/networkservices/v1/mesh_pb.rb +2 -1
  20. data/lib/google/cloud/networkservices/v1/network_services_pb.rb +6 -1
  21. data/lib/google/cloud/networkservices/v1/network_services_services_pb.rb +42 -0
  22. data/lib/google/cloud/networkservices/v1/route_view_pb.rb +52 -0
  23. data/lib/google/cloud/networkservices/v1/service_binding_pb.rb +4 -1
  24. data/lib/google/cloud/networkservices/v1/service_lb_policy_pb.rb +58 -0
  25. data/lib/google/cloud/networkservices/v1/tcp_route_pb.rb +3 -1
  26. data/lib/google/cloud/networkservices/v1/tls_route_pb.rb +3 -1
  27. data/proto_docs/google/cloud/networkservices/v1/common.rb +18 -1
  28. data/proto_docs/google/cloud/networkservices/v1/dep.rb +376 -52
  29. data/proto_docs/google/cloud/networkservices/v1/endpoint_policy.rb +12 -1
  30. data/proto_docs/google/cloud/networkservices/v1/extensibility.rb +518 -0
  31. data/proto_docs/google/cloud/networkservices/v1/gateway.rb +96 -8
  32. data/proto_docs/google/cloud/networkservices/v1/grpc_route.rb +51 -7
  33. data/proto_docs/google/cloud/networkservices/v1/http_route.rb +86 -1
  34. data/proto_docs/google/cloud/networkservices/v1/mesh.rb +16 -1
  35. data/proto_docs/google/cloud/networkservices/v1/route_view.rb +168 -0
  36. data/proto_docs/google/cloud/networkservices/v1/service_binding.rb +47 -10
  37. data/proto_docs/google/cloud/networkservices/v1/service_lb_policy.rb +217 -0
  38. data/proto_docs/google/cloud/networkservices/v1/tcp_route.rb +23 -7
  39. data/proto_docs/google/cloud/networkservices/v1/tls_route.rb +35 -6
  40. metadata +8 -2
@@ -274,23 +274,23 @@ module Google
274
274
  end
275
275
 
276
276
  ##
277
- # Baseline implementation for the list_gateways REST call
277
+ # Baseline implementation for the list_wasm_plugin_versions REST call
278
278
  #
279
- # @param request_pb [::Google::Cloud::NetworkServices::V1::ListGatewaysRequest]
279
+ # @param request_pb [::Google::Cloud::NetworkServices::V1::ListWasmPluginVersionsRequest]
280
280
  # A request object representing the call parameters. Required.
281
281
  # @param options [::Gapic::CallOptions]
282
282
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
283
283
  #
284
284
  # @yield [result, operation] Access the result along with the TransportOperation object
285
- # @yieldparam result [::Google::Cloud::NetworkServices::V1::ListGatewaysResponse]
285
+ # @yieldparam result [::Google::Cloud::NetworkServices::V1::ListWasmPluginVersionsResponse]
286
286
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
287
287
  #
288
- # @return [::Google::Cloud::NetworkServices::V1::ListGatewaysResponse]
288
+ # @return [::Google::Cloud::NetworkServices::V1::ListWasmPluginVersionsResponse]
289
289
  # A result object deserialized from the server's reply
290
- def list_gateways request_pb, options = nil
290
+ def list_wasm_plugin_versions request_pb, options = nil
291
291
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
292
292
 
293
- verb, uri, query_string_params, body = ServiceStub.transcode_list_gateways_request request_pb
293
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_wasm_plugin_versions_request request_pb
294
294
  query_string_params = if query_string_params.any?
295
295
  query_string_params.to_h { |p| p.split "=", 2 }
296
296
  else
@@ -302,11 +302,11 @@ module Google
302
302
  uri: uri,
303
303
  body: body || "",
304
304
  params: query_string_params,
305
- method_name: "list_gateways",
305
+ method_name: "list_wasm_plugin_versions",
306
306
  options: options
307
307
  )
308
308
  operation = ::Gapic::Rest::TransportOperation.new response
309
- result = ::Google::Cloud::NetworkServices::V1::ListGatewaysResponse.decode_json response.body, ignore_unknown_fields: true
309
+ result = ::Google::Cloud::NetworkServices::V1::ListWasmPluginVersionsResponse.decode_json response.body, ignore_unknown_fields: true
310
310
  catch :response do
311
311
  yield result, operation if block_given?
312
312
  result
@@ -314,23 +314,23 @@ module Google
314
314
  end
315
315
 
316
316
  ##
317
- # Baseline implementation for the get_gateway REST call
317
+ # Baseline implementation for the get_wasm_plugin_version REST call
318
318
  #
319
- # @param request_pb [::Google::Cloud::NetworkServices::V1::GetGatewayRequest]
319
+ # @param request_pb [::Google::Cloud::NetworkServices::V1::GetWasmPluginVersionRequest]
320
320
  # A request object representing the call parameters. Required.
321
321
  # @param options [::Gapic::CallOptions]
322
322
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
323
323
  #
324
324
  # @yield [result, operation] Access the result along with the TransportOperation object
325
- # @yieldparam result [::Google::Cloud::NetworkServices::V1::Gateway]
325
+ # @yieldparam result [::Google::Cloud::NetworkServices::V1::WasmPluginVersion]
326
326
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
327
327
  #
328
- # @return [::Google::Cloud::NetworkServices::V1::Gateway]
328
+ # @return [::Google::Cloud::NetworkServices::V1::WasmPluginVersion]
329
329
  # A result object deserialized from the server's reply
330
- def get_gateway request_pb, options = nil
330
+ def get_wasm_plugin_version request_pb, options = nil
331
331
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
332
332
 
333
- verb, uri, query_string_params, body = ServiceStub.transcode_get_gateway_request request_pb
333
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_wasm_plugin_version_request request_pb
334
334
  query_string_params = if query_string_params.any?
335
335
  query_string_params.to_h { |p| p.split "=", 2 }
336
336
  else
@@ -342,11 +342,11 @@ module Google
342
342
  uri: uri,
343
343
  body: body || "",
344
344
  params: query_string_params,
345
- method_name: "get_gateway",
345
+ method_name: "get_wasm_plugin_version",
346
346
  options: options
347
347
  )
348
348
  operation = ::Gapic::Rest::TransportOperation.new response
349
- result = ::Google::Cloud::NetworkServices::V1::Gateway.decode_json response.body, ignore_unknown_fields: true
349
+ result = ::Google::Cloud::NetworkServices::V1::WasmPluginVersion.decode_json response.body, ignore_unknown_fields: true
350
350
  catch :response do
351
351
  yield result, operation if block_given?
352
352
  result
@@ -354,9 +354,9 @@ module Google
354
354
  end
355
355
 
356
356
  ##
357
- # Baseline implementation for the create_gateway REST call
357
+ # Baseline implementation for the create_wasm_plugin_version REST call
358
358
  #
359
- # @param request_pb [::Google::Cloud::NetworkServices::V1::CreateGatewayRequest]
359
+ # @param request_pb [::Google::Cloud::NetworkServices::V1::CreateWasmPluginVersionRequest]
360
360
  # A request object representing the call parameters. Required.
361
361
  # @param options [::Gapic::CallOptions]
362
362
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
@@ -367,10 +367,10 @@ module Google
367
367
  #
368
368
  # @return [::Google::Longrunning::Operation]
369
369
  # A result object deserialized from the server's reply
370
- def create_gateway request_pb, options = nil
370
+ def create_wasm_plugin_version request_pb, options = nil
371
371
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
372
372
 
373
- verb, uri, query_string_params, body = ServiceStub.transcode_create_gateway_request request_pb
373
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_wasm_plugin_version_request request_pb
374
374
  query_string_params = if query_string_params.any?
375
375
  query_string_params.to_h { |p| p.split "=", 2 }
376
376
  else
@@ -382,7 +382,7 @@ module Google
382
382
  uri: uri,
383
383
  body: body || "",
384
384
  params: query_string_params,
385
- method_name: "create_gateway",
385
+ method_name: "create_wasm_plugin_version",
386
386
  options: options
387
387
  )
388
388
  operation = ::Gapic::Rest::TransportOperation.new response
@@ -394,9 +394,9 @@ module Google
394
394
  end
395
395
 
396
396
  ##
397
- # Baseline implementation for the update_gateway REST call
397
+ # Baseline implementation for the delete_wasm_plugin_version REST call
398
398
  #
399
- # @param request_pb [::Google::Cloud::NetworkServices::V1::UpdateGatewayRequest]
399
+ # @param request_pb [::Google::Cloud::NetworkServices::V1::DeleteWasmPluginVersionRequest]
400
400
  # A request object representing the call parameters. Required.
401
401
  # @param options [::Gapic::CallOptions]
402
402
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
@@ -407,10 +407,10 @@ module Google
407
407
  #
408
408
  # @return [::Google::Longrunning::Operation]
409
409
  # A result object deserialized from the server's reply
410
- def update_gateway request_pb, options = nil
410
+ def delete_wasm_plugin_version request_pb, options = nil
411
411
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
412
412
 
413
- verb, uri, query_string_params, body = ServiceStub.transcode_update_gateway_request request_pb
413
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_wasm_plugin_version_request request_pb
414
414
  query_string_params = if query_string_params.any?
415
415
  query_string_params.to_h { |p| p.split "=", 2 }
416
416
  else
@@ -422,7 +422,7 @@ module Google
422
422
  uri: uri,
423
423
  body: body || "",
424
424
  params: query_string_params,
425
- method_name: "update_gateway",
425
+ method_name: "delete_wasm_plugin_version",
426
426
  options: options
427
427
  )
428
428
  operation = ::Gapic::Rest::TransportOperation.new response
@@ -434,23 +434,23 @@ module Google
434
434
  end
435
435
 
436
436
  ##
437
- # Baseline implementation for the delete_gateway REST call
437
+ # Baseline implementation for the list_wasm_plugins REST call
438
438
  #
439
- # @param request_pb [::Google::Cloud::NetworkServices::V1::DeleteGatewayRequest]
439
+ # @param request_pb [::Google::Cloud::NetworkServices::V1::ListWasmPluginsRequest]
440
440
  # A request object representing the call parameters. Required.
441
441
  # @param options [::Gapic::CallOptions]
442
442
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
443
443
  #
444
444
  # @yield [result, operation] Access the result along with the TransportOperation object
445
- # @yieldparam result [::Google::Longrunning::Operation]
445
+ # @yieldparam result [::Google::Cloud::NetworkServices::V1::ListWasmPluginsResponse]
446
446
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
447
447
  #
448
- # @return [::Google::Longrunning::Operation]
448
+ # @return [::Google::Cloud::NetworkServices::V1::ListWasmPluginsResponse]
449
449
  # A result object deserialized from the server's reply
450
- def delete_gateway request_pb, options = nil
450
+ def list_wasm_plugins request_pb, options = nil
451
451
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
452
452
 
453
- verb, uri, query_string_params, body = ServiceStub.transcode_delete_gateway_request request_pb
453
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_wasm_plugins_request request_pb
454
454
  query_string_params = if query_string_params.any?
455
455
  query_string_params.to_h { |p| p.split "=", 2 }
456
456
  else
@@ -462,11 +462,11 @@ module Google
462
462
  uri: uri,
463
463
  body: body || "",
464
464
  params: query_string_params,
465
- method_name: "delete_gateway",
465
+ method_name: "list_wasm_plugins",
466
466
  options: options
467
467
  )
468
468
  operation = ::Gapic::Rest::TransportOperation.new response
469
- result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
469
+ result = ::Google::Cloud::NetworkServices::V1::ListWasmPluginsResponse.decode_json response.body, ignore_unknown_fields: true
470
470
  catch :response do
471
471
  yield result, operation if block_given?
472
472
  result
@@ -474,23 +474,23 @@ module Google
474
474
  end
475
475
 
476
476
  ##
477
- # Baseline implementation for the list_grpc_routes REST call
477
+ # Baseline implementation for the get_wasm_plugin REST call
478
478
  #
479
- # @param request_pb [::Google::Cloud::NetworkServices::V1::ListGrpcRoutesRequest]
479
+ # @param request_pb [::Google::Cloud::NetworkServices::V1::GetWasmPluginRequest]
480
480
  # A request object representing the call parameters. Required.
481
481
  # @param options [::Gapic::CallOptions]
482
482
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
483
483
  #
484
484
  # @yield [result, operation] Access the result along with the TransportOperation object
485
- # @yieldparam result [::Google::Cloud::NetworkServices::V1::ListGrpcRoutesResponse]
485
+ # @yieldparam result [::Google::Cloud::NetworkServices::V1::WasmPlugin]
486
486
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
487
487
  #
488
- # @return [::Google::Cloud::NetworkServices::V1::ListGrpcRoutesResponse]
488
+ # @return [::Google::Cloud::NetworkServices::V1::WasmPlugin]
489
489
  # A result object deserialized from the server's reply
490
- def list_grpc_routes request_pb, options = nil
490
+ def get_wasm_plugin request_pb, options = nil
491
491
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
492
492
 
493
- verb, uri, query_string_params, body = ServiceStub.transcode_list_grpc_routes_request request_pb
493
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_wasm_plugin_request request_pb
494
494
  query_string_params = if query_string_params.any?
495
495
  query_string_params.to_h { |p| p.split "=", 2 }
496
496
  else
@@ -502,11 +502,11 @@ module Google
502
502
  uri: uri,
503
503
  body: body || "",
504
504
  params: query_string_params,
505
- method_name: "list_grpc_routes",
505
+ method_name: "get_wasm_plugin",
506
506
  options: options
507
507
  )
508
508
  operation = ::Gapic::Rest::TransportOperation.new response
509
- result = ::Google::Cloud::NetworkServices::V1::ListGrpcRoutesResponse.decode_json response.body, ignore_unknown_fields: true
509
+ result = ::Google::Cloud::NetworkServices::V1::WasmPlugin.decode_json response.body, ignore_unknown_fields: true
510
510
  catch :response do
511
511
  yield result, operation if block_given?
512
512
  result
@@ -514,23 +514,23 @@ module Google
514
514
  end
515
515
 
516
516
  ##
517
- # Baseline implementation for the get_grpc_route REST call
517
+ # Baseline implementation for the create_wasm_plugin REST call
518
518
  #
519
- # @param request_pb [::Google::Cloud::NetworkServices::V1::GetGrpcRouteRequest]
519
+ # @param request_pb [::Google::Cloud::NetworkServices::V1::CreateWasmPluginRequest]
520
520
  # A request object representing the call parameters. Required.
521
521
  # @param options [::Gapic::CallOptions]
522
522
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
523
523
  #
524
524
  # @yield [result, operation] Access the result along with the TransportOperation object
525
- # @yieldparam result [::Google::Cloud::NetworkServices::V1::GrpcRoute]
525
+ # @yieldparam result [::Google::Longrunning::Operation]
526
526
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
527
527
  #
528
- # @return [::Google::Cloud::NetworkServices::V1::GrpcRoute]
528
+ # @return [::Google::Longrunning::Operation]
529
529
  # A result object deserialized from the server's reply
530
- def get_grpc_route request_pb, options = nil
530
+ def create_wasm_plugin request_pb, options = nil
531
531
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
532
532
 
533
- verb, uri, query_string_params, body = ServiceStub.transcode_get_grpc_route_request request_pb
533
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_wasm_plugin_request request_pb
534
534
  query_string_params = if query_string_params.any?
535
535
  query_string_params.to_h { |p| p.split "=", 2 }
536
536
  else
@@ -542,11 +542,11 @@ module Google
542
542
  uri: uri,
543
543
  body: body || "",
544
544
  params: query_string_params,
545
- method_name: "get_grpc_route",
545
+ method_name: "create_wasm_plugin",
546
546
  options: options
547
547
  )
548
548
  operation = ::Gapic::Rest::TransportOperation.new response
549
- result = ::Google::Cloud::NetworkServices::V1::GrpcRoute.decode_json response.body, ignore_unknown_fields: true
549
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
550
550
  catch :response do
551
551
  yield result, operation if block_given?
552
552
  result
@@ -554,9 +554,9 @@ module Google
554
554
  end
555
555
 
556
556
  ##
557
- # Baseline implementation for the create_grpc_route REST call
557
+ # Baseline implementation for the update_wasm_plugin REST call
558
558
  #
559
- # @param request_pb [::Google::Cloud::NetworkServices::V1::CreateGrpcRouteRequest]
559
+ # @param request_pb [::Google::Cloud::NetworkServices::V1::UpdateWasmPluginRequest]
560
560
  # A request object representing the call parameters. Required.
561
561
  # @param options [::Gapic::CallOptions]
562
562
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
@@ -567,10 +567,10 @@ module Google
567
567
  #
568
568
  # @return [::Google::Longrunning::Operation]
569
569
  # A result object deserialized from the server's reply
570
- def create_grpc_route request_pb, options = nil
570
+ def update_wasm_plugin request_pb, options = nil
571
571
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
572
572
 
573
- verb, uri, query_string_params, body = ServiceStub.transcode_create_grpc_route_request request_pb
573
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_wasm_plugin_request request_pb
574
574
  query_string_params = if query_string_params.any?
575
575
  query_string_params.to_h { |p| p.split "=", 2 }
576
576
  else
@@ -582,7 +582,7 @@ module Google
582
582
  uri: uri,
583
583
  body: body || "",
584
584
  params: query_string_params,
585
- method_name: "create_grpc_route",
585
+ method_name: "update_wasm_plugin",
586
586
  options: options
587
587
  )
588
588
  operation = ::Gapic::Rest::TransportOperation.new response
@@ -594,9 +594,9 @@ module Google
594
594
  end
595
595
 
596
596
  ##
597
- # Baseline implementation for the update_grpc_route REST call
597
+ # Baseline implementation for the delete_wasm_plugin REST call
598
598
  #
599
- # @param request_pb [::Google::Cloud::NetworkServices::V1::UpdateGrpcRouteRequest]
599
+ # @param request_pb [::Google::Cloud::NetworkServices::V1::DeleteWasmPluginRequest]
600
600
  # A request object representing the call parameters. Required.
601
601
  # @param options [::Gapic::CallOptions]
602
602
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
@@ -607,10 +607,10 @@ module Google
607
607
  #
608
608
  # @return [::Google::Longrunning::Operation]
609
609
  # A result object deserialized from the server's reply
610
- def update_grpc_route request_pb, options = nil
610
+ def delete_wasm_plugin request_pb, options = nil
611
611
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
612
612
 
613
- verb, uri, query_string_params, body = ServiceStub.transcode_update_grpc_route_request request_pb
613
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_wasm_plugin_request request_pb
614
614
  query_string_params = if query_string_params.any?
615
615
  query_string_params.to_h { |p| p.split "=", 2 }
616
616
  else
@@ -622,7 +622,7 @@ module Google
622
622
  uri: uri,
623
623
  body: body || "",
624
624
  params: query_string_params,
625
- method_name: "update_grpc_route",
625
+ method_name: "delete_wasm_plugin",
626
626
  options: options
627
627
  )
628
628
  operation = ::Gapic::Rest::TransportOperation.new response
@@ -634,23 +634,23 @@ module Google
634
634
  end
635
635
 
636
636
  ##
637
- # Baseline implementation for the delete_grpc_route REST call
637
+ # Baseline implementation for the list_gateways REST call
638
638
  #
639
- # @param request_pb [::Google::Cloud::NetworkServices::V1::DeleteGrpcRouteRequest]
639
+ # @param request_pb [::Google::Cloud::NetworkServices::V1::ListGatewaysRequest]
640
640
  # A request object representing the call parameters. Required.
641
641
  # @param options [::Gapic::CallOptions]
642
642
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
643
643
  #
644
644
  # @yield [result, operation] Access the result along with the TransportOperation object
645
- # @yieldparam result [::Google::Longrunning::Operation]
645
+ # @yieldparam result [::Google::Cloud::NetworkServices::V1::ListGatewaysResponse]
646
646
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
647
647
  #
648
- # @return [::Google::Longrunning::Operation]
648
+ # @return [::Google::Cloud::NetworkServices::V1::ListGatewaysResponse]
649
649
  # A result object deserialized from the server's reply
650
- def delete_grpc_route request_pb, options = nil
650
+ def list_gateways request_pb, options = nil
651
651
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
652
652
 
653
- verb, uri, query_string_params, body = ServiceStub.transcode_delete_grpc_route_request request_pb
653
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_gateways_request request_pb
654
654
  query_string_params = if query_string_params.any?
655
655
  query_string_params.to_h { |p| p.split "=", 2 }
656
656
  else
@@ -662,11 +662,11 @@ module Google
662
662
  uri: uri,
663
663
  body: body || "",
664
664
  params: query_string_params,
665
- method_name: "delete_grpc_route",
665
+ method_name: "list_gateways",
666
666
  options: options
667
667
  )
668
668
  operation = ::Gapic::Rest::TransportOperation.new response
669
- result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
669
+ result = ::Google::Cloud::NetworkServices::V1::ListGatewaysResponse.decode_json response.body, ignore_unknown_fields: true
670
670
  catch :response do
671
671
  yield result, operation if block_given?
672
672
  result
@@ -674,23 +674,23 @@ module Google
674
674
  end
675
675
 
676
676
  ##
677
- # Baseline implementation for the list_http_routes REST call
677
+ # Baseline implementation for the get_gateway REST call
678
678
  #
679
- # @param request_pb [::Google::Cloud::NetworkServices::V1::ListHttpRoutesRequest]
679
+ # @param request_pb [::Google::Cloud::NetworkServices::V1::GetGatewayRequest]
680
680
  # A request object representing the call parameters. Required.
681
681
  # @param options [::Gapic::CallOptions]
682
682
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
683
683
  #
684
684
  # @yield [result, operation] Access the result along with the TransportOperation object
685
- # @yieldparam result [::Google::Cloud::NetworkServices::V1::ListHttpRoutesResponse]
685
+ # @yieldparam result [::Google::Cloud::NetworkServices::V1::Gateway]
686
686
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
687
687
  #
688
- # @return [::Google::Cloud::NetworkServices::V1::ListHttpRoutesResponse]
688
+ # @return [::Google::Cloud::NetworkServices::V1::Gateway]
689
689
  # A result object deserialized from the server's reply
690
- def list_http_routes request_pb, options = nil
690
+ def get_gateway request_pb, options = nil
691
691
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
692
692
 
693
- verb, uri, query_string_params, body = ServiceStub.transcode_list_http_routes_request request_pb
693
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_gateway_request request_pb
694
694
  query_string_params = if query_string_params.any?
695
695
  query_string_params.to_h { |p| p.split "=", 2 }
696
696
  else
@@ -702,11 +702,11 @@ module Google
702
702
  uri: uri,
703
703
  body: body || "",
704
704
  params: query_string_params,
705
- method_name: "list_http_routes",
705
+ method_name: "get_gateway",
706
706
  options: options
707
707
  )
708
708
  operation = ::Gapic::Rest::TransportOperation.new response
709
- result = ::Google::Cloud::NetworkServices::V1::ListHttpRoutesResponse.decode_json response.body, ignore_unknown_fields: true
709
+ result = ::Google::Cloud::NetworkServices::V1::Gateway.decode_json response.body, ignore_unknown_fields: true
710
710
  catch :response do
711
711
  yield result, operation if block_given?
712
712
  result
@@ -714,23 +714,23 @@ module Google
714
714
  end
715
715
 
716
716
  ##
717
- # Baseline implementation for the get_http_route REST call
717
+ # Baseline implementation for the create_gateway REST call
718
718
  #
719
- # @param request_pb [::Google::Cloud::NetworkServices::V1::GetHttpRouteRequest]
719
+ # @param request_pb [::Google::Cloud::NetworkServices::V1::CreateGatewayRequest]
720
720
  # A request object representing the call parameters. Required.
721
721
  # @param options [::Gapic::CallOptions]
722
722
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
723
723
  #
724
724
  # @yield [result, operation] Access the result along with the TransportOperation object
725
- # @yieldparam result [::Google::Cloud::NetworkServices::V1::HttpRoute]
725
+ # @yieldparam result [::Google::Longrunning::Operation]
726
726
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
727
727
  #
728
- # @return [::Google::Cloud::NetworkServices::V1::HttpRoute]
728
+ # @return [::Google::Longrunning::Operation]
729
729
  # A result object deserialized from the server's reply
730
- def get_http_route request_pb, options = nil
730
+ def create_gateway request_pb, options = nil
731
731
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
732
732
 
733
- verb, uri, query_string_params, body = ServiceStub.transcode_get_http_route_request request_pb
733
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_gateway_request request_pb
734
734
  query_string_params = if query_string_params.any?
735
735
  query_string_params.to_h { |p| p.split "=", 2 }
736
736
  else
@@ -742,11 +742,11 @@ module Google
742
742
  uri: uri,
743
743
  body: body || "",
744
744
  params: query_string_params,
745
- method_name: "get_http_route",
745
+ method_name: "create_gateway",
746
746
  options: options
747
747
  )
748
748
  operation = ::Gapic::Rest::TransportOperation.new response
749
- result = ::Google::Cloud::NetworkServices::V1::HttpRoute.decode_json response.body, ignore_unknown_fields: true
749
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
750
750
  catch :response do
751
751
  yield result, operation if block_given?
752
752
  result
@@ -754,9 +754,9 @@ module Google
754
754
  end
755
755
 
756
756
  ##
757
- # Baseline implementation for the create_http_route REST call
757
+ # Baseline implementation for the update_gateway REST call
758
758
  #
759
- # @param request_pb [::Google::Cloud::NetworkServices::V1::CreateHttpRouteRequest]
759
+ # @param request_pb [::Google::Cloud::NetworkServices::V1::UpdateGatewayRequest]
760
760
  # A request object representing the call parameters. Required.
761
761
  # @param options [::Gapic::CallOptions]
762
762
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
@@ -767,10 +767,10 @@ module Google
767
767
  #
768
768
  # @return [::Google::Longrunning::Operation]
769
769
  # A result object deserialized from the server's reply
770
- def create_http_route request_pb, options = nil
770
+ def update_gateway request_pb, options = nil
771
771
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
772
772
 
773
- verb, uri, query_string_params, body = ServiceStub.transcode_create_http_route_request request_pb
773
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_gateway_request request_pb
774
774
  query_string_params = if query_string_params.any?
775
775
  query_string_params.to_h { |p| p.split "=", 2 }
776
776
  else
@@ -782,7 +782,7 @@ module Google
782
782
  uri: uri,
783
783
  body: body || "",
784
784
  params: query_string_params,
785
- method_name: "create_http_route",
785
+ method_name: "update_gateway",
786
786
  options: options
787
787
  )
788
788
  operation = ::Gapic::Rest::TransportOperation.new response
@@ -794,9 +794,9 @@ module Google
794
794
  end
795
795
 
796
796
  ##
797
- # Baseline implementation for the update_http_route REST call
797
+ # Baseline implementation for the delete_gateway REST call
798
798
  #
799
- # @param request_pb [::Google::Cloud::NetworkServices::V1::UpdateHttpRouteRequest]
799
+ # @param request_pb [::Google::Cloud::NetworkServices::V1::DeleteGatewayRequest]
800
800
  # A request object representing the call parameters. Required.
801
801
  # @param options [::Gapic::CallOptions]
802
802
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
@@ -807,10 +807,10 @@ module Google
807
807
  #
808
808
  # @return [::Google::Longrunning::Operation]
809
809
  # A result object deserialized from the server's reply
810
- def update_http_route request_pb, options = nil
810
+ def delete_gateway request_pb, options = nil
811
811
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
812
812
 
813
- verb, uri, query_string_params, body = ServiceStub.transcode_update_http_route_request request_pb
813
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_gateway_request request_pb
814
814
  query_string_params = if query_string_params.any?
815
815
  query_string_params.to_h { |p| p.split "=", 2 }
816
816
  else
@@ -822,7 +822,7 @@ module Google
822
822
  uri: uri,
823
823
  body: body || "",
824
824
  params: query_string_params,
825
- method_name: "update_http_route",
825
+ method_name: "delete_gateway",
826
826
  options: options
827
827
  )
828
828
  operation = ::Gapic::Rest::TransportOperation.new response
@@ -834,23 +834,23 @@ module Google
834
834
  end
835
835
 
836
836
  ##
837
- # Baseline implementation for the delete_http_route REST call
837
+ # Baseline implementation for the list_grpc_routes REST call
838
838
  #
839
- # @param request_pb [::Google::Cloud::NetworkServices::V1::DeleteHttpRouteRequest]
839
+ # @param request_pb [::Google::Cloud::NetworkServices::V1::ListGrpcRoutesRequest]
840
840
  # A request object representing the call parameters. Required.
841
841
  # @param options [::Gapic::CallOptions]
842
842
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
843
843
  #
844
844
  # @yield [result, operation] Access the result along with the TransportOperation object
845
- # @yieldparam result [::Google::Longrunning::Operation]
845
+ # @yieldparam result [::Google::Cloud::NetworkServices::V1::ListGrpcRoutesResponse]
846
846
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
847
847
  #
848
- # @return [::Google::Longrunning::Operation]
848
+ # @return [::Google::Cloud::NetworkServices::V1::ListGrpcRoutesResponse]
849
849
  # A result object deserialized from the server's reply
850
- def delete_http_route request_pb, options = nil
850
+ def list_grpc_routes request_pb, options = nil
851
851
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
852
852
 
853
- verb, uri, query_string_params, body = ServiceStub.transcode_delete_http_route_request request_pb
853
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_grpc_routes_request request_pb
854
854
  query_string_params = if query_string_params.any?
855
855
  query_string_params.to_h { |p| p.split "=", 2 }
856
856
  else
@@ -862,11 +862,11 @@ module Google
862
862
  uri: uri,
863
863
  body: body || "",
864
864
  params: query_string_params,
865
- method_name: "delete_http_route",
865
+ method_name: "list_grpc_routes",
866
866
  options: options
867
867
  )
868
868
  operation = ::Gapic::Rest::TransportOperation.new response
869
- result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
869
+ result = ::Google::Cloud::NetworkServices::V1::ListGrpcRoutesResponse.decode_json response.body, ignore_unknown_fields: true
870
870
  catch :response do
871
871
  yield result, operation if block_given?
872
872
  result
@@ -874,23 +874,23 @@ module Google
874
874
  end
875
875
 
876
876
  ##
877
- # Baseline implementation for the list_tcp_routes REST call
877
+ # Baseline implementation for the get_grpc_route REST call
878
878
  #
879
- # @param request_pb [::Google::Cloud::NetworkServices::V1::ListTcpRoutesRequest]
879
+ # @param request_pb [::Google::Cloud::NetworkServices::V1::GetGrpcRouteRequest]
880
880
  # A request object representing the call parameters. Required.
881
881
  # @param options [::Gapic::CallOptions]
882
882
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
883
883
  #
884
884
  # @yield [result, operation] Access the result along with the TransportOperation object
885
- # @yieldparam result [::Google::Cloud::NetworkServices::V1::ListTcpRoutesResponse]
885
+ # @yieldparam result [::Google::Cloud::NetworkServices::V1::GrpcRoute]
886
886
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
887
887
  #
888
- # @return [::Google::Cloud::NetworkServices::V1::ListTcpRoutesResponse]
888
+ # @return [::Google::Cloud::NetworkServices::V1::GrpcRoute]
889
889
  # A result object deserialized from the server's reply
890
- def list_tcp_routes request_pb, options = nil
890
+ def get_grpc_route request_pb, options = nil
891
891
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
892
892
 
893
- verb, uri, query_string_params, body = ServiceStub.transcode_list_tcp_routes_request request_pb
893
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_grpc_route_request request_pb
894
894
  query_string_params = if query_string_params.any?
895
895
  query_string_params.to_h { |p| p.split "=", 2 }
896
896
  else
@@ -902,11 +902,11 @@ module Google
902
902
  uri: uri,
903
903
  body: body || "",
904
904
  params: query_string_params,
905
- method_name: "list_tcp_routes",
905
+ method_name: "get_grpc_route",
906
906
  options: options
907
907
  )
908
908
  operation = ::Gapic::Rest::TransportOperation.new response
909
- result = ::Google::Cloud::NetworkServices::V1::ListTcpRoutesResponse.decode_json response.body, ignore_unknown_fields: true
909
+ result = ::Google::Cloud::NetworkServices::V1::GrpcRoute.decode_json response.body, ignore_unknown_fields: true
910
910
  catch :response do
911
911
  yield result, operation if block_given?
912
912
  result
@@ -914,23 +914,23 @@ module Google
914
914
  end
915
915
 
916
916
  ##
917
- # Baseline implementation for the get_tcp_route REST call
917
+ # Baseline implementation for the create_grpc_route REST call
918
918
  #
919
- # @param request_pb [::Google::Cloud::NetworkServices::V1::GetTcpRouteRequest]
919
+ # @param request_pb [::Google::Cloud::NetworkServices::V1::CreateGrpcRouteRequest]
920
920
  # A request object representing the call parameters. Required.
921
921
  # @param options [::Gapic::CallOptions]
922
922
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
923
923
  #
924
924
  # @yield [result, operation] Access the result along with the TransportOperation object
925
- # @yieldparam result [::Google::Cloud::NetworkServices::V1::TcpRoute]
925
+ # @yieldparam result [::Google::Longrunning::Operation]
926
926
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
927
927
  #
928
- # @return [::Google::Cloud::NetworkServices::V1::TcpRoute]
928
+ # @return [::Google::Longrunning::Operation]
929
929
  # A result object deserialized from the server's reply
930
- def get_tcp_route request_pb, options = nil
930
+ def create_grpc_route request_pb, options = nil
931
931
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
932
932
 
933
- verb, uri, query_string_params, body = ServiceStub.transcode_get_tcp_route_request request_pb
933
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_grpc_route_request request_pb
934
934
  query_string_params = if query_string_params.any?
935
935
  query_string_params.to_h { |p| p.split "=", 2 }
936
936
  else
@@ -942,11 +942,11 @@ module Google
942
942
  uri: uri,
943
943
  body: body || "",
944
944
  params: query_string_params,
945
- method_name: "get_tcp_route",
945
+ method_name: "create_grpc_route",
946
946
  options: options
947
947
  )
948
948
  operation = ::Gapic::Rest::TransportOperation.new response
949
- result = ::Google::Cloud::NetworkServices::V1::TcpRoute.decode_json response.body, ignore_unknown_fields: true
949
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
950
950
  catch :response do
951
951
  yield result, operation if block_given?
952
952
  result
@@ -954,9 +954,9 @@ module Google
954
954
  end
955
955
 
956
956
  ##
957
- # Baseline implementation for the create_tcp_route REST call
957
+ # Baseline implementation for the update_grpc_route REST call
958
958
  #
959
- # @param request_pb [::Google::Cloud::NetworkServices::V1::CreateTcpRouteRequest]
959
+ # @param request_pb [::Google::Cloud::NetworkServices::V1::UpdateGrpcRouteRequest]
960
960
  # A request object representing the call parameters. Required.
961
961
  # @param options [::Gapic::CallOptions]
962
962
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
@@ -967,10 +967,10 @@ module Google
967
967
  #
968
968
  # @return [::Google::Longrunning::Operation]
969
969
  # A result object deserialized from the server's reply
970
- def create_tcp_route request_pb, options = nil
970
+ def update_grpc_route request_pb, options = nil
971
971
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
972
972
 
973
- verb, uri, query_string_params, body = ServiceStub.transcode_create_tcp_route_request request_pb
973
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_grpc_route_request request_pb
974
974
  query_string_params = if query_string_params.any?
975
975
  query_string_params.to_h { |p| p.split "=", 2 }
976
976
  else
@@ -982,7 +982,7 @@ module Google
982
982
  uri: uri,
983
983
  body: body || "",
984
984
  params: query_string_params,
985
- method_name: "create_tcp_route",
985
+ method_name: "update_grpc_route",
986
986
  options: options
987
987
  )
988
988
  operation = ::Gapic::Rest::TransportOperation.new response
@@ -994,9 +994,9 @@ module Google
994
994
  end
995
995
 
996
996
  ##
997
- # Baseline implementation for the update_tcp_route REST call
997
+ # Baseline implementation for the delete_grpc_route REST call
998
998
  #
999
- # @param request_pb [::Google::Cloud::NetworkServices::V1::UpdateTcpRouteRequest]
999
+ # @param request_pb [::Google::Cloud::NetworkServices::V1::DeleteGrpcRouteRequest]
1000
1000
  # A request object representing the call parameters. Required.
1001
1001
  # @param options [::Gapic::CallOptions]
1002
1002
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
@@ -1007,10 +1007,10 @@ module Google
1007
1007
  #
1008
1008
  # @return [::Google::Longrunning::Operation]
1009
1009
  # A result object deserialized from the server's reply
1010
- def update_tcp_route request_pb, options = nil
1010
+ def delete_grpc_route request_pb, options = nil
1011
1011
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
1012
1012
 
1013
- verb, uri, query_string_params, body = ServiceStub.transcode_update_tcp_route_request request_pb
1013
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_grpc_route_request request_pb
1014
1014
  query_string_params = if query_string_params.any?
1015
1015
  query_string_params.to_h { |p| p.split "=", 2 }
1016
1016
  else
@@ -1022,7 +1022,7 @@ module Google
1022
1022
  uri: uri,
1023
1023
  body: body || "",
1024
1024
  params: query_string_params,
1025
- method_name: "update_tcp_route",
1025
+ method_name: "delete_grpc_route",
1026
1026
  options: options
1027
1027
  )
1028
1028
  operation = ::Gapic::Rest::TransportOperation.new response
@@ -1034,23 +1034,23 @@ module Google
1034
1034
  end
1035
1035
 
1036
1036
  ##
1037
- # Baseline implementation for the delete_tcp_route REST call
1037
+ # Baseline implementation for the list_http_routes REST call
1038
1038
  #
1039
- # @param request_pb [::Google::Cloud::NetworkServices::V1::DeleteTcpRouteRequest]
1039
+ # @param request_pb [::Google::Cloud::NetworkServices::V1::ListHttpRoutesRequest]
1040
1040
  # A request object representing the call parameters. Required.
1041
1041
  # @param options [::Gapic::CallOptions]
1042
1042
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1043
1043
  #
1044
1044
  # @yield [result, operation] Access the result along with the TransportOperation object
1045
- # @yieldparam result [::Google::Longrunning::Operation]
1045
+ # @yieldparam result [::Google::Cloud::NetworkServices::V1::ListHttpRoutesResponse]
1046
1046
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
1047
1047
  #
1048
- # @return [::Google::Longrunning::Operation]
1048
+ # @return [::Google::Cloud::NetworkServices::V1::ListHttpRoutesResponse]
1049
1049
  # A result object deserialized from the server's reply
1050
- def delete_tcp_route request_pb, options = nil
1050
+ def list_http_routes request_pb, options = nil
1051
1051
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
1052
1052
 
1053
- verb, uri, query_string_params, body = ServiceStub.transcode_delete_tcp_route_request request_pb
1053
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_http_routes_request request_pb
1054
1054
  query_string_params = if query_string_params.any?
1055
1055
  query_string_params.to_h { |p| p.split "=", 2 }
1056
1056
  else
@@ -1062,11 +1062,11 @@ module Google
1062
1062
  uri: uri,
1063
1063
  body: body || "",
1064
1064
  params: query_string_params,
1065
- method_name: "delete_tcp_route",
1065
+ method_name: "list_http_routes",
1066
1066
  options: options
1067
1067
  )
1068
1068
  operation = ::Gapic::Rest::TransportOperation.new response
1069
- result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
1069
+ result = ::Google::Cloud::NetworkServices::V1::ListHttpRoutesResponse.decode_json response.body, ignore_unknown_fields: true
1070
1070
  catch :response do
1071
1071
  yield result, operation if block_given?
1072
1072
  result
@@ -1074,23 +1074,23 @@ module Google
1074
1074
  end
1075
1075
 
1076
1076
  ##
1077
- # Baseline implementation for the list_tls_routes REST call
1077
+ # Baseline implementation for the get_http_route REST call
1078
1078
  #
1079
- # @param request_pb [::Google::Cloud::NetworkServices::V1::ListTlsRoutesRequest]
1079
+ # @param request_pb [::Google::Cloud::NetworkServices::V1::GetHttpRouteRequest]
1080
1080
  # A request object representing the call parameters. Required.
1081
1081
  # @param options [::Gapic::CallOptions]
1082
1082
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1083
1083
  #
1084
1084
  # @yield [result, operation] Access the result along with the TransportOperation object
1085
- # @yieldparam result [::Google::Cloud::NetworkServices::V1::ListTlsRoutesResponse]
1085
+ # @yieldparam result [::Google::Cloud::NetworkServices::V1::HttpRoute]
1086
1086
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
1087
1087
  #
1088
- # @return [::Google::Cloud::NetworkServices::V1::ListTlsRoutesResponse]
1088
+ # @return [::Google::Cloud::NetworkServices::V1::HttpRoute]
1089
1089
  # A result object deserialized from the server's reply
1090
- def list_tls_routes request_pb, options = nil
1090
+ def get_http_route request_pb, options = nil
1091
1091
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
1092
1092
 
1093
- verb, uri, query_string_params, body = ServiceStub.transcode_list_tls_routes_request request_pb
1093
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_http_route_request request_pb
1094
1094
  query_string_params = if query_string_params.any?
1095
1095
  query_string_params.to_h { |p| p.split "=", 2 }
1096
1096
  else
@@ -1102,11 +1102,11 @@ module Google
1102
1102
  uri: uri,
1103
1103
  body: body || "",
1104
1104
  params: query_string_params,
1105
- method_name: "list_tls_routes",
1105
+ method_name: "get_http_route",
1106
1106
  options: options
1107
1107
  )
1108
1108
  operation = ::Gapic::Rest::TransportOperation.new response
1109
- result = ::Google::Cloud::NetworkServices::V1::ListTlsRoutesResponse.decode_json response.body, ignore_unknown_fields: true
1109
+ result = ::Google::Cloud::NetworkServices::V1::HttpRoute.decode_json response.body, ignore_unknown_fields: true
1110
1110
  catch :response do
1111
1111
  yield result, operation if block_given?
1112
1112
  result
@@ -1114,23 +1114,23 @@ module Google
1114
1114
  end
1115
1115
 
1116
1116
  ##
1117
- # Baseline implementation for the get_tls_route REST call
1117
+ # Baseline implementation for the create_http_route REST call
1118
1118
  #
1119
- # @param request_pb [::Google::Cloud::NetworkServices::V1::GetTlsRouteRequest]
1119
+ # @param request_pb [::Google::Cloud::NetworkServices::V1::CreateHttpRouteRequest]
1120
1120
  # A request object representing the call parameters. Required.
1121
1121
  # @param options [::Gapic::CallOptions]
1122
1122
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1123
1123
  #
1124
1124
  # @yield [result, operation] Access the result along with the TransportOperation object
1125
- # @yieldparam result [::Google::Cloud::NetworkServices::V1::TlsRoute]
1125
+ # @yieldparam result [::Google::Longrunning::Operation]
1126
1126
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
1127
1127
  #
1128
- # @return [::Google::Cloud::NetworkServices::V1::TlsRoute]
1128
+ # @return [::Google::Longrunning::Operation]
1129
1129
  # A result object deserialized from the server's reply
1130
- def get_tls_route request_pb, options = nil
1130
+ def create_http_route request_pb, options = nil
1131
1131
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
1132
1132
 
1133
- verb, uri, query_string_params, body = ServiceStub.transcode_get_tls_route_request request_pb
1133
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_http_route_request request_pb
1134
1134
  query_string_params = if query_string_params.any?
1135
1135
  query_string_params.to_h { |p| p.split "=", 2 }
1136
1136
  else
@@ -1142,11 +1142,11 @@ module Google
1142
1142
  uri: uri,
1143
1143
  body: body || "",
1144
1144
  params: query_string_params,
1145
- method_name: "get_tls_route",
1145
+ method_name: "create_http_route",
1146
1146
  options: options
1147
1147
  )
1148
1148
  operation = ::Gapic::Rest::TransportOperation.new response
1149
- result = ::Google::Cloud::NetworkServices::V1::TlsRoute.decode_json response.body, ignore_unknown_fields: true
1149
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
1150
1150
  catch :response do
1151
1151
  yield result, operation if block_given?
1152
1152
  result
@@ -1154,9 +1154,9 @@ module Google
1154
1154
  end
1155
1155
 
1156
1156
  ##
1157
- # Baseline implementation for the create_tls_route REST call
1157
+ # Baseline implementation for the update_http_route REST call
1158
1158
  #
1159
- # @param request_pb [::Google::Cloud::NetworkServices::V1::CreateTlsRouteRequest]
1159
+ # @param request_pb [::Google::Cloud::NetworkServices::V1::UpdateHttpRouteRequest]
1160
1160
  # A request object representing the call parameters. Required.
1161
1161
  # @param options [::Gapic::CallOptions]
1162
1162
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
@@ -1167,10 +1167,10 @@ module Google
1167
1167
  #
1168
1168
  # @return [::Google::Longrunning::Operation]
1169
1169
  # A result object deserialized from the server's reply
1170
- def create_tls_route request_pb, options = nil
1170
+ def update_http_route request_pb, options = nil
1171
1171
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
1172
1172
 
1173
- verb, uri, query_string_params, body = ServiceStub.transcode_create_tls_route_request request_pb
1173
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_http_route_request request_pb
1174
1174
  query_string_params = if query_string_params.any?
1175
1175
  query_string_params.to_h { |p| p.split "=", 2 }
1176
1176
  else
@@ -1182,7 +1182,7 @@ module Google
1182
1182
  uri: uri,
1183
1183
  body: body || "",
1184
1184
  params: query_string_params,
1185
- method_name: "create_tls_route",
1185
+ method_name: "update_http_route",
1186
1186
  options: options
1187
1187
  )
1188
1188
  operation = ::Gapic::Rest::TransportOperation.new response
@@ -1194,9 +1194,9 @@ module Google
1194
1194
  end
1195
1195
 
1196
1196
  ##
1197
- # Baseline implementation for the update_tls_route REST call
1197
+ # Baseline implementation for the delete_http_route REST call
1198
1198
  #
1199
- # @param request_pb [::Google::Cloud::NetworkServices::V1::UpdateTlsRouteRequest]
1199
+ # @param request_pb [::Google::Cloud::NetworkServices::V1::DeleteHttpRouteRequest]
1200
1200
  # A request object representing the call parameters. Required.
1201
1201
  # @param options [::Gapic::CallOptions]
1202
1202
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
@@ -1207,10 +1207,10 @@ module Google
1207
1207
  #
1208
1208
  # @return [::Google::Longrunning::Operation]
1209
1209
  # A result object deserialized from the server's reply
1210
- def update_tls_route request_pb, options = nil
1210
+ def delete_http_route request_pb, options = nil
1211
1211
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
1212
1212
 
1213
- verb, uri, query_string_params, body = ServiceStub.transcode_update_tls_route_request request_pb
1213
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_http_route_request request_pb
1214
1214
  query_string_params = if query_string_params.any?
1215
1215
  query_string_params.to_h { |p| p.split "=", 2 }
1216
1216
  else
@@ -1222,7 +1222,7 @@ module Google
1222
1222
  uri: uri,
1223
1223
  body: body || "",
1224
1224
  params: query_string_params,
1225
- method_name: "update_tls_route",
1225
+ method_name: "delete_http_route",
1226
1226
  options: options
1227
1227
  )
1228
1228
  operation = ::Gapic::Rest::TransportOperation.new response
@@ -1234,23 +1234,23 @@ module Google
1234
1234
  end
1235
1235
 
1236
1236
  ##
1237
- # Baseline implementation for the delete_tls_route REST call
1237
+ # Baseline implementation for the list_tcp_routes REST call
1238
1238
  #
1239
- # @param request_pb [::Google::Cloud::NetworkServices::V1::DeleteTlsRouteRequest]
1239
+ # @param request_pb [::Google::Cloud::NetworkServices::V1::ListTcpRoutesRequest]
1240
1240
  # A request object representing the call parameters. Required.
1241
1241
  # @param options [::Gapic::CallOptions]
1242
1242
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1243
1243
  #
1244
1244
  # @yield [result, operation] Access the result along with the TransportOperation object
1245
- # @yieldparam result [::Google::Longrunning::Operation]
1245
+ # @yieldparam result [::Google::Cloud::NetworkServices::V1::ListTcpRoutesResponse]
1246
1246
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
1247
1247
  #
1248
- # @return [::Google::Longrunning::Operation]
1248
+ # @return [::Google::Cloud::NetworkServices::V1::ListTcpRoutesResponse]
1249
1249
  # A result object deserialized from the server's reply
1250
- def delete_tls_route request_pb, options = nil
1250
+ def list_tcp_routes request_pb, options = nil
1251
1251
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
1252
1252
 
1253
- verb, uri, query_string_params, body = ServiceStub.transcode_delete_tls_route_request request_pb
1253
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_tcp_routes_request request_pb
1254
1254
  query_string_params = if query_string_params.any?
1255
1255
  query_string_params.to_h { |p| p.split "=", 2 }
1256
1256
  else
@@ -1262,11 +1262,11 @@ module Google
1262
1262
  uri: uri,
1263
1263
  body: body || "",
1264
1264
  params: query_string_params,
1265
- method_name: "delete_tls_route",
1265
+ method_name: "list_tcp_routes",
1266
1266
  options: options
1267
1267
  )
1268
1268
  operation = ::Gapic::Rest::TransportOperation.new response
1269
- result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
1269
+ result = ::Google::Cloud::NetworkServices::V1::ListTcpRoutesResponse.decode_json response.body, ignore_unknown_fields: true
1270
1270
  catch :response do
1271
1271
  yield result, operation if block_given?
1272
1272
  result
@@ -1274,23 +1274,23 @@ module Google
1274
1274
  end
1275
1275
 
1276
1276
  ##
1277
- # Baseline implementation for the list_service_bindings REST call
1277
+ # Baseline implementation for the get_tcp_route REST call
1278
1278
  #
1279
- # @param request_pb [::Google::Cloud::NetworkServices::V1::ListServiceBindingsRequest]
1279
+ # @param request_pb [::Google::Cloud::NetworkServices::V1::GetTcpRouteRequest]
1280
1280
  # A request object representing the call parameters. Required.
1281
1281
  # @param options [::Gapic::CallOptions]
1282
1282
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1283
1283
  #
1284
1284
  # @yield [result, operation] Access the result along with the TransportOperation object
1285
- # @yieldparam result [::Google::Cloud::NetworkServices::V1::ListServiceBindingsResponse]
1285
+ # @yieldparam result [::Google::Cloud::NetworkServices::V1::TcpRoute]
1286
1286
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
1287
1287
  #
1288
- # @return [::Google::Cloud::NetworkServices::V1::ListServiceBindingsResponse]
1288
+ # @return [::Google::Cloud::NetworkServices::V1::TcpRoute]
1289
1289
  # A result object deserialized from the server's reply
1290
- def list_service_bindings request_pb, options = nil
1290
+ def get_tcp_route request_pb, options = nil
1291
1291
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
1292
1292
 
1293
- verb, uri, query_string_params, body = ServiceStub.transcode_list_service_bindings_request request_pb
1293
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_tcp_route_request request_pb
1294
1294
  query_string_params = if query_string_params.any?
1295
1295
  query_string_params.to_h { |p| p.split "=", 2 }
1296
1296
  else
@@ -1302,11 +1302,11 @@ module Google
1302
1302
  uri: uri,
1303
1303
  body: body || "",
1304
1304
  params: query_string_params,
1305
- method_name: "list_service_bindings",
1305
+ method_name: "get_tcp_route",
1306
1306
  options: options
1307
1307
  )
1308
1308
  operation = ::Gapic::Rest::TransportOperation.new response
1309
- result = ::Google::Cloud::NetworkServices::V1::ListServiceBindingsResponse.decode_json response.body, ignore_unknown_fields: true
1309
+ result = ::Google::Cloud::NetworkServices::V1::TcpRoute.decode_json response.body, ignore_unknown_fields: true
1310
1310
  catch :response do
1311
1311
  yield result, operation if block_given?
1312
1312
  result
@@ -1314,23 +1314,23 @@ module Google
1314
1314
  end
1315
1315
 
1316
1316
  ##
1317
- # Baseline implementation for the get_service_binding REST call
1317
+ # Baseline implementation for the create_tcp_route REST call
1318
1318
  #
1319
- # @param request_pb [::Google::Cloud::NetworkServices::V1::GetServiceBindingRequest]
1319
+ # @param request_pb [::Google::Cloud::NetworkServices::V1::CreateTcpRouteRequest]
1320
1320
  # A request object representing the call parameters. Required.
1321
1321
  # @param options [::Gapic::CallOptions]
1322
1322
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1323
1323
  #
1324
1324
  # @yield [result, operation] Access the result along with the TransportOperation object
1325
- # @yieldparam result [::Google::Cloud::NetworkServices::V1::ServiceBinding]
1325
+ # @yieldparam result [::Google::Longrunning::Operation]
1326
1326
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
1327
1327
  #
1328
- # @return [::Google::Cloud::NetworkServices::V1::ServiceBinding]
1328
+ # @return [::Google::Longrunning::Operation]
1329
1329
  # A result object deserialized from the server's reply
1330
- def get_service_binding request_pb, options = nil
1330
+ def create_tcp_route request_pb, options = nil
1331
1331
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
1332
1332
 
1333
- verb, uri, query_string_params, body = ServiceStub.transcode_get_service_binding_request request_pb
1333
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_tcp_route_request request_pb
1334
1334
  query_string_params = if query_string_params.any?
1335
1335
  query_string_params.to_h { |p| p.split "=", 2 }
1336
1336
  else
@@ -1342,11 +1342,11 @@ module Google
1342
1342
  uri: uri,
1343
1343
  body: body || "",
1344
1344
  params: query_string_params,
1345
- method_name: "get_service_binding",
1345
+ method_name: "create_tcp_route",
1346
1346
  options: options
1347
1347
  )
1348
1348
  operation = ::Gapic::Rest::TransportOperation.new response
1349
- result = ::Google::Cloud::NetworkServices::V1::ServiceBinding.decode_json response.body, ignore_unknown_fields: true
1349
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
1350
1350
  catch :response do
1351
1351
  yield result, operation if block_given?
1352
1352
  result
@@ -1354,9 +1354,9 @@ module Google
1354
1354
  end
1355
1355
 
1356
1356
  ##
1357
- # Baseline implementation for the create_service_binding REST call
1357
+ # Baseline implementation for the update_tcp_route REST call
1358
1358
  #
1359
- # @param request_pb [::Google::Cloud::NetworkServices::V1::CreateServiceBindingRequest]
1359
+ # @param request_pb [::Google::Cloud::NetworkServices::V1::UpdateTcpRouteRequest]
1360
1360
  # A request object representing the call parameters. Required.
1361
1361
  # @param options [::Gapic::CallOptions]
1362
1362
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
@@ -1367,10 +1367,10 @@ module Google
1367
1367
  #
1368
1368
  # @return [::Google::Longrunning::Operation]
1369
1369
  # A result object deserialized from the server's reply
1370
- def create_service_binding request_pb, options = nil
1370
+ def update_tcp_route request_pb, options = nil
1371
1371
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
1372
1372
 
1373
- verb, uri, query_string_params, body = ServiceStub.transcode_create_service_binding_request request_pb
1373
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_tcp_route_request request_pb
1374
1374
  query_string_params = if query_string_params.any?
1375
1375
  query_string_params.to_h { |p| p.split "=", 2 }
1376
1376
  else
@@ -1382,7 +1382,7 @@ module Google
1382
1382
  uri: uri,
1383
1383
  body: body || "",
1384
1384
  params: query_string_params,
1385
- method_name: "create_service_binding",
1385
+ method_name: "update_tcp_route",
1386
1386
  options: options
1387
1387
  )
1388
1388
  operation = ::Gapic::Rest::TransportOperation.new response
@@ -1394,9 +1394,9 @@ module Google
1394
1394
  end
1395
1395
 
1396
1396
  ##
1397
- # Baseline implementation for the delete_service_binding REST call
1397
+ # Baseline implementation for the delete_tcp_route REST call
1398
1398
  #
1399
- # @param request_pb [::Google::Cloud::NetworkServices::V1::DeleteServiceBindingRequest]
1399
+ # @param request_pb [::Google::Cloud::NetworkServices::V1::DeleteTcpRouteRequest]
1400
1400
  # A request object representing the call parameters. Required.
1401
1401
  # @param options [::Gapic::CallOptions]
1402
1402
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
@@ -1407,10 +1407,10 @@ module Google
1407
1407
  #
1408
1408
  # @return [::Google::Longrunning::Operation]
1409
1409
  # A result object deserialized from the server's reply
1410
- def delete_service_binding request_pb, options = nil
1410
+ def delete_tcp_route request_pb, options = nil
1411
1411
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
1412
1412
 
1413
- verb, uri, query_string_params, body = ServiceStub.transcode_delete_service_binding_request request_pb
1413
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_tcp_route_request request_pb
1414
1414
  query_string_params = if query_string_params.any?
1415
1415
  query_string_params.to_h { |p| p.split "=", 2 }
1416
1416
  else
@@ -1422,7 +1422,7 @@ module Google
1422
1422
  uri: uri,
1423
1423
  body: body || "",
1424
1424
  params: query_string_params,
1425
- method_name: "delete_service_binding",
1425
+ method_name: "delete_tcp_route",
1426
1426
  options: options
1427
1427
  )
1428
1428
  operation = ::Gapic::Rest::TransportOperation.new response
@@ -1434,23 +1434,23 @@ module Google
1434
1434
  end
1435
1435
 
1436
1436
  ##
1437
- # Baseline implementation for the list_meshes REST call
1437
+ # Baseline implementation for the list_tls_routes REST call
1438
1438
  #
1439
- # @param request_pb [::Google::Cloud::NetworkServices::V1::ListMeshesRequest]
1439
+ # @param request_pb [::Google::Cloud::NetworkServices::V1::ListTlsRoutesRequest]
1440
1440
  # A request object representing the call parameters. Required.
1441
1441
  # @param options [::Gapic::CallOptions]
1442
1442
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1443
1443
  #
1444
1444
  # @yield [result, operation] Access the result along with the TransportOperation object
1445
- # @yieldparam result [::Google::Cloud::NetworkServices::V1::ListMeshesResponse]
1445
+ # @yieldparam result [::Google::Cloud::NetworkServices::V1::ListTlsRoutesResponse]
1446
1446
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
1447
1447
  #
1448
- # @return [::Google::Cloud::NetworkServices::V1::ListMeshesResponse]
1448
+ # @return [::Google::Cloud::NetworkServices::V1::ListTlsRoutesResponse]
1449
1449
  # A result object deserialized from the server's reply
1450
- def list_meshes request_pb, options = nil
1450
+ def list_tls_routes request_pb, options = nil
1451
1451
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
1452
1452
 
1453
- verb, uri, query_string_params, body = ServiceStub.transcode_list_meshes_request request_pb
1453
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_tls_routes_request request_pb
1454
1454
  query_string_params = if query_string_params.any?
1455
1455
  query_string_params.to_h { |p| p.split "=", 2 }
1456
1456
  else
@@ -1462,11 +1462,11 @@ module Google
1462
1462
  uri: uri,
1463
1463
  body: body || "",
1464
1464
  params: query_string_params,
1465
- method_name: "list_meshes",
1465
+ method_name: "list_tls_routes",
1466
1466
  options: options
1467
1467
  )
1468
1468
  operation = ::Gapic::Rest::TransportOperation.new response
1469
- result = ::Google::Cloud::NetworkServices::V1::ListMeshesResponse.decode_json response.body, ignore_unknown_fields: true
1469
+ result = ::Google::Cloud::NetworkServices::V1::ListTlsRoutesResponse.decode_json response.body, ignore_unknown_fields: true
1470
1470
  catch :response do
1471
1471
  yield result, operation if block_given?
1472
1472
  result
@@ -1474,23 +1474,23 @@ module Google
1474
1474
  end
1475
1475
 
1476
1476
  ##
1477
- # Baseline implementation for the get_mesh REST call
1477
+ # Baseline implementation for the get_tls_route REST call
1478
1478
  #
1479
- # @param request_pb [::Google::Cloud::NetworkServices::V1::GetMeshRequest]
1479
+ # @param request_pb [::Google::Cloud::NetworkServices::V1::GetTlsRouteRequest]
1480
1480
  # A request object representing the call parameters. Required.
1481
1481
  # @param options [::Gapic::CallOptions]
1482
1482
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1483
1483
  #
1484
1484
  # @yield [result, operation] Access the result along with the TransportOperation object
1485
- # @yieldparam result [::Google::Cloud::NetworkServices::V1::Mesh]
1485
+ # @yieldparam result [::Google::Cloud::NetworkServices::V1::TlsRoute]
1486
1486
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
1487
1487
  #
1488
- # @return [::Google::Cloud::NetworkServices::V1::Mesh]
1488
+ # @return [::Google::Cloud::NetworkServices::V1::TlsRoute]
1489
1489
  # A result object deserialized from the server's reply
1490
- def get_mesh request_pb, options = nil
1490
+ def get_tls_route request_pb, options = nil
1491
1491
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
1492
1492
 
1493
- verb, uri, query_string_params, body = ServiceStub.transcode_get_mesh_request request_pb
1493
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_tls_route_request request_pb
1494
1494
  query_string_params = if query_string_params.any?
1495
1495
  query_string_params.to_h { |p| p.split "=", 2 }
1496
1496
  else
@@ -1502,11 +1502,11 @@ module Google
1502
1502
  uri: uri,
1503
1503
  body: body || "",
1504
1504
  params: query_string_params,
1505
- method_name: "get_mesh",
1505
+ method_name: "get_tls_route",
1506
1506
  options: options
1507
1507
  )
1508
1508
  operation = ::Gapic::Rest::TransportOperation.new response
1509
- result = ::Google::Cloud::NetworkServices::V1::Mesh.decode_json response.body, ignore_unknown_fields: true
1509
+ result = ::Google::Cloud::NetworkServices::V1::TlsRoute.decode_json response.body, ignore_unknown_fields: true
1510
1510
  catch :response do
1511
1511
  yield result, operation if block_given?
1512
1512
  result
@@ -1514,9 +1514,9 @@ module Google
1514
1514
  end
1515
1515
 
1516
1516
  ##
1517
- # Baseline implementation for the create_mesh REST call
1517
+ # Baseline implementation for the create_tls_route REST call
1518
1518
  #
1519
- # @param request_pb [::Google::Cloud::NetworkServices::V1::CreateMeshRequest]
1519
+ # @param request_pb [::Google::Cloud::NetworkServices::V1::CreateTlsRouteRequest]
1520
1520
  # A request object representing the call parameters. Required.
1521
1521
  # @param options [::Gapic::CallOptions]
1522
1522
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
@@ -1527,10 +1527,10 @@ module Google
1527
1527
  #
1528
1528
  # @return [::Google::Longrunning::Operation]
1529
1529
  # A result object deserialized from the server's reply
1530
- def create_mesh request_pb, options = nil
1530
+ def create_tls_route request_pb, options = nil
1531
1531
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
1532
1532
 
1533
- verb, uri, query_string_params, body = ServiceStub.transcode_create_mesh_request request_pb
1533
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_tls_route_request request_pb
1534
1534
  query_string_params = if query_string_params.any?
1535
1535
  query_string_params.to_h { |p| p.split "=", 2 }
1536
1536
  else
@@ -1542,7 +1542,7 @@ module Google
1542
1542
  uri: uri,
1543
1543
  body: body || "",
1544
1544
  params: query_string_params,
1545
- method_name: "create_mesh",
1545
+ method_name: "create_tls_route",
1546
1546
  options: options
1547
1547
  )
1548
1548
  operation = ::Gapic::Rest::TransportOperation.new response
@@ -1554,9 +1554,9 @@ module Google
1554
1554
  end
1555
1555
 
1556
1556
  ##
1557
- # Baseline implementation for the update_mesh REST call
1557
+ # Baseline implementation for the update_tls_route REST call
1558
1558
  #
1559
- # @param request_pb [::Google::Cloud::NetworkServices::V1::UpdateMeshRequest]
1559
+ # @param request_pb [::Google::Cloud::NetworkServices::V1::UpdateTlsRouteRequest]
1560
1560
  # A request object representing the call parameters. Required.
1561
1561
  # @param options [::Gapic::CallOptions]
1562
1562
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
@@ -1567,10 +1567,10 @@ module Google
1567
1567
  #
1568
1568
  # @return [::Google::Longrunning::Operation]
1569
1569
  # A result object deserialized from the server's reply
1570
- def update_mesh request_pb, options = nil
1570
+ def update_tls_route request_pb, options = nil
1571
1571
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
1572
1572
 
1573
- verb, uri, query_string_params, body = ServiceStub.transcode_update_mesh_request request_pb
1573
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_tls_route_request request_pb
1574
1574
  query_string_params = if query_string_params.any?
1575
1575
  query_string_params.to_h { |p| p.split "=", 2 }
1576
1576
  else
@@ -1582,7 +1582,47 @@ module Google
1582
1582
  uri: uri,
1583
1583
  body: body || "",
1584
1584
  params: query_string_params,
1585
- method_name: "update_mesh",
1585
+ method_name: "update_tls_route",
1586
+ options: options
1587
+ )
1588
+ operation = ::Gapic::Rest::TransportOperation.new response
1589
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
1590
+ catch :response do
1591
+ yield result, operation if block_given?
1592
+ result
1593
+ end
1594
+ end
1595
+
1596
+ ##
1597
+ # Baseline implementation for the delete_tls_route REST call
1598
+ #
1599
+ # @param request_pb [::Google::Cloud::NetworkServices::V1::DeleteTlsRouteRequest]
1600
+ # A request object representing the call parameters. Required.
1601
+ # @param options [::Gapic::CallOptions]
1602
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1603
+ #
1604
+ # @yield [result, operation] Access the result along with the TransportOperation object
1605
+ # @yieldparam result [::Google::Longrunning::Operation]
1606
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1607
+ #
1608
+ # @return [::Google::Longrunning::Operation]
1609
+ # A result object deserialized from the server's reply
1610
+ def delete_tls_route request_pb, options = nil
1611
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1612
+
1613
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_tls_route_request request_pb
1614
+ query_string_params = if query_string_params.any?
1615
+ query_string_params.to_h { |p| p.split "=", 2 }
1616
+ else
1617
+ {}
1618
+ end
1619
+
1620
+ response = @client_stub.make_http_request(
1621
+ verb,
1622
+ uri: uri,
1623
+ body: body || "",
1624
+ params: query_string_params,
1625
+ method_name: "delete_tls_route",
1586
1626
  options: options
1587
1627
  )
1588
1628
  operation = ::Gapic::Rest::TransportOperation.new response
@@ -1594,59 +1634,971 @@ module Google
1594
1634
  end
1595
1635
 
1596
1636
  ##
1597
- # Baseline implementation for the delete_mesh REST call
1637
+ # Baseline implementation for the list_service_bindings REST call
1638
+ #
1639
+ # @param request_pb [::Google::Cloud::NetworkServices::V1::ListServiceBindingsRequest]
1640
+ # A request object representing the call parameters. Required.
1641
+ # @param options [::Gapic::CallOptions]
1642
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1643
+ #
1644
+ # @yield [result, operation] Access the result along with the TransportOperation object
1645
+ # @yieldparam result [::Google::Cloud::NetworkServices::V1::ListServiceBindingsResponse]
1646
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1647
+ #
1648
+ # @return [::Google::Cloud::NetworkServices::V1::ListServiceBindingsResponse]
1649
+ # A result object deserialized from the server's reply
1650
+ def list_service_bindings request_pb, options = nil
1651
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1652
+
1653
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_service_bindings_request request_pb
1654
+ query_string_params = if query_string_params.any?
1655
+ query_string_params.to_h { |p| p.split "=", 2 }
1656
+ else
1657
+ {}
1658
+ end
1659
+
1660
+ response = @client_stub.make_http_request(
1661
+ verb,
1662
+ uri: uri,
1663
+ body: body || "",
1664
+ params: query_string_params,
1665
+ method_name: "list_service_bindings",
1666
+ options: options
1667
+ )
1668
+ operation = ::Gapic::Rest::TransportOperation.new response
1669
+ result = ::Google::Cloud::NetworkServices::V1::ListServiceBindingsResponse.decode_json response.body, ignore_unknown_fields: true
1670
+ catch :response do
1671
+ yield result, operation if block_given?
1672
+ result
1673
+ end
1674
+ end
1675
+
1676
+ ##
1677
+ # Baseline implementation for the get_service_binding REST call
1678
+ #
1679
+ # @param request_pb [::Google::Cloud::NetworkServices::V1::GetServiceBindingRequest]
1680
+ # A request object representing the call parameters. Required.
1681
+ # @param options [::Gapic::CallOptions]
1682
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1683
+ #
1684
+ # @yield [result, operation] Access the result along with the TransportOperation object
1685
+ # @yieldparam result [::Google::Cloud::NetworkServices::V1::ServiceBinding]
1686
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1687
+ #
1688
+ # @return [::Google::Cloud::NetworkServices::V1::ServiceBinding]
1689
+ # A result object deserialized from the server's reply
1690
+ def get_service_binding request_pb, options = nil
1691
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1692
+
1693
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_service_binding_request request_pb
1694
+ query_string_params = if query_string_params.any?
1695
+ query_string_params.to_h { |p| p.split "=", 2 }
1696
+ else
1697
+ {}
1698
+ end
1699
+
1700
+ response = @client_stub.make_http_request(
1701
+ verb,
1702
+ uri: uri,
1703
+ body: body || "",
1704
+ params: query_string_params,
1705
+ method_name: "get_service_binding",
1706
+ options: options
1707
+ )
1708
+ operation = ::Gapic::Rest::TransportOperation.new response
1709
+ result = ::Google::Cloud::NetworkServices::V1::ServiceBinding.decode_json response.body, ignore_unknown_fields: true
1710
+ catch :response do
1711
+ yield result, operation if block_given?
1712
+ result
1713
+ end
1714
+ end
1715
+
1716
+ ##
1717
+ # Baseline implementation for the create_service_binding REST call
1718
+ #
1719
+ # @param request_pb [::Google::Cloud::NetworkServices::V1::CreateServiceBindingRequest]
1720
+ # A request object representing the call parameters. Required.
1721
+ # @param options [::Gapic::CallOptions]
1722
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1723
+ #
1724
+ # @yield [result, operation] Access the result along with the TransportOperation object
1725
+ # @yieldparam result [::Google::Longrunning::Operation]
1726
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1727
+ #
1728
+ # @return [::Google::Longrunning::Operation]
1729
+ # A result object deserialized from the server's reply
1730
+ def create_service_binding request_pb, options = nil
1731
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1732
+
1733
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_service_binding_request request_pb
1734
+ query_string_params = if query_string_params.any?
1735
+ query_string_params.to_h { |p| p.split "=", 2 }
1736
+ else
1737
+ {}
1738
+ end
1739
+
1740
+ response = @client_stub.make_http_request(
1741
+ verb,
1742
+ uri: uri,
1743
+ body: body || "",
1744
+ params: query_string_params,
1745
+ method_name: "create_service_binding",
1746
+ options: options
1747
+ )
1748
+ operation = ::Gapic::Rest::TransportOperation.new response
1749
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
1750
+ catch :response do
1751
+ yield result, operation if block_given?
1752
+ result
1753
+ end
1754
+ end
1755
+
1756
+ ##
1757
+ # Baseline implementation for the update_service_binding REST call
1758
+ #
1759
+ # @param request_pb [::Google::Cloud::NetworkServices::V1::UpdateServiceBindingRequest]
1760
+ # A request object representing the call parameters. Required.
1761
+ # @param options [::Gapic::CallOptions]
1762
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1763
+ #
1764
+ # @yield [result, operation] Access the result along with the TransportOperation object
1765
+ # @yieldparam result [::Google::Longrunning::Operation]
1766
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1767
+ #
1768
+ # @return [::Google::Longrunning::Operation]
1769
+ # A result object deserialized from the server's reply
1770
+ def update_service_binding request_pb, options = nil
1771
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1772
+
1773
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_service_binding_request request_pb
1774
+ query_string_params = if query_string_params.any?
1775
+ query_string_params.to_h { |p| p.split "=", 2 }
1776
+ else
1777
+ {}
1778
+ end
1779
+
1780
+ response = @client_stub.make_http_request(
1781
+ verb,
1782
+ uri: uri,
1783
+ body: body || "",
1784
+ params: query_string_params,
1785
+ method_name: "update_service_binding",
1786
+ options: options
1787
+ )
1788
+ operation = ::Gapic::Rest::TransportOperation.new response
1789
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
1790
+ catch :response do
1791
+ yield result, operation if block_given?
1792
+ result
1793
+ end
1794
+ end
1795
+
1796
+ ##
1797
+ # Baseline implementation for the delete_service_binding REST call
1798
+ #
1799
+ # @param request_pb [::Google::Cloud::NetworkServices::V1::DeleteServiceBindingRequest]
1800
+ # A request object representing the call parameters. Required.
1801
+ # @param options [::Gapic::CallOptions]
1802
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1803
+ #
1804
+ # @yield [result, operation] Access the result along with the TransportOperation object
1805
+ # @yieldparam result [::Google::Longrunning::Operation]
1806
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1807
+ #
1808
+ # @return [::Google::Longrunning::Operation]
1809
+ # A result object deserialized from the server's reply
1810
+ def delete_service_binding request_pb, options = nil
1811
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1812
+
1813
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_service_binding_request request_pb
1814
+ query_string_params = if query_string_params.any?
1815
+ query_string_params.to_h { |p| p.split "=", 2 }
1816
+ else
1817
+ {}
1818
+ end
1819
+
1820
+ response = @client_stub.make_http_request(
1821
+ verb,
1822
+ uri: uri,
1823
+ body: body || "",
1824
+ params: query_string_params,
1825
+ method_name: "delete_service_binding",
1826
+ options: options
1827
+ )
1828
+ operation = ::Gapic::Rest::TransportOperation.new response
1829
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
1830
+ catch :response do
1831
+ yield result, operation if block_given?
1832
+ result
1833
+ end
1834
+ end
1835
+
1836
+ ##
1837
+ # Baseline implementation for the list_meshes REST call
1838
+ #
1839
+ # @param request_pb [::Google::Cloud::NetworkServices::V1::ListMeshesRequest]
1840
+ # A request object representing the call parameters. Required.
1841
+ # @param options [::Gapic::CallOptions]
1842
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1843
+ #
1844
+ # @yield [result, operation] Access the result along with the TransportOperation object
1845
+ # @yieldparam result [::Google::Cloud::NetworkServices::V1::ListMeshesResponse]
1846
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1847
+ #
1848
+ # @return [::Google::Cloud::NetworkServices::V1::ListMeshesResponse]
1849
+ # A result object deserialized from the server's reply
1850
+ def list_meshes request_pb, options = nil
1851
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1852
+
1853
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_meshes_request request_pb
1854
+ query_string_params = if query_string_params.any?
1855
+ query_string_params.to_h { |p| p.split "=", 2 }
1856
+ else
1857
+ {}
1858
+ end
1859
+
1860
+ response = @client_stub.make_http_request(
1861
+ verb,
1862
+ uri: uri,
1863
+ body: body || "",
1864
+ params: query_string_params,
1865
+ method_name: "list_meshes",
1866
+ options: options
1867
+ )
1868
+ operation = ::Gapic::Rest::TransportOperation.new response
1869
+ result = ::Google::Cloud::NetworkServices::V1::ListMeshesResponse.decode_json response.body, ignore_unknown_fields: true
1870
+ catch :response do
1871
+ yield result, operation if block_given?
1872
+ result
1873
+ end
1874
+ end
1875
+
1876
+ ##
1877
+ # Baseline implementation for the get_mesh REST call
1878
+ #
1879
+ # @param request_pb [::Google::Cloud::NetworkServices::V1::GetMeshRequest]
1880
+ # A request object representing the call parameters. Required.
1881
+ # @param options [::Gapic::CallOptions]
1882
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1883
+ #
1884
+ # @yield [result, operation] Access the result along with the TransportOperation object
1885
+ # @yieldparam result [::Google::Cloud::NetworkServices::V1::Mesh]
1886
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1887
+ #
1888
+ # @return [::Google::Cloud::NetworkServices::V1::Mesh]
1889
+ # A result object deserialized from the server's reply
1890
+ def get_mesh request_pb, options = nil
1891
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1892
+
1893
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_mesh_request request_pb
1894
+ query_string_params = if query_string_params.any?
1895
+ query_string_params.to_h { |p| p.split "=", 2 }
1896
+ else
1897
+ {}
1898
+ end
1899
+
1900
+ response = @client_stub.make_http_request(
1901
+ verb,
1902
+ uri: uri,
1903
+ body: body || "",
1904
+ params: query_string_params,
1905
+ method_name: "get_mesh",
1906
+ options: options
1907
+ )
1908
+ operation = ::Gapic::Rest::TransportOperation.new response
1909
+ result = ::Google::Cloud::NetworkServices::V1::Mesh.decode_json response.body, ignore_unknown_fields: true
1910
+ catch :response do
1911
+ yield result, operation if block_given?
1912
+ result
1913
+ end
1914
+ end
1915
+
1916
+ ##
1917
+ # Baseline implementation for the create_mesh REST call
1918
+ #
1919
+ # @param request_pb [::Google::Cloud::NetworkServices::V1::CreateMeshRequest]
1920
+ # A request object representing the call parameters. Required.
1921
+ # @param options [::Gapic::CallOptions]
1922
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1923
+ #
1924
+ # @yield [result, operation] Access the result along with the TransportOperation object
1925
+ # @yieldparam result [::Google::Longrunning::Operation]
1926
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1927
+ #
1928
+ # @return [::Google::Longrunning::Operation]
1929
+ # A result object deserialized from the server's reply
1930
+ def create_mesh request_pb, options = nil
1931
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1932
+
1933
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_mesh_request request_pb
1934
+ query_string_params = if query_string_params.any?
1935
+ query_string_params.to_h { |p| p.split "=", 2 }
1936
+ else
1937
+ {}
1938
+ end
1939
+
1940
+ response = @client_stub.make_http_request(
1941
+ verb,
1942
+ uri: uri,
1943
+ body: body || "",
1944
+ params: query_string_params,
1945
+ method_name: "create_mesh",
1946
+ options: options
1947
+ )
1948
+ operation = ::Gapic::Rest::TransportOperation.new response
1949
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
1950
+ catch :response do
1951
+ yield result, operation if block_given?
1952
+ result
1953
+ end
1954
+ end
1955
+
1956
+ ##
1957
+ # Baseline implementation for the update_mesh REST call
1958
+ #
1959
+ # @param request_pb [::Google::Cloud::NetworkServices::V1::UpdateMeshRequest]
1960
+ # A request object representing the call parameters. Required.
1961
+ # @param options [::Gapic::CallOptions]
1962
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1963
+ #
1964
+ # @yield [result, operation] Access the result along with the TransportOperation object
1965
+ # @yieldparam result [::Google::Longrunning::Operation]
1966
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1967
+ #
1968
+ # @return [::Google::Longrunning::Operation]
1969
+ # A result object deserialized from the server's reply
1970
+ def update_mesh request_pb, options = nil
1971
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1972
+
1973
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_mesh_request request_pb
1974
+ query_string_params = if query_string_params.any?
1975
+ query_string_params.to_h { |p| p.split "=", 2 }
1976
+ else
1977
+ {}
1978
+ end
1979
+
1980
+ response = @client_stub.make_http_request(
1981
+ verb,
1982
+ uri: uri,
1983
+ body: body || "",
1984
+ params: query_string_params,
1985
+ method_name: "update_mesh",
1986
+ options: options
1987
+ )
1988
+ operation = ::Gapic::Rest::TransportOperation.new response
1989
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
1990
+ catch :response do
1991
+ yield result, operation if block_given?
1992
+ result
1993
+ end
1994
+ end
1995
+
1996
+ ##
1997
+ # Baseline implementation for the delete_mesh REST call
1998
+ #
1999
+ # @param request_pb [::Google::Cloud::NetworkServices::V1::DeleteMeshRequest]
2000
+ # A request object representing the call parameters. Required.
2001
+ # @param options [::Gapic::CallOptions]
2002
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2003
+ #
2004
+ # @yield [result, operation] Access the result along with the TransportOperation object
2005
+ # @yieldparam result [::Google::Longrunning::Operation]
2006
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2007
+ #
2008
+ # @return [::Google::Longrunning::Operation]
2009
+ # A result object deserialized from the server's reply
2010
+ def delete_mesh request_pb, options = nil
2011
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
2012
+
2013
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_mesh_request request_pb
2014
+ query_string_params = if query_string_params.any?
2015
+ query_string_params.to_h { |p| p.split "=", 2 }
2016
+ else
2017
+ {}
2018
+ end
2019
+
2020
+ response = @client_stub.make_http_request(
2021
+ verb,
2022
+ uri: uri,
2023
+ body: body || "",
2024
+ params: query_string_params,
2025
+ method_name: "delete_mesh",
2026
+ options: options
2027
+ )
2028
+ operation = ::Gapic::Rest::TransportOperation.new response
2029
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
2030
+ catch :response do
2031
+ yield result, operation if block_given?
2032
+ result
2033
+ end
2034
+ end
2035
+
2036
+ ##
2037
+ # Baseline implementation for the list_service_lb_policies REST call
2038
+ #
2039
+ # @param request_pb [::Google::Cloud::NetworkServices::V1::ListServiceLbPoliciesRequest]
2040
+ # A request object representing the call parameters. Required.
2041
+ # @param options [::Gapic::CallOptions]
2042
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2043
+ #
2044
+ # @yield [result, operation] Access the result along with the TransportOperation object
2045
+ # @yieldparam result [::Google::Cloud::NetworkServices::V1::ListServiceLbPoliciesResponse]
2046
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2047
+ #
2048
+ # @return [::Google::Cloud::NetworkServices::V1::ListServiceLbPoliciesResponse]
2049
+ # A result object deserialized from the server's reply
2050
+ def list_service_lb_policies request_pb, options = nil
2051
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
2052
+
2053
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_service_lb_policies_request request_pb
2054
+ query_string_params = if query_string_params.any?
2055
+ query_string_params.to_h { |p| p.split "=", 2 }
2056
+ else
2057
+ {}
2058
+ end
2059
+
2060
+ response = @client_stub.make_http_request(
2061
+ verb,
2062
+ uri: uri,
2063
+ body: body || "",
2064
+ params: query_string_params,
2065
+ method_name: "list_service_lb_policies",
2066
+ options: options
2067
+ )
2068
+ operation = ::Gapic::Rest::TransportOperation.new response
2069
+ result = ::Google::Cloud::NetworkServices::V1::ListServiceLbPoliciesResponse.decode_json response.body, ignore_unknown_fields: true
2070
+ catch :response do
2071
+ yield result, operation if block_given?
2072
+ result
2073
+ end
2074
+ end
2075
+
2076
+ ##
2077
+ # Baseline implementation for the get_service_lb_policy REST call
2078
+ #
2079
+ # @param request_pb [::Google::Cloud::NetworkServices::V1::GetServiceLbPolicyRequest]
2080
+ # A request object representing the call parameters. Required.
2081
+ # @param options [::Gapic::CallOptions]
2082
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2083
+ #
2084
+ # @yield [result, operation] Access the result along with the TransportOperation object
2085
+ # @yieldparam result [::Google::Cloud::NetworkServices::V1::ServiceLbPolicy]
2086
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2087
+ #
2088
+ # @return [::Google::Cloud::NetworkServices::V1::ServiceLbPolicy]
2089
+ # A result object deserialized from the server's reply
2090
+ def get_service_lb_policy request_pb, options = nil
2091
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
2092
+
2093
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_service_lb_policy_request request_pb
2094
+ query_string_params = if query_string_params.any?
2095
+ query_string_params.to_h { |p| p.split "=", 2 }
2096
+ else
2097
+ {}
2098
+ end
2099
+
2100
+ response = @client_stub.make_http_request(
2101
+ verb,
2102
+ uri: uri,
2103
+ body: body || "",
2104
+ params: query_string_params,
2105
+ method_name: "get_service_lb_policy",
2106
+ options: options
2107
+ )
2108
+ operation = ::Gapic::Rest::TransportOperation.new response
2109
+ result = ::Google::Cloud::NetworkServices::V1::ServiceLbPolicy.decode_json response.body, ignore_unknown_fields: true
2110
+ catch :response do
2111
+ yield result, operation if block_given?
2112
+ result
2113
+ end
2114
+ end
2115
+
2116
+ ##
2117
+ # Baseline implementation for the create_service_lb_policy REST call
2118
+ #
2119
+ # @param request_pb [::Google::Cloud::NetworkServices::V1::CreateServiceLbPolicyRequest]
2120
+ # A request object representing the call parameters. Required.
2121
+ # @param options [::Gapic::CallOptions]
2122
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2123
+ #
2124
+ # @yield [result, operation] Access the result along with the TransportOperation object
2125
+ # @yieldparam result [::Google::Longrunning::Operation]
2126
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2127
+ #
2128
+ # @return [::Google::Longrunning::Operation]
2129
+ # A result object deserialized from the server's reply
2130
+ def create_service_lb_policy request_pb, options = nil
2131
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
2132
+
2133
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_service_lb_policy_request request_pb
2134
+ query_string_params = if query_string_params.any?
2135
+ query_string_params.to_h { |p| p.split "=", 2 }
2136
+ else
2137
+ {}
2138
+ end
2139
+
2140
+ response = @client_stub.make_http_request(
2141
+ verb,
2142
+ uri: uri,
2143
+ body: body || "",
2144
+ params: query_string_params,
2145
+ method_name: "create_service_lb_policy",
2146
+ options: options
2147
+ )
2148
+ operation = ::Gapic::Rest::TransportOperation.new response
2149
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
2150
+ catch :response do
2151
+ yield result, operation if block_given?
2152
+ result
2153
+ end
2154
+ end
2155
+
2156
+ ##
2157
+ # Baseline implementation for the update_service_lb_policy REST call
2158
+ #
2159
+ # @param request_pb [::Google::Cloud::NetworkServices::V1::UpdateServiceLbPolicyRequest]
2160
+ # A request object representing the call parameters. Required.
2161
+ # @param options [::Gapic::CallOptions]
2162
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2163
+ #
2164
+ # @yield [result, operation] Access the result along with the TransportOperation object
2165
+ # @yieldparam result [::Google::Longrunning::Operation]
2166
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2167
+ #
2168
+ # @return [::Google::Longrunning::Operation]
2169
+ # A result object deserialized from the server's reply
2170
+ def update_service_lb_policy request_pb, options = nil
2171
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
2172
+
2173
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_service_lb_policy_request request_pb
2174
+ query_string_params = if query_string_params.any?
2175
+ query_string_params.to_h { |p| p.split "=", 2 }
2176
+ else
2177
+ {}
2178
+ end
2179
+
2180
+ response = @client_stub.make_http_request(
2181
+ verb,
2182
+ uri: uri,
2183
+ body: body || "",
2184
+ params: query_string_params,
2185
+ method_name: "update_service_lb_policy",
2186
+ options: options
2187
+ )
2188
+ operation = ::Gapic::Rest::TransportOperation.new response
2189
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
2190
+ catch :response do
2191
+ yield result, operation if block_given?
2192
+ result
2193
+ end
2194
+ end
2195
+
2196
+ ##
2197
+ # Baseline implementation for the delete_service_lb_policy REST call
2198
+ #
2199
+ # @param request_pb [::Google::Cloud::NetworkServices::V1::DeleteServiceLbPolicyRequest]
2200
+ # A request object representing the call parameters. Required.
2201
+ # @param options [::Gapic::CallOptions]
2202
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2203
+ #
2204
+ # @yield [result, operation] Access the result along with the TransportOperation object
2205
+ # @yieldparam result [::Google::Longrunning::Operation]
2206
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2207
+ #
2208
+ # @return [::Google::Longrunning::Operation]
2209
+ # A result object deserialized from the server's reply
2210
+ def delete_service_lb_policy request_pb, options = nil
2211
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
2212
+
2213
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_service_lb_policy_request request_pb
2214
+ query_string_params = if query_string_params.any?
2215
+ query_string_params.to_h { |p| p.split "=", 2 }
2216
+ else
2217
+ {}
2218
+ end
2219
+
2220
+ response = @client_stub.make_http_request(
2221
+ verb,
2222
+ uri: uri,
2223
+ body: body || "",
2224
+ params: query_string_params,
2225
+ method_name: "delete_service_lb_policy",
2226
+ options: options
2227
+ )
2228
+ operation = ::Gapic::Rest::TransportOperation.new response
2229
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
2230
+ catch :response do
2231
+ yield result, operation if block_given?
2232
+ result
2233
+ end
2234
+ end
2235
+
2236
+ ##
2237
+ # Baseline implementation for the get_gateway_route_view REST call
2238
+ #
2239
+ # @param request_pb [::Google::Cloud::NetworkServices::V1::GetGatewayRouteViewRequest]
2240
+ # A request object representing the call parameters. Required.
2241
+ # @param options [::Gapic::CallOptions]
2242
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2243
+ #
2244
+ # @yield [result, operation] Access the result along with the TransportOperation object
2245
+ # @yieldparam result [::Google::Cloud::NetworkServices::V1::GatewayRouteView]
2246
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2247
+ #
2248
+ # @return [::Google::Cloud::NetworkServices::V1::GatewayRouteView]
2249
+ # A result object deserialized from the server's reply
2250
+ def get_gateway_route_view request_pb, options = nil
2251
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
2252
+
2253
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_gateway_route_view_request request_pb
2254
+ query_string_params = if query_string_params.any?
2255
+ query_string_params.to_h { |p| p.split "=", 2 }
2256
+ else
2257
+ {}
2258
+ end
2259
+
2260
+ response = @client_stub.make_http_request(
2261
+ verb,
2262
+ uri: uri,
2263
+ body: body || "",
2264
+ params: query_string_params,
2265
+ method_name: "get_gateway_route_view",
2266
+ options: options
2267
+ )
2268
+ operation = ::Gapic::Rest::TransportOperation.new response
2269
+ result = ::Google::Cloud::NetworkServices::V1::GatewayRouteView.decode_json response.body, ignore_unknown_fields: true
2270
+ catch :response do
2271
+ yield result, operation if block_given?
2272
+ result
2273
+ end
2274
+ end
2275
+
2276
+ ##
2277
+ # Baseline implementation for the get_mesh_route_view REST call
2278
+ #
2279
+ # @param request_pb [::Google::Cloud::NetworkServices::V1::GetMeshRouteViewRequest]
2280
+ # A request object representing the call parameters. Required.
2281
+ # @param options [::Gapic::CallOptions]
2282
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2283
+ #
2284
+ # @yield [result, operation] Access the result along with the TransportOperation object
2285
+ # @yieldparam result [::Google::Cloud::NetworkServices::V1::MeshRouteView]
2286
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2287
+ #
2288
+ # @return [::Google::Cloud::NetworkServices::V1::MeshRouteView]
2289
+ # A result object deserialized from the server's reply
2290
+ def get_mesh_route_view request_pb, options = nil
2291
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
2292
+
2293
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_mesh_route_view_request request_pb
2294
+ query_string_params = if query_string_params.any?
2295
+ query_string_params.to_h { |p| p.split "=", 2 }
2296
+ else
2297
+ {}
2298
+ end
2299
+
2300
+ response = @client_stub.make_http_request(
2301
+ verb,
2302
+ uri: uri,
2303
+ body: body || "",
2304
+ params: query_string_params,
2305
+ method_name: "get_mesh_route_view",
2306
+ options: options
2307
+ )
2308
+ operation = ::Gapic::Rest::TransportOperation.new response
2309
+ result = ::Google::Cloud::NetworkServices::V1::MeshRouteView.decode_json response.body, ignore_unknown_fields: true
2310
+ catch :response do
2311
+ yield result, operation if block_given?
2312
+ result
2313
+ end
2314
+ end
2315
+
2316
+ ##
2317
+ # Baseline implementation for the list_gateway_route_views REST call
2318
+ #
2319
+ # @param request_pb [::Google::Cloud::NetworkServices::V1::ListGatewayRouteViewsRequest]
2320
+ # A request object representing the call parameters. Required.
2321
+ # @param options [::Gapic::CallOptions]
2322
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2323
+ #
2324
+ # @yield [result, operation] Access the result along with the TransportOperation object
2325
+ # @yieldparam result [::Google::Cloud::NetworkServices::V1::ListGatewayRouteViewsResponse]
2326
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2327
+ #
2328
+ # @return [::Google::Cloud::NetworkServices::V1::ListGatewayRouteViewsResponse]
2329
+ # A result object deserialized from the server's reply
2330
+ def list_gateway_route_views request_pb, options = nil
2331
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
2332
+
2333
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_gateway_route_views_request request_pb
2334
+ query_string_params = if query_string_params.any?
2335
+ query_string_params.to_h { |p| p.split "=", 2 }
2336
+ else
2337
+ {}
2338
+ end
2339
+
2340
+ response = @client_stub.make_http_request(
2341
+ verb,
2342
+ uri: uri,
2343
+ body: body || "",
2344
+ params: query_string_params,
2345
+ method_name: "list_gateway_route_views",
2346
+ options: options
2347
+ )
2348
+ operation = ::Gapic::Rest::TransportOperation.new response
2349
+ result = ::Google::Cloud::NetworkServices::V1::ListGatewayRouteViewsResponse.decode_json response.body, ignore_unknown_fields: true
2350
+ catch :response do
2351
+ yield result, operation if block_given?
2352
+ result
2353
+ end
2354
+ end
2355
+
2356
+ ##
2357
+ # Baseline implementation for the list_mesh_route_views REST call
2358
+ #
2359
+ # @param request_pb [::Google::Cloud::NetworkServices::V1::ListMeshRouteViewsRequest]
2360
+ # A request object representing the call parameters. Required.
2361
+ # @param options [::Gapic::CallOptions]
2362
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2363
+ #
2364
+ # @yield [result, operation] Access the result along with the TransportOperation object
2365
+ # @yieldparam result [::Google::Cloud::NetworkServices::V1::ListMeshRouteViewsResponse]
2366
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2367
+ #
2368
+ # @return [::Google::Cloud::NetworkServices::V1::ListMeshRouteViewsResponse]
2369
+ # A result object deserialized from the server's reply
2370
+ def list_mesh_route_views request_pb, options = nil
2371
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
2372
+
2373
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_mesh_route_views_request request_pb
2374
+ query_string_params = if query_string_params.any?
2375
+ query_string_params.to_h { |p| p.split "=", 2 }
2376
+ else
2377
+ {}
2378
+ end
2379
+
2380
+ response = @client_stub.make_http_request(
2381
+ verb,
2382
+ uri: uri,
2383
+ body: body || "",
2384
+ params: query_string_params,
2385
+ method_name: "list_mesh_route_views",
2386
+ options: options
2387
+ )
2388
+ operation = ::Gapic::Rest::TransportOperation.new response
2389
+ result = ::Google::Cloud::NetworkServices::V1::ListMeshRouteViewsResponse.decode_json response.body, ignore_unknown_fields: true
2390
+ catch :response do
2391
+ yield result, operation if block_given?
2392
+ result
2393
+ end
2394
+ end
2395
+
2396
+ ##
2397
+ # @private
2398
+ #
2399
+ # GRPC transcoding helper method for the list_endpoint_policies REST call
2400
+ #
2401
+ # @param request_pb [::Google::Cloud::NetworkServices::V1::ListEndpointPoliciesRequest]
2402
+ # A request object representing the call parameters. Required.
2403
+ # @return [Array(String, [String, nil], Hash{String => String})]
2404
+ # Uri, Body, Query string parameters
2405
+ def self.transcode_list_endpoint_policies_request request_pb
2406
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2407
+ .with_bindings(
2408
+ uri_method: :get,
2409
+ uri_template: "/v1/{parent}/endpointPolicies",
2410
+ matches: [
2411
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
2412
+ ]
2413
+ )
2414
+ transcoder.transcode request_pb
2415
+ end
2416
+
2417
+ ##
2418
+ # @private
2419
+ #
2420
+ # GRPC transcoding helper method for the get_endpoint_policy REST call
2421
+ #
2422
+ # @param request_pb [::Google::Cloud::NetworkServices::V1::GetEndpointPolicyRequest]
2423
+ # A request object representing the call parameters. Required.
2424
+ # @return [Array(String, [String, nil], Hash{String => String})]
2425
+ # Uri, Body, Query string parameters
2426
+ def self.transcode_get_endpoint_policy_request request_pb
2427
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2428
+ .with_bindings(
2429
+ uri_method: :get,
2430
+ uri_template: "/v1/{name}",
2431
+ matches: [
2432
+ ["name", %r{^projects/[^/]+/locations/[^/]+/endpointPolicies/[^/]+/?$}, false]
2433
+ ]
2434
+ )
2435
+ transcoder.transcode request_pb
2436
+ end
2437
+
2438
+ ##
2439
+ # @private
2440
+ #
2441
+ # GRPC transcoding helper method for the create_endpoint_policy REST call
2442
+ #
2443
+ # @param request_pb [::Google::Cloud::NetworkServices::V1::CreateEndpointPolicyRequest]
2444
+ # A request object representing the call parameters. Required.
2445
+ # @return [Array(String, [String, nil], Hash{String => String})]
2446
+ # Uri, Body, Query string parameters
2447
+ def self.transcode_create_endpoint_policy_request request_pb
2448
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2449
+ .with_bindings(
2450
+ uri_method: :post,
2451
+ uri_template: "/v1/{parent}/endpointPolicies",
2452
+ body: "endpoint_policy",
2453
+ matches: [
2454
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
2455
+ ]
2456
+ )
2457
+ transcoder.transcode request_pb
2458
+ end
2459
+
2460
+ ##
2461
+ # @private
2462
+ #
2463
+ # GRPC transcoding helper method for the update_endpoint_policy REST call
2464
+ #
2465
+ # @param request_pb [::Google::Cloud::NetworkServices::V1::UpdateEndpointPolicyRequest]
2466
+ # A request object representing the call parameters. Required.
2467
+ # @return [Array(String, [String, nil], Hash{String => String})]
2468
+ # Uri, Body, Query string parameters
2469
+ def self.transcode_update_endpoint_policy_request request_pb
2470
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2471
+ .with_bindings(
2472
+ uri_method: :patch,
2473
+ uri_template: "/v1/{endpoint_policy.name}",
2474
+ body: "endpoint_policy",
2475
+ matches: [
2476
+ ["endpoint_policy.name", %r{^projects/[^/]+/locations/[^/]+/endpointPolicies/[^/]+/?$}, false]
2477
+ ]
2478
+ )
2479
+ transcoder.transcode request_pb
2480
+ end
2481
+
2482
+ ##
2483
+ # @private
2484
+ #
2485
+ # GRPC transcoding helper method for the delete_endpoint_policy REST call
2486
+ #
2487
+ # @param request_pb [::Google::Cloud::NetworkServices::V1::DeleteEndpointPolicyRequest]
2488
+ # A request object representing the call parameters. Required.
2489
+ # @return [Array(String, [String, nil], Hash{String => String})]
2490
+ # Uri, Body, Query string parameters
2491
+ def self.transcode_delete_endpoint_policy_request request_pb
2492
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2493
+ .with_bindings(
2494
+ uri_method: :delete,
2495
+ uri_template: "/v1/{name}",
2496
+ matches: [
2497
+ ["name", %r{^projects/[^/]+/locations/[^/]+/endpointPolicies/[^/]+/?$}, false]
2498
+ ]
2499
+ )
2500
+ transcoder.transcode request_pb
2501
+ end
2502
+
2503
+ ##
2504
+ # @private
2505
+ #
2506
+ # GRPC transcoding helper method for the list_wasm_plugin_versions REST call
2507
+ #
2508
+ # @param request_pb [::Google::Cloud::NetworkServices::V1::ListWasmPluginVersionsRequest]
2509
+ # A request object representing the call parameters. Required.
2510
+ # @return [Array(String, [String, nil], Hash{String => String})]
2511
+ # Uri, Body, Query string parameters
2512
+ def self.transcode_list_wasm_plugin_versions_request request_pb
2513
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2514
+ .with_bindings(
2515
+ uri_method: :get,
2516
+ uri_template: "/v1/{parent}/versions",
2517
+ matches: [
2518
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/wasmPlugins/[^/]+/?$}, false]
2519
+ ]
2520
+ )
2521
+ transcoder.transcode request_pb
2522
+ end
2523
+
2524
+ ##
2525
+ # @private
2526
+ #
2527
+ # GRPC transcoding helper method for the get_wasm_plugin_version REST call
2528
+ #
2529
+ # @param request_pb [::Google::Cloud::NetworkServices::V1::GetWasmPluginVersionRequest]
2530
+ # A request object representing the call parameters. Required.
2531
+ # @return [Array(String, [String, nil], Hash{String => String})]
2532
+ # Uri, Body, Query string parameters
2533
+ def self.transcode_get_wasm_plugin_version_request request_pb
2534
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2535
+ .with_bindings(
2536
+ uri_method: :get,
2537
+ uri_template: "/v1/{name}",
2538
+ matches: [
2539
+ ["name", %r{^projects/[^/]+/locations/[^/]+/wasmPlugins/[^/]+/versions/[^/]+/?$}, false]
2540
+ ]
2541
+ )
2542
+ transcoder.transcode request_pb
2543
+ end
2544
+
2545
+ ##
2546
+ # @private
1598
2547
  #
1599
- # @param request_pb [::Google::Cloud::NetworkServices::V1::DeleteMeshRequest]
2548
+ # GRPC transcoding helper method for the create_wasm_plugin_version REST call
2549
+ #
2550
+ # @param request_pb [::Google::Cloud::NetworkServices::V1::CreateWasmPluginVersionRequest]
1600
2551
  # A request object representing the call parameters. Required.
1601
- # @param options [::Gapic::CallOptions]
1602
- # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2552
+ # @return [Array(String, [String, nil], Hash{String => String})]
2553
+ # Uri, Body, Query string parameters
2554
+ def self.transcode_create_wasm_plugin_version_request request_pb
2555
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2556
+ .with_bindings(
2557
+ uri_method: :post,
2558
+ uri_template: "/v1/{parent}/versions",
2559
+ body: "wasm_plugin_version",
2560
+ matches: [
2561
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/wasmPlugins/[^/]+/?$}, false]
2562
+ ]
2563
+ )
2564
+ transcoder.transcode request_pb
2565
+ end
2566
+
2567
+ ##
2568
+ # @private
1603
2569
  #
1604
- # @yield [result, operation] Access the result along with the TransportOperation object
1605
- # @yieldparam result [::Google::Longrunning::Operation]
1606
- # @yieldparam operation [::Gapic::Rest::TransportOperation]
2570
+ # GRPC transcoding helper method for the delete_wasm_plugin_version REST call
1607
2571
  #
1608
- # @return [::Google::Longrunning::Operation]
1609
- # A result object deserialized from the server's reply
1610
- def delete_mesh request_pb, options = nil
1611
- raise ::ArgumentError, "request must be provided" if request_pb.nil?
1612
-
1613
- verb, uri, query_string_params, body = ServiceStub.transcode_delete_mesh_request request_pb
1614
- query_string_params = if query_string_params.any?
1615
- query_string_params.to_h { |p| p.split "=", 2 }
1616
- else
1617
- {}
1618
- end
1619
-
1620
- response = @client_stub.make_http_request(
1621
- verb,
1622
- uri: uri,
1623
- body: body || "",
1624
- params: query_string_params,
1625
- method_name: "delete_mesh",
1626
- options: options
1627
- )
1628
- operation = ::Gapic::Rest::TransportOperation.new response
1629
- result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
1630
- catch :response do
1631
- yield result, operation if block_given?
1632
- result
1633
- end
2572
+ # @param request_pb [::Google::Cloud::NetworkServices::V1::DeleteWasmPluginVersionRequest]
2573
+ # A request object representing the call parameters. Required.
2574
+ # @return [Array(String, [String, nil], Hash{String => String})]
2575
+ # Uri, Body, Query string parameters
2576
+ def self.transcode_delete_wasm_plugin_version_request request_pb
2577
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2578
+ .with_bindings(
2579
+ uri_method: :delete,
2580
+ uri_template: "/v1/{name}",
2581
+ matches: [
2582
+ ["name", %r{^projects/[^/]+/locations/[^/]+/wasmPlugins/[^/]+/versions/[^/]+/?$}, false]
2583
+ ]
2584
+ )
2585
+ transcoder.transcode request_pb
1634
2586
  end
1635
2587
 
1636
2588
  ##
1637
2589
  # @private
1638
2590
  #
1639
- # GRPC transcoding helper method for the list_endpoint_policies REST call
2591
+ # GRPC transcoding helper method for the list_wasm_plugins REST call
1640
2592
  #
1641
- # @param request_pb [::Google::Cloud::NetworkServices::V1::ListEndpointPoliciesRequest]
2593
+ # @param request_pb [::Google::Cloud::NetworkServices::V1::ListWasmPluginsRequest]
1642
2594
  # A request object representing the call parameters. Required.
1643
2595
  # @return [Array(String, [String, nil], Hash{String => String})]
1644
2596
  # Uri, Body, Query string parameters
1645
- def self.transcode_list_endpoint_policies_request request_pb
2597
+ def self.transcode_list_wasm_plugins_request request_pb
1646
2598
  transcoder = Gapic::Rest::GrpcTranscoder.new
1647
2599
  .with_bindings(
1648
2600
  uri_method: :get,
1649
- uri_template: "/v1/{parent}/endpointPolicies",
2601
+ uri_template: "/v1/{parent}/wasmPlugins",
1650
2602
  matches: [
1651
2603
  ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
1652
2604
  ]
@@ -1657,19 +2609,19 @@ module Google
1657
2609
  ##
1658
2610
  # @private
1659
2611
  #
1660
- # GRPC transcoding helper method for the get_endpoint_policy REST call
2612
+ # GRPC transcoding helper method for the get_wasm_plugin REST call
1661
2613
  #
1662
- # @param request_pb [::Google::Cloud::NetworkServices::V1::GetEndpointPolicyRequest]
2614
+ # @param request_pb [::Google::Cloud::NetworkServices::V1::GetWasmPluginRequest]
1663
2615
  # A request object representing the call parameters. Required.
1664
2616
  # @return [Array(String, [String, nil], Hash{String => String})]
1665
2617
  # Uri, Body, Query string parameters
1666
- def self.transcode_get_endpoint_policy_request request_pb
2618
+ def self.transcode_get_wasm_plugin_request request_pb
1667
2619
  transcoder = Gapic::Rest::GrpcTranscoder.new
1668
2620
  .with_bindings(
1669
2621
  uri_method: :get,
1670
2622
  uri_template: "/v1/{name}",
1671
2623
  matches: [
1672
- ["name", %r{^projects/[^/]+/locations/[^/]+/endpointPolicies/[^/]+/?$}, false]
2624
+ ["name", %r{^projects/[^/]+/locations/[^/]+/wasmPlugins/[^/]+/?$}, false]
1673
2625
  ]
1674
2626
  )
1675
2627
  transcoder.transcode request_pb
@@ -1678,18 +2630,18 @@ module Google
1678
2630
  ##
1679
2631
  # @private
1680
2632
  #
1681
- # GRPC transcoding helper method for the create_endpoint_policy REST call
2633
+ # GRPC transcoding helper method for the create_wasm_plugin REST call
1682
2634
  #
1683
- # @param request_pb [::Google::Cloud::NetworkServices::V1::CreateEndpointPolicyRequest]
2635
+ # @param request_pb [::Google::Cloud::NetworkServices::V1::CreateWasmPluginRequest]
1684
2636
  # A request object representing the call parameters. Required.
1685
2637
  # @return [Array(String, [String, nil], Hash{String => String})]
1686
2638
  # Uri, Body, Query string parameters
1687
- def self.transcode_create_endpoint_policy_request request_pb
2639
+ def self.transcode_create_wasm_plugin_request request_pb
1688
2640
  transcoder = Gapic::Rest::GrpcTranscoder.new
1689
2641
  .with_bindings(
1690
2642
  uri_method: :post,
1691
- uri_template: "/v1/{parent}/endpointPolicies",
1692
- body: "endpoint_policy",
2643
+ uri_template: "/v1/{parent}/wasmPlugins",
2644
+ body: "wasm_plugin",
1693
2645
  matches: [
1694
2646
  ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
1695
2647
  ]
@@ -1700,20 +2652,20 @@ module Google
1700
2652
  ##
1701
2653
  # @private
1702
2654
  #
1703
- # GRPC transcoding helper method for the update_endpoint_policy REST call
2655
+ # GRPC transcoding helper method for the update_wasm_plugin REST call
1704
2656
  #
1705
- # @param request_pb [::Google::Cloud::NetworkServices::V1::UpdateEndpointPolicyRequest]
2657
+ # @param request_pb [::Google::Cloud::NetworkServices::V1::UpdateWasmPluginRequest]
1706
2658
  # A request object representing the call parameters. Required.
1707
2659
  # @return [Array(String, [String, nil], Hash{String => String})]
1708
2660
  # Uri, Body, Query string parameters
1709
- def self.transcode_update_endpoint_policy_request request_pb
2661
+ def self.transcode_update_wasm_plugin_request request_pb
1710
2662
  transcoder = Gapic::Rest::GrpcTranscoder.new
1711
2663
  .with_bindings(
1712
2664
  uri_method: :patch,
1713
- uri_template: "/v1/{endpoint_policy.name}",
1714
- body: "endpoint_policy",
2665
+ uri_template: "/v1/{wasm_plugin.name}",
2666
+ body: "wasm_plugin",
1715
2667
  matches: [
1716
- ["endpoint_policy.name", %r{^projects/[^/]+/locations/[^/]+/endpointPolicies/[^/]+/?$}, false]
2668
+ ["wasm_plugin.name", %r{^projects/[^/]+/locations/[^/]+/wasmPlugins/[^/]+/?$}, false]
1717
2669
  ]
1718
2670
  )
1719
2671
  transcoder.transcode request_pb
@@ -1722,19 +2674,19 @@ module Google
1722
2674
  ##
1723
2675
  # @private
1724
2676
  #
1725
- # GRPC transcoding helper method for the delete_endpoint_policy REST call
2677
+ # GRPC transcoding helper method for the delete_wasm_plugin REST call
1726
2678
  #
1727
- # @param request_pb [::Google::Cloud::NetworkServices::V1::DeleteEndpointPolicyRequest]
2679
+ # @param request_pb [::Google::Cloud::NetworkServices::V1::DeleteWasmPluginRequest]
1728
2680
  # A request object representing the call parameters. Required.
1729
2681
  # @return [Array(String, [String, nil], Hash{String => String})]
1730
2682
  # Uri, Body, Query string parameters
1731
- def self.transcode_delete_endpoint_policy_request request_pb
2683
+ def self.transcode_delete_wasm_plugin_request request_pb
1732
2684
  transcoder = Gapic::Rest::GrpcTranscoder.new
1733
2685
  .with_bindings(
1734
2686
  uri_method: :delete,
1735
2687
  uri_template: "/v1/{name}",
1736
2688
  matches: [
1737
- ["name", %r{^projects/[^/]+/locations/[^/]+/endpointPolicies/[^/]+/?$}, false]
2689
+ ["name", %r{^projects/[^/]+/locations/[^/]+/wasmPlugins/[^/]+/?$}, false]
1738
2690
  ]
1739
2691
  )
1740
2692
  transcoder.transcode request_pb
@@ -2339,6 +3291,28 @@ module Google
2339
3291
  transcoder.transcode request_pb
2340
3292
  end
2341
3293
 
3294
+ ##
3295
+ # @private
3296
+ #
3297
+ # GRPC transcoding helper method for the update_service_binding REST call
3298
+ #
3299
+ # @param request_pb [::Google::Cloud::NetworkServices::V1::UpdateServiceBindingRequest]
3300
+ # A request object representing the call parameters. Required.
3301
+ # @return [Array(String, [String, nil], Hash{String => String})]
3302
+ # Uri, Body, Query string parameters
3303
+ def self.transcode_update_service_binding_request request_pb
3304
+ transcoder = Gapic::Rest::GrpcTranscoder.new
3305
+ .with_bindings(
3306
+ uri_method: :patch,
3307
+ uri_template: "/v1/{service_binding.name}",
3308
+ body: "service_binding",
3309
+ matches: [
3310
+ ["service_binding.name", %r{^projects/[^/]+/locations/[^/]+/serviceBindings/[^/]+/?$}, false]
3311
+ ]
3312
+ )
3313
+ transcoder.transcode request_pb
3314
+ end
3315
+
2342
3316
  ##
2343
3317
  # @private
2344
3318
  #
@@ -2466,6 +3440,197 @@ module Google
2466
3440
  )
2467
3441
  transcoder.transcode request_pb
2468
3442
  end
3443
+
3444
+ ##
3445
+ # @private
3446
+ #
3447
+ # GRPC transcoding helper method for the list_service_lb_policies REST call
3448
+ #
3449
+ # @param request_pb [::Google::Cloud::NetworkServices::V1::ListServiceLbPoliciesRequest]
3450
+ # A request object representing the call parameters. Required.
3451
+ # @return [Array(String, [String, nil], Hash{String => String})]
3452
+ # Uri, Body, Query string parameters
3453
+ def self.transcode_list_service_lb_policies_request request_pb
3454
+ transcoder = Gapic::Rest::GrpcTranscoder.new
3455
+ .with_bindings(
3456
+ uri_method: :get,
3457
+ uri_template: "/v1/{parent}/serviceLbPolicies",
3458
+ matches: [
3459
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
3460
+ ]
3461
+ )
3462
+ transcoder.transcode request_pb
3463
+ end
3464
+
3465
+ ##
3466
+ # @private
3467
+ #
3468
+ # GRPC transcoding helper method for the get_service_lb_policy REST call
3469
+ #
3470
+ # @param request_pb [::Google::Cloud::NetworkServices::V1::GetServiceLbPolicyRequest]
3471
+ # A request object representing the call parameters. Required.
3472
+ # @return [Array(String, [String, nil], Hash{String => String})]
3473
+ # Uri, Body, Query string parameters
3474
+ def self.transcode_get_service_lb_policy_request request_pb
3475
+ transcoder = Gapic::Rest::GrpcTranscoder.new
3476
+ .with_bindings(
3477
+ uri_method: :get,
3478
+ uri_template: "/v1/{name}",
3479
+ matches: [
3480
+ ["name", %r{^projects/[^/]+/locations/[^/]+/serviceLbPolicies/[^/]+/?$}, false]
3481
+ ]
3482
+ )
3483
+ transcoder.transcode request_pb
3484
+ end
3485
+
3486
+ ##
3487
+ # @private
3488
+ #
3489
+ # GRPC transcoding helper method for the create_service_lb_policy REST call
3490
+ #
3491
+ # @param request_pb [::Google::Cloud::NetworkServices::V1::CreateServiceLbPolicyRequest]
3492
+ # A request object representing the call parameters. Required.
3493
+ # @return [Array(String, [String, nil], Hash{String => String})]
3494
+ # Uri, Body, Query string parameters
3495
+ def self.transcode_create_service_lb_policy_request request_pb
3496
+ transcoder = Gapic::Rest::GrpcTranscoder.new
3497
+ .with_bindings(
3498
+ uri_method: :post,
3499
+ uri_template: "/v1/{parent}/serviceLbPolicies",
3500
+ body: "service_lb_policy",
3501
+ matches: [
3502
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
3503
+ ]
3504
+ )
3505
+ transcoder.transcode request_pb
3506
+ end
3507
+
3508
+ ##
3509
+ # @private
3510
+ #
3511
+ # GRPC transcoding helper method for the update_service_lb_policy REST call
3512
+ #
3513
+ # @param request_pb [::Google::Cloud::NetworkServices::V1::UpdateServiceLbPolicyRequest]
3514
+ # A request object representing the call parameters. Required.
3515
+ # @return [Array(String, [String, nil], Hash{String => String})]
3516
+ # Uri, Body, Query string parameters
3517
+ def self.transcode_update_service_lb_policy_request request_pb
3518
+ transcoder = Gapic::Rest::GrpcTranscoder.new
3519
+ .with_bindings(
3520
+ uri_method: :patch,
3521
+ uri_template: "/v1/{service_lb_policy.name}",
3522
+ body: "service_lb_policy",
3523
+ matches: [
3524
+ ["service_lb_policy.name", %r{^projects/[^/]+/locations/[^/]+/serviceLbPolicies/[^/]+/?$}, false]
3525
+ ]
3526
+ )
3527
+ transcoder.transcode request_pb
3528
+ end
3529
+
3530
+ ##
3531
+ # @private
3532
+ #
3533
+ # GRPC transcoding helper method for the delete_service_lb_policy REST call
3534
+ #
3535
+ # @param request_pb [::Google::Cloud::NetworkServices::V1::DeleteServiceLbPolicyRequest]
3536
+ # A request object representing the call parameters. Required.
3537
+ # @return [Array(String, [String, nil], Hash{String => String})]
3538
+ # Uri, Body, Query string parameters
3539
+ def self.transcode_delete_service_lb_policy_request request_pb
3540
+ transcoder = Gapic::Rest::GrpcTranscoder.new
3541
+ .with_bindings(
3542
+ uri_method: :delete,
3543
+ uri_template: "/v1/{name}",
3544
+ matches: [
3545
+ ["name", %r{^projects/[^/]+/locations/[^/]+/serviceLbPolicies/[^/]+/?$}, false]
3546
+ ]
3547
+ )
3548
+ transcoder.transcode request_pb
3549
+ end
3550
+
3551
+ ##
3552
+ # @private
3553
+ #
3554
+ # GRPC transcoding helper method for the get_gateway_route_view REST call
3555
+ #
3556
+ # @param request_pb [::Google::Cloud::NetworkServices::V1::GetGatewayRouteViewRequest]
3557
+ # A request object representing the call parameters. Required.
3558
+ # @return [Array(String, [String, nil], Hash{String => String})]
3559
+ # Uri, Body, Query string parameters
3560
+ def self.transcode_get_gateway_route_view_request request_pb
3561
+ transcoder = Gapic::Rest::GrpcTranscoder.new
3562
+ .with_bindings(
3563
+ uri_method: :get,
3564
+ uri_template: "/v1/{name}",
3565
+ matches: [
3566
+ ["name", %r{^projects/[^/]+/locations/[^/]+/gateways/[^/]+/routeViews/[^/]+/?$}, false]
3567
+ ]
3568
+ )
3569
+ transcoder.transcode request_pb
3570
+ end
3571
+
3572
+ ##
3573
+ # @private
3574
+ #
3575
+ # GRPC transcoding helper method for the get_mesh_route_view REST call
3576
+ #
3577
+ # @param request_pb [::Google::Cloud::NetworkServices::V1::GetMeshRouteViewRequest]
3578
+ # A request object representing the call parameters. Required.
3579
+ # @return [Array(String, [String, nil], Hash{String => String})]
3580
+ # Uri, Body, Query string parameters
3581
+ def self.transcode_get_mesh_route_view_request request_pb
3582
+ transcoder = Gapic::Rest::GrpcTranscoder.new
3583
+ .with_bindings(
3584
+ uri_method: :get,
3585
+ uri_template: "/v1/{name}",
3586
+ matches: [
3587
+ ["name", %r{^projects/[^/]+/locations/[^/]+/meshes/[^/]+/routeViews/[^/]+/?$}, false]
3588
+ ]
3589
+ )
3590
+ transcoder.transcode request_pb
3591
+ end
3592
+
3593
+ ##
3594
+ # @private
3595
+ #
3596
+ # GRPC transcoding helper method for the list_gateway_route_views REST call
3597
+ #
3598
+ # @param request_pb [::Google::Cloud::NetworkServices::V1::ListGatewayRouteViewsRequest]
3599
+ # A request object representing the call parameters. Required.
3600
+ # @return [Array(String, [String, nil], Hash{String => String})]
3601
+ # Uri, Body, Query string parameters
3602
+ def self.transcode_list_gateway_route_views_request request_pb
3603
+ transcoder = Gapic::Rest::GrpcTranscoder.new
3604
+ .with_bindings(
3605
+ uri_method: :get,
3606
+ uri_template: "/v1/{parent}/routeViews",
3607
+ matches: [
3608
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/gateways/[^/]+/?$}, false]
3609
+ ]
3610
+ )
3611
+ transcoder.transcode request_pb
3612
+ end
3613
+
3614
+ ##
3615
+ # @private
3616
+ #
3617
+ # GRPC transcoding helper method for the list_mesh_route_views REST call
3618
+ #
3619
+ # @param request_pb [::Google::Cloud::NetworkServices::V1::ListMeshRouteViewsRequest]
3620
+ # A request object representing the call parameters. Required.
3621
+ # @return [Array(String, [String, nil], Hash{String => String})]
3622
+ # Uri, Body, Query string parameters
3623
+ def self.transcode_list_mesh_route_views_request request_pb
3624
+ transcoder = Gapic::Rest::GrpcTranscoder.new
3625
+ .with_bindings(
3626
+ uri_method: :get,
3627
+ uri_template: "/v1/{parent}/routeViews",
3628
+ matches: [
3629
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/meshes/[^/]+/?$}, false]
3630
+ ]
3631
+ )
3632
+ transcoder.transcode request_pb
3633
+ end
2469
3634
  end
2470
3635
  end
2471
3636
  end