google-cloud-developer_connect-v1 1.8.0 → 1.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +4 -6
- data/lib/google/cloud/developer_connect/v1/developer_connect/client.rb +1129 -89
- data/lib/google/cloud/developer_connect/v1/developer_connect/rest/client.rb +1053 -83
- data/lib/google/cloud/developer_connect/v1/developer_connect/rest/service_stub.rb +614 -0
- data/lib/google/cloud/developer_connect/v1/version.rb +1 -1
- data/lib/google/cloud/developerconnect/v1/developer_connect_pb.rb +27 -1
- data/lib/google/cloud/developerconnect/v1/developer_connect_services_pb.rb +22 -0
- data/proto_docs/google/cloud/developerconnect/v1/developer_connect.rb +521 -0
- metadata +1 -1
|
@@ -513,6 +513,46 @@ module Google
|
|
|
513
513
|
end
|
|
514
514
|
end
|
|
515
515
|
|
|
516
|
+
##
|
|
517
|
+
# Baseline implementation for the open_git_repository_link_pull_request REST call
|
|
518
|
+
#
|
|
519
|
+
# @param request_pb [::Google::Cloud::DeveloperConnect::V1::OpenGitRepositoryLinkPullRequestRequest]
|
|
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::DeveloperConnect::V1::PullRequest]
|
|
526
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
527
|
+
#
|
|
528
|
+
# @return [::Google::Cloud::DeveloperConnect::V1::PullRequest]
|
|
529
|
+
# A result object deserialized from the server's reply
|
|
530
|
+
def open_git_repository_link_pull_request 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_open_git_repository_link_pull_request_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: "open_git_repository_link_pull_request",
|
|
546
|
+
options: options
|
|
547
|
+
)
|
|
548
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
549
|
+
result = ::Google::Cloud::DeveloperConnect::V1::PullRequest.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
|
+
|
|
516
556
|
##
|
|
517
557
|
# Baseline implementation for the fetch_linkable_git_repositories REST call
|
|
518
558
|
#
|
|
@@ -633,6 +673,366 @@ module Google
|
|
|
633
673
|
end
|
|
634
674
|
end
|
|
635
675
|
|
|
676
|
+
##
|
|
677
|
+
# Baseline implementation for the diff_git_repository_link_commit REST call
|
|
678
|
+
#
|
|
679
|
+
# @param request_pb [::Google::Cloud::DeveloperConnect::V1::DiffGitRepositoryLinkCommitRequest]
|
|
680
|
+
# A request object representing the call parameters. Required.
|
|
681
|
+
# @param options [::Gapic::CallOptions]
|
|
682
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
683
|
+
#
|
|
684
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
685
|
+
# @yieldparam result [::Google::Cloud::DeveloperConnect::V1::DiffGitRepositoryLinkCommitResponse]
|
|
686
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
687
|
+
#
|
|
688
|
+
# @return [::Google::Cloud::DeveloperConnect::V1::DiffGitRepositoryLinkCommitResponse]
|
|
689
|
+
# A result object deserialized from the server's reply
|
|
690
|
+
def diff_git_repository_link_commit request_pb, options = nil
|
|
691
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
692
|
+
|
|
693
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_diff_git_repository_link_commit_request request_pb
|
|
694
|
+
query_string_params = if query_string_params.any?
|
|
695
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
696
|
+
else
|
|
697
|
+
{}
|
|
698
|
+
end
|
|
699
|
+
|
|
700
|
+
response = @client_stub.make_http_request(
|
|
701
|
+
verb,
|
|
702
|
+
uri: uri,
|
|
703
|
+
body: body || "",
|
|
704
|
+
params: query_string_params,
|
|
705
|
+
method_name: "diff_git_repository_link_commit",
|
|
706
|
+
options: options
|
|
707
|
+
)
|
|
708
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
709
|
+
result = ::Google::Cloud::DeveloperConnect::V1::DiffGitRepositoryLinkCommitResponse.decode_json response.body, ignore_unknown_fields: true
|
|
710
|
+
catch :response do
|
|
711
|
+
yield result, operation if block_given?
|
|
712
|
+
result
|
|
713
|
+
end
|
|
714
|
+
end
|
|
715
|
+
|
|
716
|
+
##
|
|
717
|
+
# Baseline implementation for the fetch_git_repository_link_commit REST call
|
|
718
|
+
#
|
|
719
|
+
# @param request_pb [::Google::Cloud::DeveloperConnect::V1::FetchGitRepositoryLinkCommitRequest]
|
|
720
|
+
# A request object representing the call parameters. Required.
|
|
721
|
+
# @param options [::Gapic::CallOptions]
|
|
722
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
723
|
+
#
|
|
724
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
725
|
+
# @yieldparam result [::Google::Cloud::DeveloperConnect::V1::FetchGitRepositoryLinkCommitResponse]
|
|
726
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
727
|
+
#
|
|
728
|
+
# @return [::Google::Cloud::DeveloperConnect::V1::FetchGitRepositoryLinkCommitResponse]
|
|
729
|
+
# A result object deserialized from the server's reply
|
|
730
|
+
def fetch_git_repository_link_commit request_pb, options = nil
|
|
731
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
732
|
+
|
|
733
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_fetch_git_repository_link_commit_request request_pb
|
|
734
|
+
query_string_params = if query_string_params.any?
|
|
735
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
736
|
+
else
|
|
737
|
+
{}
|
|
738
|
+
end
|
|
739
|
+
|
|
740
|
+
response = @client_stub.make_http_request(
|
|
741
|
+
verb,
|
|
742
|
+
uri: uri,
|
|
743
|
+
body: body || "",
|
|
744
|
+
params: query_string_params,
|
|
745
|
+
method_name: "fetch_git_repository_link_commit",
|
|
746
|
+
options: options
|
|
747
|
+
)
|
|
748
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
749
|
+
result = ::Google::Cloud::DeveloperConnect::V1::FetchGitRepositoryLinkCommitResponse.decode_json response.body, ignore_unknown_fields: true
|
|
750
|
+
catch :response do
|
|
751
|
+
yield result, operation if block_given?
|
|
752
|
+
result
|
|
753
|
+
end
|
|
754
|
+
end
|
|
755
|
+
|
|
756
|
+
##
|
|
757
|
+
# Baseline implementation for the fetch_git_repository_link_commit_list REST call
|
|
758
|
+
#
|
|
759
|
+
# @param request_pb [::Google::Cloud::DeveloperConnect::V1::FetchGitRepositoryLinkCommitListRequest]
|
|
760
|
+
# A request object representing the call parameters. Required.
|
|
761
|
+
# @param options [::Gapic::CallOptions]
|
|
762
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
763
|
+
#
|
|
764
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
765
|
+
# @yieldparam result [::Google::Cloud::DeveloperConnect::V1::FetchGitRepositoryLinkCommitListResponse]
|
|
766
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
767
|
+
#
|
|
768
|
+
# @return [::Google::Cloud::DeveloperConnect::V1::FetchGitRepositoryLinkCommitListResponse]
|
|
769
|
+
# A result object deserialized from the server's reply
|
|
770
|
+
def fetch_git_repository_link_commit_list request_pb, options = nil
|
|
771
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
772
|
+
|
|
773
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_fetch_git_repository_link_commit_list_request request_pb
|
|
774
|
+
query_string_params = if query_string_params.any?
|
|
775
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
776
|
+
else
|
|
777
|
+
{}
|
|
778
|
+
end
|
|
779
|
+
|
|
780
|
+
response = @client_stub.make_http_request(
|
|
781
|
+
verb,
|
|
782
|
+
uri: uri,
|
|
783
|
+
body: body || "",
|
|
784
|
+
params: query_string_params,
|
|
785
|
+
method_name: "fetch_git_repository_link_commit_list",
|
|
786
|
+
options: options
|
|
787
|
+
)
|
|
788
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
789
|
+
result = ::Google::Cloud::DeveloperConnect::V1::FetchGitRepositoryLinkCommitListResponse.decode_json response.body, ignore_unknown_fields: true
|
|
790
|
+
catch :response do
|
|
791
|
+
yield result, operation if block_given?
|
|
792
|
+
result
|
|
793
|
+
end
|
|
794
|
+
end
|
|
795
|
+
|
|
796
|
+
##
|
|
797
|
+
# Baseline implementation for the fetch_git_repository_link_file_blame REST call
|
|
798
|
+
#
|
|
799
|
+
# @param request_pb [::Google::Cloud::DeveloperConnect::V1::FetchGitRepositoryLinkFileBlameRequest]
|
|
800
|
+
# A request object representing the call parameters. Required.
|
|
801
|
+
# @param options [::Gapic::CallOptions]
|
|
802
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
803
|
+
#
|
|
804
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
805
|
+
# @yieldparam result [::Google::Cloud::DeveloperConnect::V1::FetchGitRepositoryLinkFileBlameResponse]
|
|
806
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
807
|
+
#
|
|
808
|
+
# @return [::Google::Cloud::DeveloperConnect::V1::FetchGitRepositoryLinkFileBlameResponse]
|
|
809
|
+
# A result object deserialized from the server's reply
|
|
810
|
+
def fetch_git_repository_link_file_blame request_pb, options = nil
|
|
811
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
812
|
+
|
|
813
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_fetch_git_repository_link_file_blame_request request_pb
|
|
814
|
+
query_string_params = if query_string_params.any?
|
|
815
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
816
|
+
else
|
|
817
|
+
{}
|
|
818
|
+
end
|
|
819
|
+
|
|
820
|
+
response = @client_stub.make_http_request(
|
|
821
|
+
verb,
|
|
822
|
+
uri: uri,
|
|
823
|
+
body: body || "",
|
|
824
|
+
params: query_string_params,
|
|
825
|
+
method_name: "fetch_git_repository_link_file_blame",
|
|
826
|
+
options: options
|
|
827
|
+
)
|
|
828
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
829
|
+
result = ::Google::Cloud::DeveloperConnect::V1::FetchGitRepositoryLinkFileBlameResponse.decode_json response.body, ignore_unknown_fields: true
|
|
830
|
+
catch :response do
|
|
831
|
+
yield result, operation if block_given?
|
|
832
|
+
result
|
|
833
|
+
end
|
|
834
|
+
end
|
|
835
|
+
|
|
836
|
+
##
|
|
837
|
+
# Baseline implementation for the fetch_git_repository_link_pull_request REST call
|
|
838
|
+
#
|
|
839
|
+
# @param request_pb [::Google::Cloud::DeveloperConnect::V1::FetchGitRepositoryLinkPullRequestRequest]
|
|
840
|
+
# A request object representing the call parameters. Required.
|
|
841
|
+
# @param options [::Gapic::CallOptions]
|
|
842
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
843
|
+
#
|
|
844
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
845
|
+
# @yieldparam result [::Google::Cloud::DeveloperConnect::V1::PullRequest]
|
|
846
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
847
|
+
#
|
|
848
|
+
# @return [::Google::Cloud::DeveloperConnect::V1::PullRequest]
|
|
849
|
+
# A result object deserialized from the server's reply
|
|
850
|
+
def fetch_git_repository_link_pull_request request_pb, options = nil
|
|
851
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
852
|
+
|
|
853
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_fetch_git_repository_link_pull_request_request request_pb
|
|
854
|
+
query_string_params = if query_string_params.any?
|
|
855
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
856
|
+
else
|
|
857
|
+
{}
|
|
858
|
+
end
|
|
859
|
+
|
|
860
|
+
response = @client_stub.make_http_request(
|
|
861
|
+
verb,
|
|
862
|
+
uri: uri,
|
|
863
|
+
body: body || "",
|
|
864
|
+
params: query_string_params,
|
|
865
|
+
method_name: "fetch_git_repository_link_pull_request",
|
|
866
|
+
options: options
|
|
867
|
+
)
|
|
868
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
869
|
+
result = ::Google::Cloud::DeveloperConnect::V1::PullRequest.decode_json response.body, ignore_unknown_fields: true
|
|
870
|
+
catch :response do
|
|
871
|
+
yield result, operation if block_given?
|
|
872
|
+
result
|
|
873
|
+
end
|
|
874
|
+
end
|
|
875
|
+
|
|
876
|
+
##
|
|
877
|
+
# Baseline implementation for the add_git_repository_link_pull_request_comment REST call
|
|
878
|
+
#
|
|
879
|
+
# @param request_pb [::Google::Cloud::DeveloperConnect::V1::AddGitRepositoryLinkPullRequestCommentRequest]
|
|
880
|
+
# A request object representing the call parameters. Required.
|
|
881
|
+
# @param options [::Gapic::CallOptions]
|
|
882
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
883
|
+
#
|
|
884
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
885
|
+
# @yieldparam result [::Google::Cloud::DeveloperConnect::V1::PullRequestComment]
|
|
886
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
887
|
+
#
|
|
888
|
+
# @return [::Google::Cloud::DeveloperConnect::V1::PullRequestComment]
|
|
889
|
+
# A result object deserialized from the server's reply
|
|
890
|
+
def add_git_repository_link_pull_request_comment request_pb, options = nil
|
|
891
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
892
|
+
|
|
893
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_add_git_repository_link_pull_request_comment_request request_pb
|
|
894
|
+
query_string_params = if query_string_params.any?
|
|
895
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
896
|
+
else
|
|
897
|
+
{}
|
|
898
|
+
end
|
|
899
|
+
|
|
900
|
+
response = @client_stub.make_http_request(
|
|
901
|
+
verb,
|
|
902
|
+
uri: uri,
|
|
903
|
+
body: body || "",
|
|
904
|
+
params: query_string_params,
|
|
905
|
+
method_name: "add_git_repository_link_pull_request_comment",
|
|
906
|
+
options: options
|
|
907
|
+
)
|
|
908
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
909
|
+
result = ::Google::Cloud::DeveloperConnect::V1::PullRequestComment.decode_json response.body, ignore_unknown_fields: true
|
|
910
|
+
catch :response do
|
|
911
|
+
yield result, operation if block_given?
|
|
912
|
+
result
|
|
913
|
+
end
|
|
914
|
+
end
|
|
915
|
+
|
|
916
|
+
##
|
|
917
|
+
# Baseline implementation for the add_git_repository_link_pull_request_review_comment REST call
|
|
918
|
+
#
|
|
919
|
+
# @param request_pb [::Google::Cloud::DeveloperConnect::V1::AddGitRepositoryLinkPullRequestReviewCommentRequest]
|
|
920
|
+
# A request object representing the call parameters. Required.
|
|
921
|
+
# @param options [::Gapic::CallOptions]
|
|
922
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
923
|
+
#
|
|
924
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
925
|
+
# @yieldparam result [::Google::Cloud::DeveloperConnect::V1::PullRequestReviewComment]
|
|
926
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
927
|
+
#
|
|
928
|
+
# @return [::Google::Cloud::DeveloperConnect::V1::PullRequestReviewComment]
|
|
929
|
+
# A result object deserialized from the server's reply
|
|
930
|
+
def add_git_repository_link_pull_request_review_comment request_pb, options = nil
|
|
931
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
932
|
+
|
|
933
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_add_git_repository_link_pull_request_review_comment_request request_pb
|
|
934
|
+
query_string_params = if query_string_params.any?
|
|
935
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
936
|
+
else
|
|
937
|
+
{}
|
|
938
|
+
end
|
|
939
|
+
|
|
940
|
+
response = @client_stub.make_http_request(
|
|
941
|
+
verb,
|
|
942
|
+
uri: uri,
|
|
943
|
+
body: body || "",
|
|
944
|
+
params: query_string_params,
|
|
945
|
+
method_name: "add_git_repository_link_pull_request_review_comment",
|
|
946
|
+
options: options
|
|
947
|
+
)
|
|
948
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
949
|
+
result = ::Google::Cloud::DeveloperConnect::V1::PullRequestReviewComment.decode_json response.body, ignore_unknown_fields: true
|
|
950
|
+
catch :response do
|
|
951
|
+
yield result, operation if block_given?
|
|
952
|
+
result
|
|
953
|
+
end
|
|
954
|
+
end
|
|
955
|
+
|
|
956
|
+
##
|
|
957
|
+
# Baseline implementation for the modify_git_repository_link_pull_request REST call
|
|
958
|
+
#
|
|
959
|
+
# @param request_pb [::Google::Cloud::DeveloperConnect::V1::ModifyGitRepositoryLinkPullRequestRequest]
|
|
960
|
+
# A request object representing the call parameters. Required.
|
|
961
|
+
# @param options [::Gapic::CallOptions]
|
|
962
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
963
|
+
#
|
|
964
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
965
|
+
# @yieldparam result [::Google::Cloud::DeveloperConnect::V1::PullRequest]
|
|
966
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
967
|
+
#
|
|
968
|
+
# @return [::Google::Cloud::DeveloperConnect::V1::PullRequest]
|
|
969
|
+
# A result object deserialized from the server's reply
|
|
970
|
+
def modify_git_repository_link_pull_request request_pb, options = nil
|
|
971
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
972
|
+
|
|
973
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_modify_git_repository_link_pull_request_request request_pb
|
|
974
|
+
query_string_params = if query_string_params.any?
|
|
975
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
976
|
+
else
|
|
977
|
+
{}
|
|
978
|
+
end
|
|
979
|
+
|
|
980
|
+
response = @client_stub.make_http_request(
|
|
981
|
+
verb,
|
|
982
|
+
uri: uri,
|
|
983
|
+
body: body || "",
|
|
984
|
+
params: query_string_params,
|
|
985
|
+
method_name: "modify_git_repository_link_pull_request",
|
|
986
|
+
options: options
|
|
987
|
+
)
|
|
988
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
989
|
+
result = ::Google::Cloud::DeveloperConnect::V1::PullRequest.decode_json response.body, ignore_unknown_fields: true
|
|
990
|
+
catch :response do
|
|
991
|
+
yield result, operation if block_given?
|
|
992
|
+
result
|
|
993
|
+
end
|
|
994
|
+
end
|
|
995
|
+
|
|
996
|
+
##
|
|
997
|
+
# Baseline implementation for the fetch_git_repository_link_pull_request_list REST call
|
|
998
|
+
#
|
|
999
|
+
# @param request_pb [::Google::Cloud::DeveloperConnect::V1::FetchGitRepositoryLinkPullRequestListRequest]
|
|
1000
|
+
# A request object representing the call parameters. Required.
|
|
1001
|
+
# @param options [::Gapic::CallOptions]
|
|
1002
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1003
|
+
#
|
|
1004
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1005
|
+
# @yieldparam result [::Google::Cloud::DeveloperConnect::V1::FetchGitRepositoryLinkPullRequestListResponse]
|
|
1006
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1007
|
+
#
|
|
1008
|
+
# @return [::Google::Cloud::DeveloperConnect::V1::FetchGitRepositoryLinkPullRequestListResponse]
|
|
1009
|
+
# A result object deserialized from the server's reply
|
|
1010
|
+
def fetch_git_repository_link_pull_request_list request_pb, options = nil
|
|
1011
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
1012
|
+
|
|
1013
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_fetch_git_repository_link_pull_request_list_request request_pb
|
|
1014
|
+
query_string_params = if query_string_params.any?
|
|
1015
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
1016
|
+
else
|
|
1017
|
+
{}
|
|
1018
|
+
end
|
|
1019
|
+
|
|
1020
|
+
response = @client_stub.make_http_request(
|
|
1021
|
+
verb,
|
|
1022
|
+
uri: uri,
|
|
1023
|
+
body: body || "",
|
|
1024
|
+
params: query_string_params,
|
|
1025
|
+
method_name: "fetch_git_repository_link_pull_request_list",
|
|
1026
|
+
options: options
|
|
1027
|
+
)
|
|
1028
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
1029
|
+
result = ::Google::Cloud::DeveloperConnect::V1::FetchGitRepositoryLinkPullRequestListResponse.decode_json response.body, ignore_unknown_fields: true
|
|
1030
|
+
catch :response do
|
|
1031
|
+
yield result, operation if block_given?
|
|
1032
|
+
result
|
|
1033
|
+
end
|
|
1034
|
+
end
|
|
1035
|
+
|
|
636
1036
|
##
|
|
637
1037
|
# Baseline implementation for the list_account_connectors REST call
|
|
638
1038
|
#
|
|
@@ -1349,6 +1749,28 @@ module Google
|
|
|
1349
1749
|
transcoder.transcode request_pb
|
|
1350
1750
|
end
|
|
1351
1751
|
|
|
1752
|
+
##
|
|
1753
|
+
# @private
|
|
1754
|
+
#
|
|
1755
|
+
# GRPC transcoding helper method for the open_git_repository_link_pull_request REST call
|
|
1756
|
+
#
|
|
1757
|
+
# @param request_pb [::Google::Cloud::DeveloperConnect::V1::OpenGitRepositoryLinkPullRequestRequest]
|
|
1758
|
+
# A request object representing the call parameters. Required.
|
|
1759
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1760
|
+
# Uri, Body, Query string parameters
|
|
1761
|
+
def self.transcode_open_git_repository_link_pull_request_request request_pb
|
|
1762
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1763
|
+
.with_bindings(
|
|
1764
|
+
uri_method: :post,
|
|
1765
|
+
uri_template: "/v1/{name}:openPullRequest",
|
|
1766
|
+
body: "*",
|
|
1767
|
+
matches: [
|
|
1768
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/connections/[^/]+/gitRepositoryLinks/[^/]+/?$}, false]
|
|
1769
|
+
]
|
|
1770
|
+
)
|
|
1771
|
+
transcoder.transcode request_pb
|
|
1772
|
+
end
|
|
1773
|
+
|
|
1352
1774
|
##
|
|
1353
1775
|
# @private
|
|
1354
1776
|
#
|
|
@@ -1412,6 +1834,198 @@ module Google
|
|
|
1412
1834
|
transcoder.transcode request_pb
|
|
1413
1835
|
end
|
|
1414
1836
|
|
|
1837
|
+
##
|
|
1838
|
+
# @private
|
|
1839
|
+
#
|
|
1840
|
+
# GRPC transcoding helper method for the diff_git_repository_link_commit REST call
|
|
1841
|
+
#
|
|
1842
|
+
# @param request_pb [::Google::Cloud::DeveloperConnect::V1::DiffGitRepositoryLinkCommitRequest]
|
|
1843
|
+
# A request object representing the call parameters. Required.
|
|
1844
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1845
|
+
# Uri, Body, Query string parameters
|
|
1846
|
+
def self.transcode_diff_git_repository_link_commit_request request_pb
|
|
1847
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1848
|
+
.with_bindings(
|
|
1849
|
+
uri_method: :get,
|
|
1850
|
+
uri_template: "/v1/{name}:diffCommit",
|
|
1851
|
+
matches: [
|
|
1852
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/connections/[^/]+/gitRepositoryLinks/[^/]+/?$}, false]
|
|
1853
|
+
]
|
|
1854
|
+
)
|
|
1855
|
+
transcoder.transcode request_pb
|
|
1856
|
+
end
|
|
1857
|
+
|
|
1858
|
+
##
|
|
1859
|
+
# @private
|
|
1860
|
+
#
|
|
1861
|
+
# GRPC transcoding helper method for the fetch_git_repository_link_commit REST call
|
|
1862
|
+
#
|
|
1863
|
+
# @param request_pb [::Google::Cloud::DeveloperConnect::V1::FetchGitRepositoryLinkCommitRequest]
|
|
1864
|
+
# A request object representing the call parameters. Required.
|
|
1865
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1866
|
+
# Uri, Body, Query string parameters
|
|
1867
|
+
def self.transcode_fetch_git_repository_link_commit_request request_pb
|
|
1868
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1869
|
+
.with_bindings(
|
|
1870
|
+
uri_method: :get,
|
|
1871
|
+
uri_template: "/v1/{name}:fetchCommit",
|
|
1872
|
+
matches: [
|
|
1873
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/connections/[^/]+/gitRepositoryLinks/[^/]+/?$}, false]
|
|
1874
|
+
]
|
|
1875
|
+
)
|
|
1876
|
+
transcoder.transcode request_pb
|
|
1877
|
+
end
|
|
1878
|
+
|
|
1879
|
+
##
|
|
1880
|
+
# @private
|
|
1881
|
+
#
|
|
1882
|
+
# GRPC transcoding helper method for the fetch_git_repository_link_commit_list REST call
|
|
1883
|
+
#
|
|
1884
|
+
# @param request_pb [::Google::Cloud::DeveloperConnect::V1::FetchGitRepositoryLinkCommitListRequest]
|
|
1885
|
+
# A request object representing the call parameters. Required.
|
|
1886
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1887
|
+
# Uri, Body, Query string parameters
|
|
1888
|
+
def self.transcode_fetch_git_repository_link_commit_list_request request_pb
|
|
1889
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1890
|
+
.with_bindings(
|
|
1891
|
+
uri_method: :get,
|
|
1892
|
+
uri_template: "/v1/{name}:fetchCommitList",
|
|
1893
|
+
matches: [
|
|
1894
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/connections/[^/]+/gitRepositoryLinks/[^/]+/?$}, false]
|
|
1895
|
+
]
|
|
1896
|
+
)
|
|
1897
|
+
transcoder.transcode request_pb
|
|
1898
|
+
end
|
|
1899
|
+
|
|
1900
|
+
##
|
|
1901
|
+
# @private
|
|
1902
|
+
#
|
|
1903
|
+
# GRPC transcoding helper method for the fetch_git_repository_link_file_blame REST call
|
|
1904
|
+
#
|
|
1905
|
+
# @param request_pb [::Google::Cloud::DeveloperConnect::V1::FetchGitRepositoryLinkFileBlameRequest]
|
|
1906
|
+
# A request object representing the call parameters. Required.
|
|
1907
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1908
|
+
# Uri, Body, Query string parameters
|
|
1909
|
+
def self.transcode_fetch_git_repository_link_file_blame_request request_pb
|
|
1910
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1911
|
+
.with_bindings(
|
|
1912
|
+
uri_method: :get,
|
|
1913
|
+
uri_template: "/v1/{name}:fetchFileBlame",
|
|
1914
|
+
matches: [
|
|
1915
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/connections/[^/]+/gitRepositoryLinks/[^/]+/?$}, false]
|
|
1916
|
+
]
|
|
1917
|
+
)
|
|
1918
|
+
transcoder.transcode request_pb
|
|
1919
|
+
end
|
|
1920
|
+
|
|
1921
|
+
##
|
|
1922
|
+
# @private
|
|
1923
|
+
#
|
|
1924
|
+
# GRPC transcoding helper method for the fetch_git_repository_link_pull_request REST call
|
|
1925
|
+
#
|
|
1926
|
+
# @param request_pb [::Google::Cloud::DeveloperConnect::V1::FetchGitRepositoryLinkPullRequestRequest]
|
|
1927
|
+
# A request object representing the call parameters. Required.
|
|
1928
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1929
|
+
# Uri, Body, Query string parameters
|
|
1930
|
+
def self.transcode_fetch_git_repository_link_pull_request_request request_pb
|
|
1931
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1932
|
+
.with_bindings(
|
|
1933
|
+
uri_method: :get,
|
|
1934
|
+
uri_template: "/v1/{name}:fetchPullRequest",
|
|
1935
|
+
matches: [
|
|
1936
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/connections/[^/]+/gitRepositoryLinks/[^/]+/?$}, false]
|
|
1937
|
+
]
|
|
1938
|
+
)
|
|
1939
|
+
transcoder.transcode request_pb
|
|
1940
|
+
end
|
|
1941
|
+
|
|
1942
|
+
##
|
|
1943
|
+
# @private
|
|
1944
|
+
#
|
|
1945
|
+
# GRPC transcoding helper method for the add_git_repository_link_pull_request_comment REST call
|
|
1946
|
+
#
|
|
1947
|
+
# @param request_pb [::Google::Cloud::DeveloperConnect::V1::AddGitRepositoryLinkPullRequestCommentRequest]
|
|
1948
|
+
# A request object representing the call parameters. Required.
|
|
1949
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1950
|
+
# Uri, Body, Query string parameters
|
|
1951
|
+
def self.transcode_add_git_repository_link_pull_request_comment_request request_pb
|
|
1952
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1953
|
+
.with_bindings(
|
|
1954
|
+
uri_method: :post,
|
|
1955
|
+
uri_template: "/v1/{name}:addPullRequestComment",
|
|
1956
|
+
body: "*",
|
|
1957
|
+
matches: [
|
|
1958
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/connections/[^/]+/gitRepositoryLinks/[^/]+/?$}, false]
|
|
1959
|
+
]
|
|
1960
|
+
)
|
|
1961
|
+
transcoder.transcode request_pb
|
|
1962
|
+
end
|
|
1963
|
+
|
|
1964
|
+
##
|
|
1965
|
+
# @private
|
|
1966
|
+
#
|
|
1967
|
+
# GRPC transcoding helper method for the add_git_repository_link_pull_request_review_comment REST call
|
|
1968
|
+
#
|
|
1969
|
+
# @param request_pb [::Google::Cloud::DeveloperConnect::V1::AddGitRepositoryLinkPullRequestReviewCommentRequest]
|
|
1970
|
+
# A request object representing the call parameters. Required.
|
|
1971
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1972
|
+
# Uri, Body, Query string parameters
|
|
1973
|
+
def self.transcode_add_git_repository_link_pull_request_review_comment_request request_pb
|
|
1974
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1975
|
+
.with_bindings(
|
|
1976
|
+
uri_method: :post,
|
|
1977
|
+
uri_template: "/v1/{name}:addPullRequestReviewComment",
|
|
1978
|
+
body: "*",
|
|
1979
|
+
matches: [
|
|
1980
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/connections/[^/]+/gitRepositoryLinks/[^/]+/?$}, false]
|
|
1981
|
+
]
|
|
1982
|
+
)
|
|
1983
|
+
transcoder.transcode request_pb
|
|
1984
|
+
end
|
|
1985
|
+
|
|
1986
|
+
##
|
|
1987
|
+
# @private
|
|
1988
|
+
#
|
|
1989
|
+
# GRPC transcoding helper method for the modify_git_repository_link_pull_request REST call
|
|
1990
|
+
#
|
|
1991
|
+
# @param request_pb [::Google::Cloud::DeveloperConnect::V1::ModifyGitRepositoryLinkPullRequestRequest]
|
|
1992
|
+
# A request object representing the call parameters. Required.
|
|
1993
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1994
|
+
# Uri, Body, Query string parameters
|
|
1995
|
+
def self.transcode_modify_git_repository_link_pull_request_request request_pb
|
|
1996
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1997
|
+
.with_bindings(
|
|
1998
|
+
uri_method: :post,
|
|
1999
|
+
uri_template: "/v1/{name}:modifyPullRequest",
|
|
2000
|
+
body: "*",
|
|
2001
|
+
matches: [
|
|
2002
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/connections/[^/]+/gitRepositoryLinks/[^/]+/?$}, false]
|
|
2003
|
+
]
|
|
2004
|
+
)
|
|
2005
|
+
transcoder.transcode request_pb
|
|
2006
|
+
end
|
|
2007
|
+
|
|
2008
|
+
##
|
|
2009
|
+
# @private
|
|
2010
|
+
#
|
|
2011
|
+
# GRPC transcoding helper method for the fetch_git_repository_link_pull_request_list REST call
|
|
2012
|
+
#
|
|
2013
|
+
# @param request_pb [::Google::Cloud::DeveloperConnect::V1::FetchGitRepositoryLinkPullRequestListRequest]
|
|
2014
|
+
# A request object representing the call parameters. Required.
|
|
2015
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2016
|
+
# Uri, Body, Query string parameters
|
|
2017
|
+
def self.transcode_fetch_git_repository_link_pull_request_list_request request_pb
|
|
2018
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2019
|
+
.with_bindings(
|
|
2020
|
+
uri_method: :get,
|
|
2021
|
+
uri_template: "/v1/{name}:fetchPullRequestList",
|
|
2022
|
+
matches: [
|
|
2023
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/connections/[^/]+/gitRepositoryLinks/[^/]+/?$}, false]
|
|
2024
|
+
]
|
|
2025
|
+
)
|
|
2026
|
+
transcoder.transcode request_pb
|
|
2027
|
+
end
|
|
2028
|
+
|
|
1415
2029
|
##
|
|
1416
2030
|
# @private
|
|
1417
2031
|
#
|