google-cloud-network_services-v1 2.2.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.
@@ -473,6 +473,206 @@ module Google
473
473
  end
474
474
  end
475
475
 
476
+ ##
477
+ # Baseline implementation for the list_authz_extensions REST call
478
+ #
479
+ # @param request_pb [::Google::Cloud::NetworkServices::V1::ListAuthzExtensionsRequest]
480
+ # A request object representing the call parameters. Required.
481
+ # @param options [::Gapic::CallOptions]
482
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
483
+ #
484
+ # @yield [result, operation] Access the result along with the TransportOperation object
485
+ # @yieldparam result [::Google::Cloud::NetworkServices::V1::ListAuthzExtensionsResponse]
486
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
487
+ #
488
+ # @return [::Google::Cloud::NetworkServices::V1::ListAuthzExtensionsResponse]
489
+ # A result object deserialized from the server's reply
490
+ def list_authz_extensions request_pb, options = nil
491
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
492
+
493
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_authz_extensions_request request_pb
494
+ query_string_params = if query_string_params.any?
495
+ query_string_params.to_h { |p| p.split "=", 2 }
496
+ else
497
+ {}
498
+ end
499
+
500
+ response = @client_stub.make_http_request(
501
+ verb,
502
+ uri: uri,
503
+ body: body || "",
504
+ params: query_string_params,
505
+ method_name: "list_authz_extensions",
506
+ options: options
507
+ )
508
+ operation = ::Gapic::Rest::TransportOperation.new response
509
+ result = ::Google::Cloud::NetworkServices::V1::ListAuthzExtensionsResponse.decode_json response.body, ignore_unknown_fields: true
510
+ catch :response do
511
+ yield result, operation if block_given?
512
+ result
513
+ end
514
+ end
515
+
516
+ ##
517
+ # Baseline implementation for the get_authz_extension REST call
518
+ #
519
+ # @param request_pb [::Google::Cloud::NetworkServices::V1::GetAuthzExtensionRequest]
520
+ # A request object representing the call parameters. Required.
521
+ # @param options [::Gapic::CallOptions]
522
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
523
+ #
524
+ # @yield [result, operation] Access the result along with the TransportOperation object
525
+ # @yieldparam result [::Google::Cloud::NetworkServices::V1::AuthzExtension]
526
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
527
+ #
528
+ # @return [::Google::Cloud::NetworkServices::V1::AuthzExtension]
529
+ # A result object deserialized from the server's reply
530
+ def get_authz_extension request_pb, options = nil
531
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
532
+
533
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_authz_extension_request request_pb
534
+ query_string_params = if query_string_params.any?
535
+ query_string_params.to_h { |p| p.split "=", 2 }
536
+ else
537
+ {}
538
+ end
539
+
540
+ response = @client_stub.make_http_request(
541
+ verb,
542
+ uri: uri,
543
+ body: body || "",
544
+ params: query_string_params,
545
+ method_name: "get_authz_extension",
546
+ options: options
547
+ )
548
+ operation = ::Gapic::Rest::TransportOperation.new response
549
+ result = ::Google::Cloud::NetworkServices::V1::AuthzExtension.decode_json response.body, ignore_unknown_fields: true
550
+ catch :response do
551
+ yield result, operation if block_given?
552
+ result
553
+ end
554
+ end
555
+
556
+ ##
557
+ # Baseline implementation for the create_authz_extension REST call
558
+ #
559
+ # @param request_pb [::Google::Cloud::NetworkServices::V1::CreateAuthzExtensionRequest]
560
+ # A request object representing the call parameters. Required.
561
+ # @param options [::Gapic::CallOptions]
562
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
563
+ #
564
+ # @yield [result, operation] Access the result along with the TransportOperation object
565
+ # @yieldparam result [::Google::Longrunning::Operation]
566
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
567
+ #
568
+ # @return [::Google::Longrunning::Operation]
569
+ # A result object deserialized from the server's reply
570
+ def create_authz_extension request_pb, options = nil
571
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
572
+
573
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_authz_extension_request request_pb
574
+ query_string_params = if query_string_params.any?
575
+ query_string_params.to_h { |p| p.split "=", 2 }
576
+ else
577
+ {}
578
+ end
579
+
580
+ response = @client_stub.make_http_request(
581
+ verb,
582
+ uri: uri,
583
+ body: body || "",
584
+ params: query_string_params,
585
+ method_name: "create_authz_extension",
586
+ options: options
587
+ )
588
+ operation = ::Gapic::Rest::TransportOperation.new response
589
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
590
+ catch :response do
591
+ yield result, operation if block_given?
592
+ result
593
+ end
594
+ end
595
+
596
+ ##
597
+ # Baseline implementation for the update_authz_extension REST call
598
+ #
599
+ # @param request_pb [::Google::Cloud::NetworkServices::V1::UpdateAuthzExtensionRequest]
600
+ # A request object representing the call parameters. Required.
601
+ # @param options [::Gapic::CallOptions]
602
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
603
+ #
604
+ # @yield [result, operation] Access the result along with the TransportOperation object
605
+ # @yieldparam result [::Google::Longrunning::Operation]
606
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
607
+ #
608
+ # @return [::Google::Longrunning::Operation]
609
+ # A result object deserialized from the server's reply
610
+ def update_authz_extension request_pb, options = nil
611
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
612
+
613
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_authz_extension_request request_pb
614
+ query_string_params = if query_string_params.any?
615
+ query_string_params.to_h { |p| p.split "=", 2 }
616
+ else
617
+ {}
618
+ end
619
+
620
+ response = @client_stub.make_http_request(
621
+ verb,
622
+ uri: uri,
623
+ body: body || "",
624
+ params: query_string_params,
625
+ method_name: "update_authz_extension",
626
+ options: options
627
+ )
628
+ operation = ::Gapic::Rest::TransportOperation.new response
629
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
630
+ catch :response do
631
+ yield result, operation if block_given?
632
+ result
633
+ end
634
+ end
635
+
636
+ ##
637
+ # Baseline implementation for the delete_authz_extension REST call
638
+ #
639
+ # @param request_pb [::Google::Cloud::NetworkServices::V1::DeleteAuthzExtensionRequest]
640
+ # A request object representing the call parameters. Required.
641
+ # @param options [::Gapic::CallOptions]
642
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
643
+ #
644
+ # @yield [result, operation] Access the result along with the TransportOperation object
645
+ # @yieldparam result [::Google::Longrunning::Operation]
646
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
647
+ #
648
+ # @return [::Google::Longrunning::Operation]
649
+ # A result object deserialized from the server's reply
650
+ def delete_authz_extension request_pb, options = nil
651
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
652
+
653
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_authz_extension_request request_pb
654
+ query_string_params = if query_string_params.any?
655
+ query_string_params.to_h { |p| p.split "=", 2 }
656
+ else
657
+ {}
658
+ end
659
+
660
+ response = @client_stub.make_http_request(
661
+ verb,
662
+ uri: uri,
663
+ body: body || "",
664
+ params: query_string_params,
665
+ method_name: "delete_authz_extension",
666
+ options: options
667
+ )
668
+ operation = ::Gapic::Rest::TransportOperation.new response
669
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
670
+ catch :response do
671
+ yield result, operation if block_given?
672
+ result
673
+ end
674
+ end
675
+
476
676
  ##
477
677
  # @private
478
678
  #
@@ -686,6 +886,113 @@ module Google
686
886
  )
687
887
  transcoder.transcode request_pb
688
888
  end
889
+
890
+ ##
891
+ # @private
892
+ #
893
+ # GRPC transcoding helper method for the list_authz_extensions REST call
894
+ #
895
+ # @param request_pb [::Google::Cloud::NetworkServices::V1::ListAuthzExtensionsRequest]
896
+ # A request object representing the call parameters. Required.
897
+ # @return [Array(String, [String, nil], Hash{String => String})]
898
+ # Uri, Body, Query string parameters
899
+ def self.transcode_list_authz_extensions_request request_pb
900
+ transcoder = Gapic::Rest::GrpcTranscoder.new
901
+ .with_bindings(
902
+ uri_method: :get,
903
+ uri_template: "/v1/{parent}/authzExtensions",
904
+ matches: [
905
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
906
+ ]
907
+ )
908
+ transcoder.transcode request_pb
909
+ end
910
+
911
+ ##
912
+ # @private
913
+ #
914
+ # GRPC transcoding helper method for the get_authz_extension REST call
915
+ #
916
+ # @param request_pb [::Google::Cloud::NetworkServices::V1::GetAuthzExtensionRequest]
917
+ # A request object representing the call parameters. Required.
918
+ # @return [Array(String, [String, nil], Hash{String => String})]
919
+ # Uri, Body, Query string parameters
920
+ def self.transcode_get_authz_extension_request request_pb
921
+ transcoder = Gapic::Rest::GrpcTranscoder.new
922
+ .with_bindings(
923
+ uri_method: :get,
924
+ uri_template: "/v1/{name}",
925
+ matches: [
926
+ ["name", %r{^projects/[^/]+/locations/[^/]+/authzExtensions/[^/]+/?$}, false]
927
+ ]
928
+ )
929
+ transcoder.transcode request_pb
930
+ end
931
+
932
+ ##
933
+ # @private
934
+ #
935
+ # GRPC transcoding helper method for the create_authz_extension REST call
936
+ #
937
+ # @param request_pb [::Google::Cloud::NetworkServices::V1::CreateAuthzExtensionRequest]
938
+ # A request object representing the call parameters. Required.
939
+ # @return [Array(String, [String, nil], Hash{String => String})]
940
+ # Uri, Body, Query string parameters
941
+ def self.transcode_create_authz_extension_request request_pb
942
+ transcoder = Gapic::Rest::GrpcTranscoder.new
943
+ .with_bindings(
944
+ uri_method: :post,
945
+ uri_template: "/v1/{parent}/authzExtensions",
946
+ body: "authz_extension",
947
+ matches: [
948
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
949
+ ]
950
+ )
951
+ transcoder.transcode request_pb
952
+ end
953
+
954
+ ##
955
+ # @private
956
+ #
957
+ # GRPC transcoding helper method for the update_authz_extension REST call
958
+ #
959
+ # @param request_pb [::Google::Cloud::NetworkServices::V1::UpdateAuthzExtensionRequest]
960
+ # A request object representing the call parameters. Required.
961
+ # @return [Array(String, [String, nil], Hash{String => String})]
962
+ # Uri, Body, Query string parameters
963
+ def self.transcode_update_authz_extension_request request_pb
964
+ transcoder = Gapic::Rest::GrpcTranscoder.new
965
+ .with_bindings(
966
+ uri_method: :patch,
967
+ uri_template: "/v1/{authz_extension.name}",
968
+ body: "authz_extension",
969
+ matches: [
970
+ ["authz_extension.name", %r{^projects/[^/]+/locations/[^/]+/authzExtensions/[^/]+/?$}, false]
971
+ ]
972
+ )
973
+ transcoder.transcode request_pb
974
+ end
975
+
976
+ ##
977
+ # @private
978
+ #
979
+ # GRPC transcoding helper method for the delete_authz_extension REST call
980
+ #
981
+ # @param request_pb [::Google::Cloud::NetworkServices::V1::DeleteAuthzExtensionRequest]
982
+ # A request object representing the call parameters. Required.
983
+ # @return [Array(String, [String, nil], Hash{String => String})]
984
+ # Uri, Body, Query string parameters
985
+ def self.transcode_delete_authz_extension_request request_pb
986
+ transcoder = Gapic::Rest::GrpcTranscoder.new
987
+ .with_bindings(
988
+ uri_method: :delete,
989
+ uri_template: "/v1/{name}",
990
+ matches: [
991
+ ["name", %r{^projects/[^/]+/locations/[^/]+/authzExtensions/[^/]+/?$}, false]
992
+ ]
993
+ )
994
+ transcoder.transcode request_pb
995
+ end
689
996
  end
690
997
  end
691
998
  end