google-cloud-secure_source_manager-v1 2.1.0 → 2.2.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.
@@ -353,6 +353,46 @@ module Google
353
353
  end
354
354
  end
355
355
 
356
+ ##
357
+ # Baseline implementation for the update_repository REST call
358
+ #
359
+ # @param request_pb [::Google::Cloud::SecureSourceManager::V1::UpdateRepositoryRequest]
360
+ # A request object representing the call parameters. Required.
361
+ # @param options [::Gapic::CallOptions]
362
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
363
+ #
364
+ # @yield [result, operation] Access the result along with the TransportOperation object
365
+ # @yieldparam result [::Google::Longrunning::Operation]
366
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
367
+ #
368
+ # @return [::Google::Longrunning::Operation]
369
+ # A result object deserialized from the server's reply
370
+ def update_repository request_pb, options = nil
371
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
372
+
373
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_repository_request request_pb
374
+ query_string_params = if query_string_params.any?
375
+ query_string_params.to_h { |p| p.split "=", 2 }
376
+ else
377
+ {}
378
+ end
379
+
380
+ response = @client_stub.make_http_request(
381
+ verb,
382
+ uri: uri,
383
+ body: body || "",
384
+ params: query_string_params,
385
+ method_name: "update_repository",
386
+ options: options
387
+ )
388
+ operation = ::Gapic::Rest::TransportOperation.new response
389
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
390
+ catch :response do
391
+ yield result, operation if block_given?
392
+ result
393
+ end
394
+ end
395
+
356
396
  ##
357
397
  # Baseline implementation for the delete_repository REST call
358
398
  #
@@ -393,6 +433,206 @@ module Google
393
433
  end
394
434
  end
395
435
 
436
+ ##
437
+ # Baseline implementation for the list_hooks REST call
438
+ #
439
+ # @param request_pb [::Google::Cloud::SecureSourceManager::V1::ListHooksRequest]
440
+ # A request object representing the call parameters. Required.
441
+ # @param options [::Gapic::CallOptions]
442
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
443
+ #
444
+ # @yield [result, operation] Access the result along with the TransportOperation object
445
+ # @yieldparam result [::Google::Cloud::SecureSourceManager::V1::ListHooksResponse]
446
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
447
+ #
448
+ # @return [::Google::Cloud::SecureSourceManager::V1::ListHooksResponse]
449
+ # A result object deserialized from the server's reply
450
+ def list_hooks request_pb, options = nil
451
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
452
+
453
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_hooks_request request_pb
454
+ query_string_params = if query_string_params.any?
455
+ query_string_params.to_h { |p| p.split "=", 2 }
456
+ else
457
+ {}
458
+ end
459
+
460
+ response = @client_stub.make_http_request(
461
+ verb,
462
+ uri: uri,
463
+ body: body || "",
464
+ params: query_string_params,
465
+ method_name: "list_hooks",
466
+ options: options
467
+ )
468
+ operation = ::Gapic::Rest::TransportOperation.new response
469
+ result = ::Google::Cloud::SecureSourceManager::V1::ListHooksResponse.decode_json response.body, ignore_unknown_fields: true
470
+ catch :response do
471
+ yield result, operation if block_given?
472
+ result
473
+ end
474
+ end
475
+
476
+ ##
477
+ # Baseline implementation for the get_hook REST call
478
+ #
479
+ # @param request_pb [::Google::Cloud::SecureSourceManager::V1::GetHookRequest]
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::SecureSourceManager::V1::Hook]
486
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
487
+ #
488
+ # @return [::Google::Cloud::SecureSourceManager::V1::Hook]
489
+ # A result object deserialized from the server's reply
490
+ def get_hook 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_get_hook_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: "get_hook",
506
+ options: options
507
+ )
508
+ operation = ::Gapic::Rest::TransportOperation.new response
509
+ result = ::Google::Cloud::SecureSourceManager::V1::Hook.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 create_hook REST call
518
+ #
519
+ # @param request_pb [::Google::Cloud::SecureSourceManager::V1::CreateHookRequest]
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::Longrunning::Operation]
526
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
527
+ #
528
+ # @return [::Google::Longrunning::Operation]
529
+ # A result object deserialized from the server's reply
530
+ def create_hook 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_create_hook_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: "create_hook",
546
+ options: options
547
+ )
548
+ operation = ::Gapic::Rest::TransportOperation.new response
549
+ result = ::Google::Longrunning::Operation.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 update_hook REST call
558
+ #
559
+ # @param request_pb [::Google::Cloud::SecureSourceManager::V1::UpdateHookRequest]
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 update_hook 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_update_hook_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: "update_hook",
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 delete_hook REST call
598
+ #
599
+ # @param request_pb [::Google::Cloud::SecureSourceManager::V1::DeleteHookRequest]
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 delete_hook 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_delete_hook_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: "delete_hook",
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
+
396
636
  ##
397
637
  # Baseline implementation for the get_iam_policy_repo REST call
398
638
  #
@@ -714,42 +954,1844 @@ module Google
714
954
  end
715
955
 
716
956
  ##
717
- # @private
718
- #
719
- # GRPC transcoding helper method for the list_instances REST call
957
+ # Baseline implementation for the create_pull_request REST call
720
958
  #
721
- # @param request_pb [::Google::Cloud::SecureSourceManager::V1::ListInstancesRequest]
959
+ # @param request_pb [::Google::Cloud::SecureSourceManager::V1::CreatePullRequestRequest]
722
960
  # A request object representing the call parameters. Required.
723
- # @return [Array(String, [String, nil], Hash{String => String})]
724
- # Uri, Body, Query string parameters
725
- def self.transcode_list_instances_request request_pb
726
- transcoder = Gapic::Rest::GrpcTranscoder.new
727
- .with_bindings(
728
- uri_method: :get,
729
- uri_template: "/v1/{parent}/instances",
730
- matches: [
731
- ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
732
- ]
733
- )
734
- transcoder.transcode request_pb
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::Longrunning::Operation]
966
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
967
+ #
968
+ # @return [::Google::Longrunning::Operation]
969
+ # A result object deserialized from the server's reply
970
+ def create_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_create_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: "create_pull_request",
986
+ options: options
987
+ )
988
+ operation = ::Gapic::Rest::TransportOperation.new response
989
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
990
+ catch :response do
991
+ yield result, operation if block_given?
992
+ result
993
+ end
735
994
  end
736
995
 
737
996
  ##
738
- # @private
739
- #
740
- # GRPC transcoding helper method for the get_instance REST call
997
+ # Baseline implementation for the get_pull_request REST call
741
998
  #
742
- # @param request_pb [::Google::Cloud::SecureSourceManager::V1::GetInstanceRequest]
999
+ # @param request_pb [::Google::Cloud::SecureSourceManager::V1::GetPullRequestRequest]
743
1000
  # A request object representing the call parameters. Required.
744
- # @return [Array(String, [String, nil], Hash{String => String})]
745
- # Uri, Body, Query string parameters
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::SecureSourceManager::V1::PullRequest]
1006
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1007
+ #
1008
+ # @return [::Google::Cloud::SecureSourceManager::V1::PullRequest]
1009
+ # A result object deserialized from the server's reply
1010
+ def get_pull_request 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_get_pull_request_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: "get_pull_request",
1026
+ options: options
1027
+ )
1028
+ operation = ::Gapic::Rest::TransportOperation.new response
1029
+ result = ::Google::Cloud::SecureSourceManager::V1::PullRequest.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
+
1036
+ ##
1037
+ # Baseline implementation for the list_pull_requests REST call
1038
+ #
1039
+ # @param request_pb [::Google::Cloud::SecureSourceManager::V1::ListPullRequestsRequest]
1040
+ # A request object representing the call parameters. Required.
1041
+ # @param options [::Gapic::CallOptions]
1042
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1043
+ #
1044
+ # @yield [result, operation] Access the result along with the TransportOperation object
1045
+ # @yieldparam result [::Google::Cloud::SecureSourceManager::V1::ListPullRequestsResponse]
1046
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1047
+ #
1048
+ # @return [::Google::Cloud::SecureSourceManager::V1::ListPullRequestsResponse]
1049
+ # A result object deserialized from the server's reply
1050
+ def list_pull_requests request_pb, options = nil
1051
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1052
+
1053
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_pull_requests_request request_pb
1054
+ query_string_params = if query_string_params.any?
1055
+ query_string_params.to_h { |p| p.split "=", 2 }
1056
+ else
1057
+ {}
1058
+ end
1059
+
1060
+ response = @client_stub.make_http_request(
1061
+ verb,
1062
+ uri: uri,
1063
+ body: body || "",
1064
+ params: query_string_params,
1065
+ method_name: "list_pull_requests",
1066
+ options: options
1067
+ )
1068
+ operation = ::Gapic::Rest::TransportOperation.new response
1069
+ result = ::Google::Cloud::SecureSourceManager::V1::ListPullRequestsResponse.decode_json response.body, ignore_unknown_fields: true
1070
+ catch :response do
1071
+ yield result, operation if block_given?
1072
+ result
1073
+ end
1074
+ end
1075
+
1076
+ ##
1077
+ # Baseline implementation for the update_pull_request REST call
1078
+ #
1079
+ # @param request_pb [::Google::Cloud::SecureSourceManager::V1::UpdatePullRequestRequest]
1080
+ # A request object representing the call parameters. Required.
1081
+ # @param options [::Gapic::CallOptions]
1082
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1083
+ #
1084
+ # @yield [result, operation] Access the result along with the TransportOperation object
1085
+ # @yieldparam result [::Google::Longrunning::Operation]
1086
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1087
+ #
1088
+ # @return [::Google::Longrunning::Operation]
1089
+ # A result object deserialized from the server's reply
1090
+ def update_pull_request request_pb, options = nil
1091
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1092
+
1093
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_pull_request_request request_pb
1094
+ query_string_params = if query_string_params.any?
1095
+ query_string_params.to_h { |p| p.split "=", 2 }
1096
+ else
1097
+ {}
1098
+ end
1099
+
1100
+ response = @client_stub.make_http_request(
1101
+ verb,
1102
+ uri: uri,
1103
+ body: body || "",
1104
+ params: query_string_params,
1105
+ method_name: "update_pull_request",
1106
+ options: options
1107
+ )
1108
+ operation = ::Gapic::Rest::TransportOperation.new response
1109
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
1110
+ catch :response do
1111
+ yield result, operation if block_given?
1112
+ result
1113
+ end
1114
+ end
1115
+
1116
+ ##
1117
+ # Baseline implementation for the merge_pull_request REST call
1118
+ #
1119
+ # @param request_pb [::Google::Cloud::SecureSourceManager::V1::MergePullRequestRequest]
1120
+ # A request object representing the call parameters. Required.
1121
+ # @param options [::Gapic::CallOptions]
1122
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1123
+ #
1124
+ # @yield [result, operation] Access the result along with the TransportOperation object
1125
+ # @yieldparam result [::Google::Longrunning::Operation]
1126
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1127
+ #
1128
+ # @return [::Google::Longrunning::Operation]
1129
+ # A result object deserialized from the server's reply
1130
+ def merge_pull_request request_pb, options = nil
1131
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1132
+
1133
+ verb, uri, query_string_params, body = ServiceStub.transcode_merge_pull_request_request request_pb
1134
+ query_string_params = if query_string_params.any?
1135
+ query_string_params.to_h { |p| p.split "=", 2 }
1136
+ else
1137
+ {}
1138
+ end
1139
+
1140
+ response = @client_stub.make_http_request(
1141
+ verb,
1142
+ uri: uri,
1143
+ body: body || "",
1144
+ params: query_string_params,
1145
+ method_name: "merge_pull_request",
1146
+ options: options
1147
+ )
1148
+ operation = ::Gapic::Rest::TransportOperation.new response
1149
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
1150
+ catch :response do
1151
+ yield result, operation if block_given?
1152
+ result
1153
+ end
1154
+ end
1155
+
1156
+ ##
1157
+ # Baseline implementation for the open_pull_request REST call
1158
+ #
1159
+ # @param request_pb [::Google::Cloud::SecureSourceManager::V1::OpenPullRequestRequest]
1160
+ # A request object representing the call parameters. Required.
1161
+ # @param options [::Gapic::CallOptions]
1162
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1163
+ #
1164
+ # @yield [result, operation] Access the result along with the TransportOperation object
1165
+ # @yieldparam result [::Google::Longrunning::Operation]
1166
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1167
+ #
1168
+ # @return [::Google::Longrunning::Operation]
1169
+ # A result object deserialized from the server's reply
1170
+ def open_pull_request request_pb, options = nil
1171
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1172
+
1173
+ verb, uri, query_string_params, body = ServiceStub.transcode_open_pull_request_request request_pb
1174
+ query_string_params = if query_string_params.any?
1175
+ query_string_params.to_h { |p| p.split "=", 2 }
1176
+ else
1177
+ {}
1178
+ end
1179
+
1180
+ response = @client_stub.make_http_request(
1181
+ verb,
1182
+ uri: uri,
1183
+ body: body || "",
1184
+ params: query_string_params,
1185
+ method_name: "open_pull_request",
1186
+ options: options
1187
+ )
1188
+ operation = ::Gapic::Rest::TransportOperation.new response
1189
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
1190
+ catch :response do
1191
+ yield result, operation if block_given?
1192
+ result
1193
+ end
1194
+ end
1195
+
1196
+ ##
1197
+ # Baseline implementation for the close_pull_request REST call
1198
+ #
1199
+ # @param request_pb [::Google::Cloud::SecureSourceManager::V1::ClosePullRequestRequest]
1200
+ # A request object representing the call parameters. Required.
1201
+ # @param options [::Gapic::CallOptions]
1202
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1203
+ #
1204
+ # @yield [result, operation] Access the result along with the TransportOperation object
1205
+ # @yieldparam result [::Google::Longrunning::Operation]
1206
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1207
+ #
1208
+ # @return [::Google::Longrunning::Operation]
1209
+ # A result object deserialized from the server's reply
1210
+ def close_pull_request request_pb, options = nil
1211
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1212
+
1213
+ verb, uri, query_string_params, body = ServiceStub.transcode_close_pull_request_request request_pb
1214
+ query_string_params = if query_string_params.any?
1215
+ query_string_params.to_h { |p| p.split "=", 2 }
1216
+ else
1217
+ {}
1218
+ end
1219
+
1220
+ response = @client_stub.make_http_request(
1221
+ verb,
1222
+ uri: uri,
1223
+ body: body || "",
1224
+ params: query_string_params,
1225
+ method_name: "close_pull_request",
1226
+ options: options
1227
+ )
1228
+ operation = ::Gapic::Rest::TransportOperation.new response
1229
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
1230
+ catch :response do
1231
+ yield result, operation if block_given?
1232
+ result
1233
+ end
1234
+ end
1235
+
1236
+ ##
1237
+ # Baseline implementation for the list_pull_request_file_diffs REST call
1238
+ #
1239
+ # @param request_pb [::Google::Cloud::SecureSourceManager::V1::ListPullRequestFileDiffsRequest]
1240
+ # A request object representing the call parameters. Required.
1241
+ # @param options [::Gapic::CallOptions]
1242
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1243
+ #
1244
+ # @yield [result, operation] Access the result along with the TransportOperation object
1245
+ # @yieldparam result [::Google::Cloud::SecureSourceManager::V1::ListPullRequestFileDiffsResponse]
1246
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1247
+ #
1248
+ # @return [::Google::Cloud::SecureSourceManager::V1::ListPullRequestFileDiffsResponse]
1249
+ # A result object deserialized from the server's reply
1250
+ def list_pull_request_file_diffs request_pb, options = nil
1251
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1252
+
1253
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_pull_request_file_diffs_request request_pb
1254
+ query_string_params = if query_string_params.any?
1255
+ query_string_params.to_h { |p| p.split "=", 2 }
1256
+ else
1257
+ {}
1258
+ end
1259
+
1260
+ response = @client_stub.make_http_request(
1261
+ verb,
1262
+ uri: uri,
1263
+ body: body || "",
1264
+ params: query_string_params,
1265
+ method_name: "list_pull_request_file_diffs",
1266
+ options: options
1267
+ )
1268
+ operation = ::Gapic::Rest::TransportOperation.new response
1269
+ result = ::Google::Cloud::SecureSourceManager::V1::ListPullRequestFileDiffsResponse.decode_json response.body, ignore_unknown_fields: true
1270
+ catch :response do
1271
+ yield result, operation if block_given?
1272
+ result
1273
+ end
1274
+ end
1275
+
1276
+ ##
1277
+ # Baseline implementation for the fetch_tree REST call
1278
+ #
1279
+ # @param request_pb [::Google::Cloud::SecureSourceManager::V1::FetchTreeRequest]
1280
+ # A request object representing the call parameters. Required.
1281
+ # @param options [::Gapic::CallOptions]
1282
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1283
+ #
1284
+ # @yield [result, operation] Access the result along with the TransportOperation object
1285
+ # @yieldparam result [::Google::Cloud::SecureSourceManager::V1::FetchTreeResponse]
1286
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1287
+ #
1288
+ # @return [::Google::Cloud::SecureSourceManager::V1::FetchTreeResponse]
1289
+ # A result object deserialized from the server's reply
1290
+ def fetch_tree request_pb, options = nil
1291
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1292
+
1293
+ verb, uri, query_string_params, body = ServiceStub.transcode_fetch_tree_request request_pb
1294
+ query_string_params = if query_string_params.any?
1295
+ query_string_params.to_h { |p| p.split "=", 2 }
1296
+ else
1297
+ {}
1298
+ end
1299
+
1300
+ response = @client_stub.make_http_request(
1301
+ verb,
1302
+ uri: uri,
1303
+ body: body || "",
1304
+ params: query_string_params,
1305
+ method_name: "fetch_tree",
1306
+ options: options
1307
+ )
1308
+ operation = ::Gapic::Rest::TransportOperation.new response
1309
+ result = ::Google::Cloud::SecureSourceManager::V1::FetchTreeResponse.decode_json response.body, ignore_unknown_fields: true
1310
+ catch :response do
1311
+ yield result, operation if block_given?
1312
+ result
1313
+ end
1314
+ end
1315
+
1316
+ ##
1317
+ # Baseline implementation for the fetch_blob REST call
1318
+ #
1319
+ # @param request_pb [::Google::Cloud::SecureSourceManager::V1::FetchBlobRequest]
1320
+ # A request object representing the call parameters. Required.
1321
+ # @param options [::Gapic::CallOptions]
1322
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1323
+ #
1324
+ # @yield [result, operation] Access the result along with the TransportOperation object
1325
+ # @yieldparam result [::Google::Cloud::SecureSourceManager::V1::FetchBlobResponse]
1326
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1327
+ #
1328
+ # @return [::Google::Cloud::SecureSourceManager::V1::FetchBlobResponse]
1329
+ # A result object deserialized from the server's reply
1330
+ def fetch_blob request_pb, options = nil
1331
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1332
+
1333
+ verb, uri, query_string_params, body = ServiceStub.transcode_fetch_blob_request request_pb
1334
+ query_string_params = if query_string_params.any?
1335
+ query_string_params.to_h { |p| p.split "=", 2 }
1336
+ else
1337
+ {}
1338
+ end
1339
+
1340
+ response = @client_stub.make_http_request(
1341
+ verb,
1342
+ uri: uri,
1343
+ body: body || "",
1344
+ params: query_string_params,
1345
+ method_name: "fetch_blob",
1346
+ options: options
1347
+ )
1348
+ operation = ::Gapic::Rest::TransportOperation.new response
1349
+ result = ::Google::Cloud::SecureSourceManager::V1::FetchBlobResponse.decode_json response.body, ignore_unknown_fields: true
1350
+ catch :response do
1351
+ yield result, operation if block_given?
1352
+ result
1353
+ end
1354
+ end
1355
+
1356
+ ##
1357
+ # Baseline implementation for the create_issue REST call
1358
+ #
1359
+ # @param request_pb [::Google::Cloud::SecureSourceManager::V1::CreateIssueRequest]
1360
+ # A request object representing the call parameters. Required.
1361
+ # @param options [::Gapic::CallOptions]
1362
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1363
+ #
1364
+ # @yield [result, operation] Access the result along with the TransportOperation object
1365
+ # @yieldparam result [::Google::Longrunning::Operation]
1366
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1367
+ #
1368
+ # @return [::Google::Longrunning::Operation]
1369
+ # A result object deserialized from the server's reply
1370
+ def create_issue request_pb, options = nil
1371
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1372
+
1373
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_issue_request request_pb
1374
+ query_string_params = if query_string_params.any?
1375
+ query_string_params.to_h { |p| p.split "=", 2 }
1376
+ else
1377
+ {}
1378
+ end
1379
+
1380
+ response = @client_stub.make_http_request(
1381
+ verb,
1382
+ uri: uri,
1383
+ body: body || "",
1384
+ params: query_string_params,
1385
+ method_name: "create_issue",
1386
+ options: options
1387
+ )
1388
+ operation = ::Gapic::Rest::TransportOperation.new response
1389
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
1390
+ catch :response do
1391
+ yield result, operation if block_given?
1392
+ result
1393
+ end
1394
+ end
1395
+
1396
+ ##
1397
+ # Baseline implementation for the get_issue REST call
1398
+ #
1399
+ # @param request_pb [::Google::Cloud::SecureSourceManager::V1::GetIssueRequest]
1400
+ # A request object representing the call parameters. Required.
1401
+ # @param options [::Gapic::CallOptions]
1402
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1403
+ #
1404
+ # @yield [result, operation] Access the result along with the TransportOperation object
1405
+ # @yieldparam result [::Google::Cloud::SecureSourceManager::V1::Issue]
1406
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1407
+ #
1408
+ # @return [::Google::Cloud::SecureSourceManager::V1::Issue]
1409
+ # A result object deserialized from the server's reply
1410
+ def get_issue request_pb, options = nil
1411
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1412
+
1413
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_issue_request request_pb
1414
+ query_string_params = if query_string_params.any?
1415
+ query_string_params.to_h { |p| p.split "=", 2 }
1416
+ else
1417
+ {}
1418
+ end
1419
+
1420
+ response = @client_stub.make_http_request(
1421
+ verb,
1422
+ uri: uri,
1423
+ body: body || "",
1424
+ params: query_string_params,
1425
+ method_name: "get_issue",
1426
+ options: options
1427
+ )
1428
+ operation = ::Gapic::Rest::TransportOperation.new response
1429
+ result = ::Google::Cloud::SecureSourceManager::V1::Issue.decode_json response.body, ignore_unknown_fields: true
1430
+ catch :response do
1431
+ yield result, operation if block_given?
1432
+ result
1433
+ end
1434
+ end
1435
+
1436
+ ##
1437
+ # Baseline implementation for the list_issues REST call
1438
+ #
1439
+ # @param request_pb [::Google::Cloud::SecureSourceManager::V1::ListIssuesRequest]
1440
+ # A request object representing the call parameters. Required.
1441
+ # @param options [::Gapic::CallOptions]
1442
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1443
+ #
1444
+ # @yield [result, operation] Access the result along with the TransportOperation object
1445
+ # @yieldparam result [::Google::Cloud::SecureSourceManager::V1::ListIssuesResponse]
1446
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1447
+ #
1448
+ # @return [::Google::Cloud::SecureSourceManager::V1::ListIssuesResponse]
1449
+ # A result object deserialized from the server's reply
1450
+ def list_issues request_pb, options = nil
1451
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1452
+
1453
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_issues_request request_pb
1454
+ query_string_params = if query_string_params.any?
1455
+ query_string_params.to_h { |p| p.split "=", 2 }
1456
+ else
1457
+ {}
1458
+ end
1459
+
1460
+ response = @client_stub.make_http_request(
1461
+ verb,
1462
+ uri: uri,
1463
+ body: body || "",
1464
+ params: query_string_params,
1465
+ method_name: "list_issues",
1466
+ options: options
1467
+ )
1468
+ operation = ::Gapic::Rest::TransportOperation.new response
1469
+ result = ::Google::Cloud::SecureSourceManager::V1::ListIssuesResponse.decode_json response.body, ignore_unknown_fields: true
1470
+ catch :response do
1471
+ yield result, operation if block_given?
1472
+ result
1473
+ end
1474
+ end
1475
+
1476
+ ##
1477
+ # Baseline implementation for the update_issue REST call
1478
+ #
1479
+ # @param request_pb [::Google::Cloud::SecureSourceManager::V1::UpdateIssueRequest]
1480
+ # A request object representing the call parameters. Required.
1481
+ # @param options [::Gapic::CallOptions]
1482
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1483
+ #
1484
+ # @yield [result, operation] Access the result along with the TransportOperation object
1485
+ # @yieldparam result [::Google::Longrunning::Operation]
1486
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1487
+ #
1488
+ # @return [::Google::Longrunning::Operation]
1489
+ # A result object deserialized from the server's reply
1490
+ def update_issue request_pb, options = nil
1491
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1492
+
1493
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_issue_request request_pb
1494
+ query_string_params = if query_string_params.any?
1495
+ query_string_params.to_h { |p| p.split "=", 2 }
1496
+ else
1497
+ {}
1498
+ end
1499
+
1500
+ response = @client_stub.make_http_request(
1501
+ verb,
1502
+ uri: uri,
1503
+ body: body || "",
1504
+ params: query_string_params,
1505
+ method_name: "update_issue",
1506
+ options: options
1507
+ )
1508
+ operation = ::Gapic::Rest::TransportOperation.new response
1509
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
1510
+ catch :response do
1511
+ yield result, operation if block_given?
1512
+ result
1513
+ end
1514
+ end
1515
+
1516
+ ##
1517
+ # Baseline implementation for the delete_issue REST call
1518
+ #
1519
+ # @param request_pb [::Google::Cloud::SecureSourceManager::V1::DeleteIssueRequest]
1520
+ # A request object representing the call parameters. Required.
1521
+ # @param options [::Gapic::CallOptions]
1522
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1523
+ #
1524
+ # @yield [result, operation] Access the result along with the TransportOperation object
1525
+ # @yieldparam result [::Google::Longrunning::Operation]
1526
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1527
+ #
1528
+ # @return [::Google::Longrunning::Operation]
1529
+ # A result object deserialized from the server's reply
1530
+ def delete_issue request_pb, options = nil
1531
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1532
+
1533
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_issue_request request_pb
1534
+ query_string_params = if query_string_params.any?
1535
+ query_string_params.to_h { |p| p.split "=", 2 }
1536
+ else
1537
+ {}
1538
+ end
1539
+
1540
+ response = @client_stub.make_http_request(
1541
+ verb,
1542
+ uri: uri,
1543
+ body: body || "",
1544
+ params: query_string_params,
1545
+ method_name: "delete_issue",
1546
+ options: options
1547
+ )
1548
+ operation = ::Gapic::Rest::TransportOperation.new response
1549
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
1550
+ catch :response do
1551
+ yield result, operation if block_given?
1552
+ result
1553
+ end
1554
+ end
1555
+
1556
+ ##
1557
+ # Baseline implementation for the open_issue REST call
1558
+ #
1559
+ # @param request_pb [::Google::Cloud::SecureSourceManager::V1::OpenIssueRequest]
1560
+ # A request object representing the call parameters. Required.
1561
+ # @param options [::Gapic::CallOptions]
1562
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1563
+ #
1564
+ # @yield [result, operation] Access the result along with the TransportOperation object
1565
+ # @yieldparam result [::Google::Longrunning::Operation]
1566
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1567
+ #
1568
+ # @return [::Google::Longrunning::Operation]
1569
+ # A result object deserialized from the server's reply
1570
+ def open_issue request_pb, options = nil
1571
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1572
+
1573
+ verb, uri, query_string_params, body = ServiceStub.transcode_open_issue_request request_pb
1574
+ query_string_params = if query_string_params.any?
1575
+ query_string_params.to_h { |p| p.split "=", 2 }
1576
+ else
1577
+ {}
1578
+ end
1579
+
1580
+ response = @client_stub.make_http_request(
1581
+ verb,
1582
+ uri: uri,
1583
+ body: body || "",
1584
+ params: query_string_params,
1585
+ method_name: "open_issue",
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 close_issue REST call
1598
+ #
1599
+ # @param request_pb [::Google::Cloud::SecureSourceManager::V1::CloseIssueRequest]
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 close_issue 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_close_issue_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: "close_issue",
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
1634
+ end
1635
+
1636
+ ##
1637
+ # Baseline implementation for the get_pull_request_comment REST call
1638
+ #
1639
+ # @param request_pb [::Google::Cloud::SecureSourceManager::V1::GetPullRequestCommentRequest]
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::SecureSourceManager::V1::PullRequestComment]
1646
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1647
+ #
1648
+ # @return [::Google::Cloud::SecureSourceManager::V1::PullRequestComment]
1649
+ # A result object deserialized from the server's reply
1650
+ def get_pull_request_comment 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_get_pull_request_comment_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: "get_pull_request_comment",
1666
+ options: options
1667
+ )
1668
+ operation = ::Gapic::Rest::TransportOperation.new response
1669
+ result = ::Google::Cloud::SecureSourceManager::V1::PullRequestComment.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 list_pull_request_comments REST call
1678
+ #
1679
+ # @param request_pb [::Google::Cloud::SecureSourceManager::V1::ListPullRequestCommentsRequest]
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::SecureSourceManager::V1::ListPullRequestCommentsResponse]
1686
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1687
+ #
1688
+ # @return [::Google::Cloud::SecureSourceManager::V1::ListPullRequestCommentsResponse]
1689
+ # A result object deserialized from the server's reply
1690
+ def list_pull_request_comments 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_list_pull_request_comments_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: "list_pull_request_comments",
1706
+ options: options
1707
+ )
1708
+ operation = ::Gapic::Rest::TransportOperation.new response
1709
+ result = ::Google::Cloud::SecureSourceManager::V1::ListPullRequestCommentsResponse.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_pull_request_comment REST call
1718
+ #
1719
+ # @param request_pb [::Google::Cloud::SecureSourceManager::V1::CreatePullRequestCommentRequest]
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_pull_request_comment 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_pull_request_comment_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_pull_request_comment",
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_pull_request_comment REST call
1758
+ #
1759
+ # @param request_pb [::Google::Cloud::SecureSourceManager::V1::UpdatePullRequestCommentRequest]
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_pull_request_comment 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_pull_request_comment_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_pull_request_comment",
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_pull_request_comment REST call
1798
+ #
1799
+ # @param request_pb [::Google::Cloud::SecureSourceManager::V1::DeletePullRequestCommentRequest]
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_pull_request_comment 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_pull_request_comment_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_pull_request_comment",
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 batch_create_pull_request_comments REST call
1838
+ #
1839
+ # @param request_pb [::Google::Cloud::SecureSourceManager::V1::BatchCreatePullRequestCommentsRequest]
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::Longrunning::Operation]
1846
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1847
+ #
1848
+ # @return [::Google::Longrunning::Operation]
1849
+ # A result object deserialized from the server's reply
1850
+ def batch_create_pull_request_comments 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_batch_create_pull_request_comments_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: "batch_create_pull_request_comments",
1866
+ options: options
1867
+ )
1868
+ operation = ::Gapic::Rest::TransportOperation.new response
1869
+ result = ::Google::Longrunning::Operation.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 resolve_pull_request_comments REST call
1878
+ #
1879
+ # @param request_pb [::Google::Cloud::SecureSourceManager::V1::ResolvePullRequestCommentsRequest]
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::Longrunning::Operation]
1886
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1887
+ #
1888
+ # @return [::Google::Longrunning::Operation]
1889
+ # A result object deserialized from the server's reply
1890
+ def resolve_pull_request_comments 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_resolve_pull_request_comments_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: "resolve_pull_request_comments",
1906
+ options: options
1907
+ )
1908
+ operation = ::Gapic::Rest::TransportOperation.new response
1909
+ result = ::Google::Longrunning::Operation.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 unresolve_pull_request_comments REST call
1918
+ #
1919
+ # @param request_pb [::Google::Cloud::SecureSourceManager::V1::UnresolvePullRequestCommentsRequest]
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 unresolve_pull_request_comments 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_unresolve_pull_request_comments_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: "unresolve_pull_request_comments",
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 create_issue_comment REST call
1958
+ #
1959
+ # @param request_pb [::Google::Cloud::SecureSourceManager::V1::CreateIssueCommentRequest]
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 create_issue_comment 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_create_issue_comment_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: "create_issue_comment",
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 get_issue_comment REST call
1998
+ #
1999
+ # @param request_pb [::Google::Cloud::SecureSourceManager::V1::GetIssueCommentRequest]
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::Cloud::SecureSourceManager::V1::IssueComment]
2006
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2007
+ #
2008
+ # @return [::Google::Cloud::SecureSourceManager::V1::IssueComment]
2009
+ # A result object deserialized from the server's reply
2010
+ def get_issue_comment 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_get_issue_comment_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: "get_issue_comment",
2026
+ options: options
2027
+ )
2028
+ operation = ::Gapic::Rest::TransportOperation.new response
2029
+ result = ::Google::Cloud::SecureSourceManager::V1::IssueComment.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_issue_comments REST call
2038
+ #
2039
+ # @param request_pb [::Google::Cloud::SecureSourceManager::V1::ListIssueCommentsRequest]
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::SecureSourceManager::V1::ListIssueCommentsResponse]
2046
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2047
+ #
2048
+ # @return [::Google::Cloud::SecureSourceManager::V1::ListIssueCommentsResponse]
2049
+ # A result object deserialized from the server's reply
2050
+ def list_issue_comments 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_issue_comments_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_issue_comments",
2066
+ options: options
2067
+ )
2068
+ operation = ::Gapic::Rest::TransportOperation.new response
2069
+ result = ::Google::Cloud::SecureSourceManager::V1::ListIssueCommentsResponse.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 update_issue_comment REST call
2078
+ #
2079
+ # @param request_pb [::Google::Cloud::SecureSourceManager::V1::UpdateIssueCommentRequest]
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::Longrunning::Operation]
2086
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2087
+ #
2088
+ # @return [::Google::Longrunning::Operation]
2089
+ # A result object deserialized from the server's reply
2090
+ def update_issue_comment 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_update_issue_comment_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: "update_issue_comment",
2106
+ options: options
2107
+ )
2108
+ operation = ::Gapic::Rest::TransportOperation.new response
2109
+ result = ::Google::Longrunning::Operation.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 delete_issue_comment REST call
2118
+ #
2119
+ # @param request_pb [::Google::Cloud::SecureSourceManager::V1::DeleteIssueCommentRequest]
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 delete_issue_comment 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_delete_issue_comment_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: "delete_issue_comment",
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
+ # @private
2158
+ #
2159
+ # GRPC transcoding helper method for the list_instances REST call
2160
+ #
2161
+ # @param request_pb [::Google::Cloud::SecureSourceManager::V1::ListInstancesRequest]
2162
+ # A request object representing the call parameters. Required.
2163
+ # @return [Array(String, [String, nil], Hash{String => String})]
2164
+ # Uri, Body, Query string parameters
2165
+ def self.transcode_list_instances_request request_pb
2166
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2167
+ .with_bindings(
2168
+ uri_method: :get,
2169
+ uri_template: "/v1/{parent}/instances",
2170
+ matches: [
2171
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
2172
+ ]
2173
+ )
2174
+ transcoder.transcode request_pb
2175
+ end
2176
+
2177
+ ##
2178
+ # @private
2179
+ #
2180
+ # GRPC transcoding helper method for the get_instance REST call
2181
+ #
2182
+ # @param request_pb [::Google::Cloud::SecureSourceManager::V1::GetInstanceRequest]
2183
+ # A request object representing the call parameters. Required.
2184
+ # @return [Array(String, [String, nil], Hash{String => String})]
2185
+ # Uri, Body, Query string parameters
746
2186
  def self.transcode_get_instance_request request_pb
747
2187
  transcoder = Gapic::Rest::GrpcTranscoder.new
748
2188
  .with_bindings(
749
2189
  uri_method: :get,
750
- uri_template: "/v1/{name}",
2190
+ uri_template: "/v1/{name}",
2191
+ matches: [
2192
+ ["name", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/?$}, false]
2193
+ ]
2194
+ )
2195
+ transcoder.transcode request_pb
2196
+ end
2197
+
2198
+ ##
2199
+ # @private
2200
+ #
2201
+ # GRPC transcoding helper method for the create_instance REST call
2202
+ #
2203
+ # @param request_pb [::Google::Cloud::SecureSourceManager::V1::CreateInstanceRequest]
2204
+ # A request object representing the call parameters. Required.
2205
+ # @return [Array(String, [String, nil], Hash{String => String})]
2206
+ # Uri, Body, Query string parameters
2207
+ def self.transcode_create_instance_request request_pb
2208
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2209
+ .with_bindings(
2210
+ uri_method: :post,
2211
+ uri_template: "/v1/{parent}/instances",
2212
+ body: "instance",
2213
+ matches: [
2214
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
2215
+ ]
2216
+ )
2217
+ transcoder.transcode request_pb
2218
+ end
2219
+
2220
+ ##
2221
+ # @private
2222
+ #
2223
+ # GRPC transcoding helper method for the delete_instance REST call
2224
+ #
2225
+ # @param request_pb [::Google::Cloud::SecureSourceManager::V1::DeleteInstanceRequest]
2226
+ # A request object representing the call parameters. Required.
2227
+ # @return [Array(String, [String, nil], Hash{String => String})]
2228
+ # Uri, Body, Query string parameters
2229
+ def self.transcode_delete_instance_request request_pb
2230
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2231
+ .with_bindings(
2232
+ uri_method: :delete,
2233
+ uri_template: "/v1/{name}",
2234
+ matches: [
2235
+ ["name", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/?$}, false]
2236
+ ]
2237
+ )
2238
+ transcoder.transcode request_pb
2239
+ end
2240
+
2241
+ ##
2242
+ # @private
2243
+ #
2244
+ # GRPC transcoding helper method for the list_repositories REST call
2245
+ #
2246
+ # @param request_pb [::Google::Cloud::SecureSourceManager::V1::ListRepositoriesRequest]
2247
+ # A request object representing the call parameters. Required.
2248
+ # @return [Array(String, [String, nil], Hash{String => String})]
2249
+ # Uri, Body, Query string parameters
2250
+ def self.transcode_list_repositories_request request_pb
2251
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2252
+ .with_bindings(
2253
+ uri_method: :get,
2254
+ uri_template: "/v1/{parent}/repositories",
2255
+ matches: [
2256
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
2257
+ ]
2258
+ )
2259
+ transcoder.transcode request_pb
2260
+ end
2261
+
2262
+ ##
2263
+ # @private
2264
+ #
2265
+ # GRPC transcoding helper method for the get_repository REST call
2266
+ #
2267
+ # @param request_pb [::Google::Cloud::SecureSourceManager::V1::GetRepositoryRequest]
2268
+ # A request object representing the call parameters. Required.
2269
+ # @return [Array(String, [String, nil], Hash{String => String})]
2270
+ # Uri, Body, Query string parameters
2271
+ def self.transcode_get_repository_request request_pb
2272
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2273
+ .with_bindings(
2274
+ uri_method: :get,
2275
+ uri_template: "/v1/{name}",
2276
+ matches: [
2277
+ ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false]
2278
+ ]
2279
+ )
2280
+ transcoder.transcode request_pb
2281
+ end
2282
+
2283
+ ##
2284
+ # @private
2285
+ #
2286
+ # GRPC transcoding helper method for the create_repository REST call
2287
+ #
2288
+ # @param request_pb [::Google::Cloud::SecureSourceManager::V1::CreateRepositoryRequest]
2289
+ # A request object representing the call parameters. Required.
2290
+ # @return [Array(String, [String, nil], Hash{String => String})]
2291
+ # Uri, Body, Query string parameters
2292
+ def self.transcode_create_repository_request request_pb
2293
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2294
+ .with_bindings(
2295
+ uri_method: :post,
2296
+ uri_template: "/v1/{parent}/repositories",
2297
+ body: "repository",
2298
+ matches: [
2299
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
2300
+ ]
2301
+ )
2302
+ transcoder.transcode request_pb
2303
+ end
2304
+
2305
+ ##
2306
+ # @private
2307
+ #
2308
+ # GRPC transcoding helper method for the update_repository REST call
2309
+ #
2310
+ # @param request_pb [::Google::Cloud::SecureSourceManager::V1::UpdateRepositoryRequest]
2311
+ # A request object representing the call parameters. Required.
2312
+ # @return [Array(String, [String, nil], Hash{String => String})]
2313
+ # Uri, Body, Query string parameters
2314
+ def self.transcode_update_repository_request request_pb
2315
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2316
+ .with_bindings(
2317
+ uri_method: :patch,
2318
+ uri_template: "/v1/{repository.name}",
2319
+ body: "repository",
2320
+ matches: [
2321
+ ["repository.name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false]
2322
+ ]
2323
+ )
2324
+ transcoder.transcode request_pb
2325
+ end
2326
+
2327
+ ##
2328
+ # @private
2329
+ #
2330
+ # GRPC transcoding helper method for the delete_repository REST call
2331
+ #
2332
+ # @param request_pb [::Google::Cloud::SecureSourceManager::V1::DeleteRepositoryRequest]
2333
+ # A request object representing the call parameters. Required.
2334
+ # @return [Array(String, [String, nil], Hash{String => String})]
2335
+ # Uri, Body, Query string parameters
2336
+ def self.transcode_delete_repository_request request_pb
2337
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2338
+ .with_bindings(
2339
+ uri_method: :delete,
2340
+ uri_template: "/v1/{name}",
2341
+ matches: [
2342
+ ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false]
2343
+ ]
2344
+ )
2345
+ transcoder.transcode request_pb
2346
+ end
2347
+
2348
+ ##
2349
+ # @private
2350
+ #
2351
+ # GRPC transcoding helper method for the list_hooks REST call
2352
+ #
2353
+ # @param request_pb [::Google::Cloud::SecureSourceManager::V1::ListHooksRequest]
2354
+ # A request object representing the call parameters. Required.
2355
+ # @return [Array(String, [String, nil], Hash{String => String})]
2356
+ # Uri, Body, Query string parameters
2357
+ def self.transcode_list_hooks_request request_pb
2358
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2359
+ .with_bindings(
2360
+ uri_method: :get,
2361
+ uri_template: "/v1/{parent}/hooks",
2362
+ matches: [
2363
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false]
2364
+ ]
2365
+ )
2366
+ transcoder.transcode request_pb
2367
+ end
2368
+
2369
+ ##
2370
+ # @private
2371
+ #
2372
+ # GRPC transcoding helper method for the get_hook REST call
2373
+ #
2374
+ # @param request_pb [::Google::Cloud::SecureSourceManager::V1::GetHookRequest]
2375
+ # A request object representing the call parameters. Required.
2376
+ # @return [Array(String, [String, nil], Hash{String => String})]
2377
+ # Uri, Body, Query string parameters
2378
+ def self.transcode_get_hook_request request_pb
2379
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2380
+ .with_bindings(
2381
+ uri_method: :get,
2382
+ uri_template: "/v1/{name}",
2383
+ matches: [
2384
+ ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/hooks/[^/]+/?$}, false]
2385
+ ]
2386
+ )
2387
+ transcoder.transcode request_pb
2388
+ end
2389
+
2390
+ ##
2391
+ # @private
2392
+ #
2393
+ # GRPC transcoding helper method for the create_hook REST call
2394
+ #
2395
+ # @param request_pb [::Google::Cloud::SecureSourceManager::V1::CreateHookRequest]
2396
+ # A request object representing the call parameters. Required.
2397
+ # @return [Array(String, [String, nil], Hash{String => String})]
2398
+ # Uri, Body, Query string parameters
2399
+ def self.transcode_create_hook_request request_pb
2400
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2401
+ .with_bindings(
2402
+ uri_method: :post,
2403
+ uri_template: "/v1/{parent}/hooks",
2404
+ body: "hook",
2405
+ matches: [
2406
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false]
2407
+ ]
2408
+ )
2409
+ transcoder.transcode request_pb
2410
+ end
2411
+
2412
+ ##
2413
+ # @private
2414
+ #
2415
+ # GRPC transcoding helper method for the update_hook REST call
2416
+ #
2417
+ # @param request_pb [::Google::Cloud::SecureSourceManager::V1::UpdateHookRequest]
2418
+ # A request object representing the call parameters. Required.
2419
+ # @return [Array(String, [String, nil], Hash{String => String})]
2420
+ # Uri, Body, Query string parameters
2421
+ def self.transcode_update_hook_request request_pb
2422
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2423
+ .with_bindings(
2424
+ uri_method: :patch,
2425
+ uri_template: "/v1/{hook.name}",
2426
+ body: "hook",
2427
+ matches: [
2428
+ ["hook.name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/hooks/[^/]+/?$}, false]
2429
+ ]
2430
+ )
2431
+ transcoder.transcode request_pb
2432
+ end
2433
+
2434
+ ##
2435
+ # @private
2436
+ #
2437
+ # GRPC transcoding helper method for the delete_hook REST call
2438
+ #
2439
+ # @param request_pb [::Google::Cloud::SecureSourceManager::V1::DeleteHookRequest]
2440
+ # A request object representing the call parameters. Required.
2441
+ # @return [Array(String, [String, nil], Hash{String => String})]
2442
+ # Uri, Body, Query string parameters
2443
+ def self.transcode_delete_hook_request request_pb
2444
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2445
+ .with_bindings(
2446
+ uri_method: :delete,
2447
+ uri_template: "/v1/{name}",
2448
+ matches: [
2449
+ ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/hooks/[^/]+/?$}, false]
2450
+ ]
2451
+ )
2452
+ transcoder.transcode request_pb
2453
+ end
2454
+
2455
+ ##
2456
+ # @private
2457
+ #
2458
+ # GRPC transcoding helper method for the get_iam_policy_repo REST call
2459
+ #
2460
+ # @param request_pb [::Google::Iam::V1::GetIamPolicyRequest]
2461
+ # A request object representing the call parameters. Required.
2462
+ # @return [Array(String, [String, nil], Hash{String => String})]
2463
+ # Uri, Body, Query string parameters
2464
+ def self.transcode_get_iam_policy_repo_request request_pb
2465
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2466
+ .with_bindings(
2467
+ uri_method: :get,
2468
+ uri_template: "/v1/{resource}:getIamPolicy",
2469
+ matches: [
2470
+ ["resource", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false]
2471
+ ]
2472
+ )
2473
+ transcoder.transcode request_pb
2474
+ end
2475
+
2476
+ ##
2477
+ # @private
2478
+ #
2479
+ # GRPC transcoding helper method for the set_iam_policy_repo REST call
2480
+ #
2481
+ # @param request_pb [::Google::Iam::V1::SetIamPolicyRequest]
2482
+ # A request object representing the call parameters. Required.
2483
+ # @return [Array(String, [String, nil], Hash{String => String})]
2484
+ # Uri, Body, Query string parameters
2485
+ def self.transcode_set_iam_policy_repo_request request_pb
2486
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2487
+ .with_bindings(
2488
+ uri_method: :post,
2489
+ uri_template: "/v1/{resource}:setIamPolicy",
2490
+ body: "*",
2491
+ matches: [
2492
+ ["resource", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false]
2493
+ ]
2494
+ )
2495
+ transcoder.transcode request_pb
2496
+ end
2497
+
2498
+ ##
2499
+ # @private
2500
+ #
2501
+ # GRPC transcoding helper method for the test_iam_permissions_repo REST call
2502
+ #
2503
+ # @param request_pb [::Google::Iam::V1::TestIamPermissionsRequest]
2504
+ # A request object representing the call parameters. Required.
2505
+ # @return [Array(String, [String, nil], Hash{String => String})]
2506
+ # Uri, Body, Query string parameters
2507
+ def self.transcode_test_iam_permissions_repo_request request_pb
2508
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2509
+ .with_bindings(
2510
+ uri_method: :post,
2511
+ uri_template: "/v1/{resource}:testIamPermissions",
2512
+ body: "*",
2513
+ matches: [
2514
+ ["resource", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false]
2515
+ ]
2516
+ )
2517
+ transcoder.transcode request_pb
2518
+ end
2519
+
2520
+ ##
2521
+ # @private
2522
+ #
2523
+ # GRPC transcoding helper method for the create_branch_rule REST call
2524
+ #
2525
+ # @param request_pb [::Google::Cloud::SecureSourceManager::V1::CreateBranchRuleRequest]
2526
+ # A request object representing the call parameters. Required.
2527
+ # @return [Array(String, [String, nil], Hash{String => String})]
2528
+ # Uri, Body, Query string parameters
2529
+ def self.transcode_create_branch_rule_request request_pb
2530
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2531
+ .with_bindings(
2532
+ uri_method: :post,
2533
+ uri_template: "/v1/{parent}/branchRules",
2534
+ body: "branch_rule",
2535
+ matches: [
2536
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false]
2537
+ ]
2538
+ )
2539
+ transcoder.transcode request_pb
2540
+ end
2541
+
2542
+ ##
2543
+ # @private
2544
+ #
2545
+ # GRPC transcoding helper method for the list_branch_rules REST call
2546
+ #
2547
+ # @param request_pb [::Google::Cloud::SecureSourceManager::V1::ListBranchRulesRequest]
2548
+ # A request object representing the call parameters. Required.
2549
+ # @return [Array(String, [String, nil], Hash{String => String})]
2550
+ # Uri, Body, Query string parameters
2551
+ def self.transcode_list_branch_rules_request request_pb
2552
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2553
+ .with_bindings(
2554
+ uri_method: :get,
2555
+ uri_template: "/v1/{parent}/branchRules",
2556
+ matches: [
2557
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false]
2558
+ ]
2559
+ )
2560
+ transcoder.transcode request_pb
2561
+ end
2562
+
2563
+ ##
2564
+ # @private
2565
+ #
2566
+ # GRPC transcoding helper method for the get_branch_rule REST call
2567
+ #
2568
+ # @param request_pb [::Google::Cloud::SecureSourceManager::V1::GetBranchRuleRequest]
2569
+ # A request object representing the call parameters. Required.
2570
+ # @return [Array(String, [String, nil], Hash{String => String})]
2571
+ # Uri, Body, Query string parameters
2572
+ def self.transcode_get_branch_rule_request request_pb
2573
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2574
+ .with_bindings(
2575
+ uri_method: :get,
2576
+ uri_template: "/v1/{name}",
2577
+ matches: [
2578
+ ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/branchRules/[^/]+/?$}, false]
2579
+ ]
2580
+ )
2581
+ transcoder.transcode request_pb
2582
+ end
2583
+
2584
+ ##
2585
+ # @private
2586
+ #
2587
+ # GRPC transcoding helper method for the update_branch_rule REST call
2588
+ #
2589
+ # @param request_pb [::Google::Cloud::SecureSourceManager::V1::UpdateBranchRuleRequest]
2590
+ # A request object representing the call parameters. Required.
2591
+ # @return [Array(String, [String, nil], Hash{String => String})]
2592
+ # Uri, Body, Query string parameters
2593
+ def self.transcode_update_branch_rule_request request_pb
2594
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2595
+ .with_bindings(
2596
+ uri_method: :patch,
2597
+ uri_template: "/v1/{branch_rule.name}",
2598
+ body: "branch_rule",
2599
+ matches: [
2600
+ ["branch_rule.name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/branchRules/[^/]+/?$}, false]
2601
+ ]
2602
+ )
2603
+ transcoder.transcode request_pb
2604
+ end
2605
+
2606
+ ##
2607
+ # @private
2608
+ #
2609
+ # GRPC transcoding helper method for the delete_branch_rule REST call
2610
+ #
2611
+ # @param request_pb [::Google::Cloud::SecureSourceManager::V1::DeleteBranchRuleRequest]
2612
+ # A request object representing the call parameters. Required.
2613
+ # @return [Array(String, [String, nil], Hash{String => String})]
2614
+ # Uri, Body, Query string parameters
2615
+ def self.transcode_delete_branch_rule_request request_pb
2616
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2617
+ .with_bindings(
2618
+ uri_method: :delete,
2619
+ uri_template: "/v1/{name}",
2620
+ matches: [
2621
+ ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/branchRules/[^/]+/?$}, false]
2622
+ ]
2623
+ )
2624
+ transcoder.transcode request_pb
2625
+ end
2626
+
2627
+ ##
2628
+ # @private
2629
+ #
2630
+ # GRPC transcoding helper method for the create_pull_request REST call
2631
+ #
2632
+ # @param request_pb [::Google::Cloud::SecureSourceManager::V1::CreatePullRequestRequest]
2633
+ # A request object representing the call parameters. Required.
2634
+ # @return [Array(String, [String, nil], Hash{String => String})]
2635
+ # Uri, Body, Query string parameters
2636
+ def self.transcode_create_pull_request_request request_pb
2637
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2638
+ .with_bindings(
2639
+ uri_method: :post,
2640
+ uri_template: "/v1/{parent}/pullRequests",
2641
+ body: "pull_request",
2642
+ matches: [
2643
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false]
2644
+ ]
2645
+ )
2646
+ transcoder.transcode request_pb
2647
+ end
2648
+
2649
+ ##
2650
+ # @private
2651
+ #
2652
+ # GRPC transcoding helper method for the get_pull_request REST call
2653
+ #
2654
+ # @param request_pb [::Google::Cloud::SecureSourceManager::V1::GetPullRequestRequest]
2655
+ # A request object representing the call parameters. Required.
2656
+ # @return [Array(String, [String, nil], Hash{String => String})]
2657
+ # Uri, Body, Query string parameters
2658
+ def self.transcode_get_pull_request_request request_pb
2659
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2660
+ .with_bindings(
2661
+ uri_method: :get,
2662
+ uri_template: "/v1/{name}",
2663
+ matches: [
2664
+ ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/pullRequests/[^/]+/?$}, false]
2665
+ ]
2666
+ )
2667
+ transcoder.transcode request_pb
2668
+ end
2669
+
2670
+ ##
2671
+ # @private
2672
+ #
2673
+ # GRPC transcoding helper method for the list_pull_requests REST call
2674
+ #
2675
+ # @param request_pb [::Google::Cloud::SecureSourceManager::V1::ListPullRequestsRequest]
2676
+ # A request object representing the call parameters. Required.
2677
+ # @return [Array(String, [String, nil], Hash{String => String})]
2678
+ # Uri, Body, Query string parameters
2679
+ def self.transcode_list_pull_requests_request request_pb
2680
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2681
+ .with_bindings(
2682
+ uri_method: :get,
2683
+ uri_template: "/v1/{parent}/pullRequests",
2684
+ matches: [
2685
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false]
2686
+ ]
2687
+ )
2688
+ transcoder.transcode request_pb
2689
+ end
2690
+
2691
+ ##
2692
+ # @private
2693
+ #
2694
+ # GRPC transcoding helper method for the update_pull_request REST call
2695
+ #
2696
+ # @param request_pb [::Google::Cloud::SecureSourceManager::V1::UpdatePullRequestRequest]
2697
+ # A request object representing the call parameters. Required.
2698
+ # @return [Array(String, [String, nil], Hash{String => String})]
2699
+ # Uri, Body, Query string parameters
2700
+ def self.transcode_update_pull_request_request request_pb
2701
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2702
+ .with_bindings(
2703
+ uri_method: :patch,
2704
+ uri_template: "/v1/{pull_request.name}",
2705
+ body: "pull_request",
2706
+ matches: [
2707
+ ["pull_request.name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/pullRequests/[^/]+/?$}, false]
2708
+ ]
2709
+ )
2710
+ transcoder.transcode request_pb
2711
+ end
2712
+
2713
+ ##
2714
+ # @private
2715
+ #
2716
+ # GRPC transcoding helper method for the merge_pull_request REST call
2717
+ #
2718
+ # @param request_pb [::Google::Cloud::SecureSourceManager::V1::MergePullRequestRequest]
2719
+ # A request object representing the call parameters. Required.
2720
+ # @return [Array(String, [String, nil], Hash{String => String})]
2721
+ # Uri, Body, Query string parameters
2722
+ def self.transcode_merge_pull_request_request request_pb
2723
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2724
+ .with_bindings(
2725
+ uri_method: :post,
2726
+ uri_template: "/v1/{name}:merge",
2727
+ body: "*",
2728
+ matches: [
2729
+ ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/pullRequests/[^/]+/?$}, false]
2730
+ ]
2731
+ )
2732
+ transcoder.transcode request_pb
2733
+ end
2734
+
2735
+ ##
2736
+ # @private
2737
+ #
2738
+ # GRPC transcoding helper method for the open_pull_request REST call
2739
+ #
2740
+ # @param request_pb [::Google::Cloud::SecureSourceManager::V1::OpenPullRequestRequest]
2741
+ # A request object representing the call parameters. Required.
2742
+ # @return [Array(String, [String, nil], Hash{String => String})]
2743
+ # Uri, Body, Query string parameters
2744
+ def self.transcode_open_pull_request_request request_pb
2745
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2746
+ .with_bindings(
2747
+ uri_method: :post,
2748
+ uri_template: "/v1/{name}:open",
2749
+ body: "*",
2750
+ matches: [
2751
+ ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/pullRequests/[^/]+/?$}, false]
2752
+ ]
2753
+ )
2754
+ transcoder.transcode request_pb
2755
+ end
2756
+
2757
+ ##
2758
+ # @private
2759
+ #
2760
+ # GRPC transcoding helper method for the close_pull_request REST call
2761
+ #
2762
+ # @param request_pb [::Google::Cloud::SecureSourceManager::V1::ClosePullRequestRequest]
2763
+ # A request object representing the call parameters. Required.
2764
+ # @return [Array(String, [String, nil], Hash{String => String})]
2765
+ # Uri, Body, Query string parameters
2766
+ def self.transcode_close_pull_request_request request_pb
2767
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2768
+ .with_bindings(
2769
+ uri_method: :post,
2770
+ uri_template: "/v1/{name}:close",
2771
+ body: "*",
2772
+ matches: [
2773
+ ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/pullRequests/[^/]+/?$}, false]
2774
+ ]
2775
+ )
2776
+ transcoder.transcode request_pb
2777
+ end
2778
+
2779
+ ##
2780
+ # @private
2781
+ #
2782
+ # GRPC transcoding helper method for the list_pull_request_file_diffs REST call
2783
+ #
2784
+ # @param request_pb [::Google::Cloud::SecureSourceManager::V1::ListPullRequestFileDiffsRequest]
2785
+ # A request object representing the call parameters. Required.
2786
+ # @return [Array(String, [String, nil], Hash{String => String})]
2787
+ # Uri, Body, Query string parameters
2788
+ def self.transcode_list_pull_request_file_diffs_request request_pb
2789
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2790
+ .with_bindings(
2791
+ uri_method: :get,
2792
+ uri_template: "/v1/{name}:listFileDiffs",
751
2793
  matches: [
752
- ["name", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/?$}, false]
2794
+ ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/pullRequests/[^/]+/?$}, false]
753
2795
  ]
754
2796
  )
755
2797
  transcoder.transcode request_pb
@@ -758,20 +2800,62 @@ module Google
758
2800
  ##
759
2801
  # @private
760
2802
  #
761
- # GRPC transcoding helper method for the create_instance REST call
2803
+ # GRPC transcoding helper method for the fetch_tree REST call
762
2804
  #
763
- # @param request_pb [::Google::Cloud::SecureSourceManager::V1::CreateInstanceRequest]
2805
+ # @param request_pb [::Google::Cloud::SecureSourceManager::V1::FetchTreeRequest]
764
2806
  # A request object representing the call parameters. Required.
765
2807
  # @return [Array(String, [String, nil], Hash{String => String})]
766
2808
  # Uri, Body, Query string parameters
767
- def self.transcode_create_instance_request request_pb
2809
+ def self.transcode_fetch_tree_request request_pb
2810
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2811
+ .with_bindings(
2812
+ uri_method: :get,
2813
+ uri_template: "/v1/{repository}:fetchTree",
2814
+ matches: [
2815
+ ["repository", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false]
2816
+ ]
2817
+ )
2818
+ transcoder.transcode request_pb
2819
+ end
2820
+
2821
+ ##
2822
+ # @private
2823
+ #
2824
+ # GRPC transcoding helper method for the fetch_blob REST call
2825
+ #
2826
+ # @param request_pb [::Google::Cloud::SecureSourceManager::V1::FetchBlobRequest]
2827
+ # A request object representing the call parameters. Required.
2828
+ # @return [Array(String, [String, nil], Hash{String => String})]
2829
+ # Uri, Body, Query string parameters
2830
+ def self.transcode_fetch_blob_request request_pb
2831
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2832
+ .with_bindings(
2833
+ uri_method: :get,
2834
+ uri_template: "/v1/{repository}:fetchBlob",
2835
+ matches: [
2836
+ ["repository", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false]
2837
+ ]
2838
+ )
2839
+ transcoder.transcode request_pb
2840
+ end
2841
+
2842
+ ##
2843
+ # @private
2844
+ #
2845
+ # GRPC transcoding helper method for the create_issue REST call
2846
+ #
2847
+ # @param request_pb [::Google::Cloud::SecureSourceManager::V1::CreateIssueRequest]
2848
+ # A request object representing the call parameters. Required.
2849
+ # @return [Array(String, [String, nil], Hash{String => String})]
2850
+ # Uri, Body, Query string parameters
2851
+ def self.transcode_create_issue_request request_pb
768
2852
  transcoder = Gapic::Rest::GrpcTranscoder.new
769
2853
  .with_bindings(
770
2854
  uri_method: :post,
771
- uri_template: "/v1/{parent}/instances",
772
- body: "instance",
2855
+ uri_template: "/v1/{parent}/issues",
2856
+ body: "issue",
773
2857
  matches: [
774
- ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
2858
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false]
775
2859
  ]
776
2860
  )
777
2861
  transcoder.transcode request_pb
@@ -780,19 +2864,19 @@ module Google
780
2864
  ##
781
2865
  # @private
782
2866
  #
783
- # GRPC transcoding helper method for the delete_instance REST call
2867
+ # GRPC transcoding helper method for the get_issue REST call
784
2868
  #
785
- # @param request_pb [::Google::Cloud::SecureSourceManager::V1::DeleteInstanceRequest]
2869
+ # @param request_pb [::Google::Cloud::SecureSourceManager::V1::GetIssueRequest]
786
2870
  # A request object representing the call parameters. Required.
787
2871
  # @return [Array(String, [String, nil], Hash{String => String})]
788
2872
  # Uri, Body, Query string parameters
789
- def self.transcode_delete_instance_request request_pb
2873
+ def self.transcode_get_issue_request request_pb
790
2874
  transcoder = Gapic::Rest::GrpcTranscoder.new
791
2875
  .with_bindings(
792
- uri_method: :delete,
2876
+ uri_method: :get,
793
2877
  uri_template: "/v1/{name}",
794
2878
  matches: [
795
- ["name", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/?$}, false]
2879
+ ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/issues/[^/]+/?$}, false]
796
2880
  ]
797
2881
  )
798
2882
  transcoder.transcode request_pb
@@ -801,19 +2885,19 @@ module Google
801
2885
  ##
802
2886
  # @private
803
2887
  #
804
- # GRPC transcoding helper method for the list_repositories REST call
2888
+ # GRPC transcoding helper method for the list_issues REST call
805
2889
  #
806
- # @param request_pb [::Google::Cloud::SecureSourceManager::V1::ListRepositoriesRequest]
2890
+ # @param request_pb [::Google::Cloud::SecureSourceManager::V1::ListIssuesRequest]
807
2891
  # A request object representing the call parameters. Required.
808
2892
  # @return [Array(String, [String, nil], Hash{String => String})]
809
2893
  # Uri, Body, Query string parameters
810
- def self.transcode_list_repositories_request request_pb
2894
+ def self.transcode_list_issues_request request_pb
811
2895
  transcoder = Gapic::Rest::GrpcTranscoder.new
812
2896
  .with_bindings(
813
2897
  uri_method: :get,
814
- uri_template: "/v1/{parent}/repositories",
2898
+ uri_template: "/v1/{parent}/issues",
815
2899
  matches: [
816
- ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
2900
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false]
817
2901
  ]
818
2902
  )
819
2903
  transcoder.transcode request_pb
@@ -822,19 +2906,106 @@ module Google
822
2906
  ##
823
2907
  # @private
824
2908
  #
825
- # GRPC transcoding helper method for the get_repository REST call
2909
+ # GRPC transcoding helper method for the update_issue REST call
826
2910
  #
827
- # @param request_pb [::Google::Cloud::SecureSourceManager::V1::GetRepositoryRequest]
2911
+ # @param request_pb [::Google::Cloud::SecureSourceManager::V1::UpdateIssueRequest]
828
2912
  # A request object representing the call parameters. Required.
829
2913
  # @return [Array(String, [String, nil], Hash{String => String})]
830
2914
  # Uri, Body, Query string parameters
831
- def self.transcode_get_repository_request request_pb
2915
+ def self.transcode_update_issue_request request_pb
2916
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2917
+ .with_bindings(
2918
+ uri_method: :patch,
2919
+ uri_template: "/v1/{issue.name}",
2920
+ body: "issue",
2921
+ matches: [
2922
+ ["issue.name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/issues/[^/]+/?$}, false]
2923
+ ]
2924
+ )
2925
+ transcoder.transcode request_pb
2926
+ end
2927
+
2928
+ ##
2929
+ # @private
2930
+ #
2931
+ # GRPC transcoding helper method for the delete_issue REST call
2932
+ #
2933
+ # @param request_pb [::Google::Cloud::SecureSourceManager::V1::DeleteIssueRequest]
2934
+ # A request object representing the call parameters. Required.
2935
+ # @return [Array(String, [String, nil], Hash{String => String})]
2936
+ # Uri, Body, Query string parameters
2937
+ def self.transcode_delete_issue_request request_pb
2938
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2939
+ .with_bindings(
2940
+ uri_method: :delete,
2941
+ uri_template: "/v1/{name}",
2942
+ matches: [
2943
+ ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/issues/[^/]+/?$}, false]
2944
+ ]
2945
+ )
2946
+ transcoder.transcode request_pb
2947
+ end
2948
+
2949
+ ##
2950
+ # @private
2951
+ #
2952
+ # GRPC transcoding helper method for the open_issue REST call
2953
+ #
2954
+ # @param request_pb [::Google::Cloud::SecureSourceManager::V1::OpenIssueRequest]
2955
+ # A request object representing the call parameters. Required.
2956
+ # @return [Array(String, [String, nil], Hash{String => String})]
2957
+ # Uri, Body, Query string parameters
2958
+ def self.transcode_open_issue_request request_pb
2959
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2960
+ .with_bindings(
2961
+ uri_method: :post,
2962
+ uri_template: "/v1/{name}:open",
2963
+ body: "*",
2964
+ matches: [
2965
+ ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/issues/[^/]+/?$}, false]
2966
+ ]
2967
+ )
2968
+ transcoder.transcode request_pb
2969
+ end
2970
+
2971
+ ##
2972
+ # @private
2973
+ #
2974
+ # GRPC transcoding helper method for the close_issue REST call
2975
+ #
2976
+ # @param request_pb [::Google::Cloud::SecureSourceManager::V1::CloseIssueRequest]
2977
+ # A request object representing the call parameters. Required.
2978
+ # @return [Array(String, [String, nil], Hash{String => String})]
2979
+ # Uri, Body, Query string parameters
2980
+ def self.transcode_close_issue_request request_pb
2981
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2982
+ .with_bindings(
2983
+ uri_method: :post,
2984
+ uri_template: "/v1/{name}:close",
2985
+ body: "*",
2986
+ matches: [
2987
+ ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/issues/[^/]+/?$}, false]
2988
+ ]
2989
+ )
2990
+ transcoder.transcode request_pb
2991
+ end
2992
+
2993
+ ##
2994
+ # @private
2995
+ #
2996
+ # GRPC transcoding helper method for the get_pull_request_comment REST call
2997
+ #
2998
+ # @param request_pb [::Google::Cloud::SecureSourceManager::V1::GetPullRequestCommentRequest]
2999
+ # A request object representing the call parameters. Required.
3000
+ # @return [Array(String, [String, nil], Hash{String => String})]
3001
+ # Uri, Body, Query string parameters
3002
+ def self.transcode_get_pull_request_comment_request request_pb
832
3003
  transcoder = Gapic::Rest::GrpcTranscoder.new
833
3004
  .with_bindings(
834
3005
  uri_method: :get,
835
3006
  uri_template: "/v1/{name}",
836
3007
  matches: [
837
- ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false]
3008
+ ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/pullRequests/[^/]+/pullRequestComments/[^/]+/?$}, false]
838
3009
  ]
839
3010
  )
840
3011
  transcoder.transcode request_pb
@@ -843,20 +3014,41 @@ module Google
843
3014
  ##
844
3015
  # @private
845
3016
  #
846
- # GRPC transcoding helper method for the create_repository REST call
3017
+ # GRPC transcoding helper method for the list_pull_request_comments REST call
847
3018
  #
848
- # @param request_pb [::Google::Cloud::SecureSourceManager::V1::CreateRepositoryRequest]
3019
+ # @param request_pb [::Google::Cloud::SecureSourceManager::V1::ListPullRequestCommentsRequest]
849
3020
  # A request object representing the call parameters. Required.
850
3021
  # @return [Array(String, [String, nil], Hash{String => String})]
851
3022
  # Uri, Body, Query string parameters
852
- def self.transcode_create_repository_request request_pb
3023
+ def self.transcode_list_pull_request_comments_request request_pb
3024
+ transcoder = Gapic::Rest::GrpcTranscoder.new
3025
+ .with_bindings(
3026
+ uri_method: :get,
3027
+ uri_template: "/v1/{parent}/pullRequestComments",
3028
+ matches: [
3029
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/pullRequests/[^/]+/?$}, false]
3030
+ ]
3031
+ )
3032
+ transcoder.transcode request_pb
3033
+ end
3034
+
3035
+ ##
3036
+ # @private
3037
+ #
3038
+ # GRPC transcoding helper method for the create_pull_request_comment REST call
3039
+ #
3040
+ # @param request_pb [::Google::Cloud::SecureSourceManager::V1::CreatePullRequestCommentRequest]
3041
+ # A request object representing the call parameters. Required.
3042
+ # @return [Array(String, [String, nil], Hash{String => String})]
3043
+ # Uri, Body, Query string parameters
3044
+ def self.transcode_create_pull_request_comment_request request_pb
853
3045
  transcoder = Gapic::Rest::GrpcTranscoder.new
854
3046
  .with_bindings(
855
3047
  uri_method: :post,
856
- uri_template: "/v1/{parent}/repositories",
857
- body: "repository",
3048
+ uri_template: "/v1/{parent}/pullRequestComments",
3049
+ body: "pull_request_comment",
858
3050
  matches: [
859
- ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
3051
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/pullRequests/[^/]+/?$}, false]
860
3052
  ]
861
3053
  )
862
3054
  transcoder.transcode request_pb
@@ -865,19 +3057,41 @@ module Google
865
3057
  ##
866
3058
  # @private
867
3059
  #
868
- # GRPC transcoding helper method for the delete_repository REST call
3060
+ # GRPC transcoding helper method for the update_pull_request_comment REST call
869
3061
  #
870
- # @param request_pb [::Google::Cloud::SecureSourceManager::V1::DeleteRepositoryRequest]
3062
+ # @param request_pb [::Google::Cloud::SecureSourceManager::V1::UpdatePullRequestCommentRequest]
871
3063
  # A request object representing the call parameters. Required.
872
3064
  # @return [Array(String, [String, nil], Hash{String => String})]
873
3065
  # Uri, Body, Query string parameters
874
- def self.transcode_delete_repository_request request_pb
3066
+ def self.transcode_update_pull_request_comment_request request_pb
3067
+ transcoder = Gapic::Rest::GrpcTranscoder.new
3068
+ .with_bindings(
3069
+ uri_method: :patch,
3070
+ uri_template: "/v1/{pull_request_comment.name}",
3071
+ body: "pull_request_comment",
3072
+ matches: [
3073
+ ["pull_request_comment.name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/pullRequests/[^/]+/pullRequestComments/[^/]+/?$}, false]
3074
+ ]
3075
+ )
3076
+ transcoder.transcode request_pb
3077
+ end
3078
+
3079
+ ##
3080
+ # @private
3081
+ #
3082
+ # GRPC transcoding helper method for the delete_pull_request_comment REST call
3083
+ #
3084
+ # @param request_pb [::Google::Cloud::SecureSourceManager::V1::DeletePullRequestCommentRequest]
3085
+ # A request object representing the call parameters. Required.
3086
+ # @return [Array(String, [String, nil], Hash{String => String})]
3087
+ # Uri, Body, Query string parameters
3088
+ def self.transcode_delete_pull_request_comment_request request_pb
875
3089
  transcoder = Gapic::Rest::GrpcTranscoder.new
876
3090
  .with_bindings(
877
3091
  uri_method: :delete,
878
3092
  uri_template: "/v1/{name}",
879
3093
  matches: [
880
- ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false]
3094
+ ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/pullRequests/[^/]+/pullRequestComments/[^/]+/?$}, false]
881
3095
  ]
882
3096
  )
883
3097
  transcoder.transcode request_pb
@@ -886,19 +3100,20 @@ module Google
886
3100
  ##
887
3101
  # @private
888
3102
  #
889
- # GRPC transcoding helper method for the get_iam_policy_repo REST call
3103
+ # GRPC transcoding helper method for the batch_create_pull_request_comments REST call
890
3104
  #
891
- # @param request_pb [::Google::Iam::V1::GetIamPolicyRequest]
3105
+ # @param request_pb [::Google::Cloud::SecureSourceManager::V1::BatchCreatePullRequestCommentsRequest]
892
3106
  # A request object representing the call parameters. Required.
893
3107
  # @return [Array(String, [String, nil], Hash{String => String})]
894
3108
  # Uri, Body, Query string parameters
895
- def self.transcode_get_iam_policy_repo_request request_pb
3109
+ def self.transcode_batch_create_pull_request_comments_request request_pb
896
3110
  transcoder = Gapic::Rest::GrpcTranscoder.new
897
3111
  .with_bindings(
898
- uri_method: :get,
899
- uri_template: "/v1/{resource}:getIamPolicy",
3112
+ uri_method: :post,
3113
+ uri_template: "/v1/{parent}/pullRequestComments:batchCreate",
3114
+ body: "*",
900
3115
  matches: [
901
- ["resource", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false]
3116
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/pullRequests/[^/]+/?$}, false]
902
3117
  ]
903
3118
  )
904
3119
  transcoder.transcode request_pb
@@ -907,20 +3122,20 @@ module Google
907
3122
  ##
908
3123
  # @private
909
3124
  #
910
- # GRPC transcoding helper method for the set_iam_policy_repo REST call
3125
+ # GRPC transcoding helper method for the resolve_pull_request_comments REST call
911
3126
  #
912
- # @param request_pb [::Google::Iam::V1::SetIamPolicyRequest]
3127
+ # @param request_pb [::Google::Cloud::SecureSourceManager::V1::ResolvePullRequestCommentsRequest]
913
3128
  # A request object representing the call parameters. Required.
914
3129
  # @return [Array(String, [String, nil], Hash{String => String})]
915
3130
  # Uri, Body, Query string parameters
916
- def self.transcode_set_iam_policy_repo_request request_pb
3131
+ def self.transcode_resolve_pull_request_comments_request request_pb
917
3132
  transcoder = Gapic::Rest::GrpcTranscoder.new
918
3133
  .with_bindings(
919
3134
  uri_method: :post,
920
- uri_template: "/v1/{resource}:setIamPolicy",
3135
+ uri_template: "/v1/{parent}/pullRequestComments:resolve",
921
3136
  body: "*",
922
3137
  matches: [
923
- ["resource", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false]
3138
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/pullRequests/[^/]+/?$}, false]
924
3139
  ]
925
3140
  )
926
3141
  transcoder.transcode request_pb
@@ -929,20 +3144,20 @@ module Google
929
3144
  ##
930
3145
  # @private
931
3146
  #
932
- # GRPC transcoding helper method for the test_iam_permissions_repo REST call
3147
+ # GRPC transcoding helper method for the unresolve_pull_request_comments REST call
933
3148
  #
934
- # @param request_pb [::Google::Iam::V1::TestIamPermissionsRequest]
3149
+ # @param request_pb [::Google::Cloud::SecureSourceManager::V1::UnresolvePullRequestCommentsRequest]
935
3150
  # A request object representing the call parameters. Required.
936
3151
  # @return [Array(String, [String, nil], Hash{String => String})]
937
3152
  # Uri, Body, Query string parameters
938
- def self.transcode_test_iam_permissions_repo_request request_pb
3153
+ def self.transcode_unresolve_pull_request_comments_request request_pb
939
3154
  transcoder = Gapic::Rest::GrpcTranscoder.new
940
3155
  .with_bindings(
941
3156
  uri_method: :post,
942
- uri_template: "/v1/{resource}:testIamPermissions",
3157
+ uri_template: "/v1/{parent}/pullRequestComments:unresolve",
943
3158
  body: "*",
944
3159
  matches: [
945
- ["resource", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false]
3160
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/pullRequests/[^/]+/?$}, false]
946
3161
  ]
947
3162
  )
948
3163
  transcoder.transcode request_pb
@@ -951,20 +3166,20 @@ module Google
951
3166
  ##
952
3167
  # @private
953
3168
  #
954
- # GRPC transcoding helper method for the create_branch_rule REST call
3169
+ # GRPC transcoding helper method for the create_issue_comment REST call
955
3170
  #
956
- # @param request_pb [::Google::Cloud::SecureSourceManager::V1::CreateBranchRuleRequest]
3171
+ # @param request_pb [::Google::Cloud::SecureSourceManager::V1::CreateIssueCommentRequest]
957
3172
  # A request object representing the call parameters. Required.
958
3173
  # @return [Array(String, [String, nil], Hash{String => String})]
959
3174
  # Uri, Body, Query string parameters
960
- def self.transcode_create_branch_rule_request request_pb
3175
+ def self.transcode_create_issue_comment_request request_pb
961
3176
  transcoder = Gapic::Rest::GrpcTranscoder.new
962
3177
  .with_bindings(
963
3178
  uri_method: :post,
964
- uri_template: "/v1/{parent}/branchRules",
965
- body: "branch_rule",
3179
+ uri_template: "/v1/{parent}/issueComments",
3180
+ body: "issue_comment",
966
3181
  matches: [
967
- ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false]
3182
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/issues/[^/]+/?$}, false]
968
3183
  ]
969
3184
  )
970
3185
  transcoder.transcode request_pb
@@ -973,19 +3188,19 @@ module Google
973
3188
  ##
974
3189
  # @private
975
3190
  #
976
- # GRPC transcoding helper method for the list_branch_rules REST call
3191
+ # GRPC transcoding helper method for the get_issue_comment REST call
977
3192
  #
978
- # @param request_pb [::Google::Cloud::SecureSourceManager::V1::ListBranchRulesRequest]
3193
+ # @param request_pb [::Google::Cloud::SecureSourceManager::V1::GetIssueCommentRequest]
979
3194
  # A request object representing the call parameters. Required.
980
3195
  # @return [Array(String, [String, nil], Hash{String => String})]
981
3196
  # Uri, Body, Query string parameters
982
- def self.transcode_list_branch_rules_request request_pb
3197
+ def self.transcode_get_issue_comment_request request_pb
983
3198
  transcoder = Gapic::Rest::GrpcTranscoder.new
984
3199
  .with_bindings(
985
3200
  uri_method: :get,
986
- uri_template: "/v1/{parent}/branchRules",
3201
+ uri_template: "/v1/{name}",
987
3202
  matches: [
988
- ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false]
3203
+ ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/issues/[^/]+/issueComments/[^/]+/?$}, false]
989
3204
  ]
990
3205
  )
991
3206
  transcoder.transcode request_pb
@@ -994,19 +3209,19 @@ module Google
994
3209
  ##
995
3210
  # @private
996
3211
  #
997
- # GRPC transcoding helper method for the get_branch_rule REST call
3212
+ # GRPC transcoding helper method for the list_issue_comments REST call
998
3213
  #
999
- # @param request_pb [::Google::Cloud::SecureSourceManager::V1::GetBranchRuleRequest]
3214
+ # @param request_pb [::Google::Cloud::SecureSourceManager::V1::ListIssueCommentsRequest]
1000
3215
  # A request object representing the call parameters. Required.
1001
3216
  # @return [Array(String, [String, nil], Hash{String => String})]
1002
3217
  # Uri, Body, Query string parameters
1003
- def self.transcode_get_branch_rule_request request_pb
3218
+ def self.transcode_list_issue_comments_request request_pb
1004
3219
  transcoder = Gapic::Rest::GrpcTranscoder.new
1005
3220
  .with_bindings(
1006
3221
  uri_method: :get,
1007
- uri_template: "/v1/{name}",
3222
+ uri_template: "/v1/{parent}/issueComments",
1008
3223
  matches: [
1009
- ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/branchRules/[^/]+/?$}, false]
3224
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/issues/[^/]+/?$}, false]
1010
3225
  ]
1011
3226
  )
1012
3227
  transcoder.transcode request_pb
@@ -1015,20 +3230,20 @@ module Google
1015
3230
  ##
1016
3231
  # @private
1017
3232
  #
1018
- # GRPC transcoding helper method for the update_branch_rule REST call
3233
+ # GRPC transcoding helper method for the update_issue_comment REST call
1019
3234
  #
1020
- # @param request_pb [::Google::Cloud::SecureSourceManager::V1::UpdateBranchRuleRequest]
3235
+ # @param request_pb [::Google::Cloud::SecureSourceManager::V1::UpdateIssueCommentRequest]
1021
3236
  # A request object representing the call parameters. Required.
1022
3237
  # @return [Array(String, [String, nil], Hash{String => String})]
1023
3238
  # Uri, Body, Query string parameters
1024
- def self.transcode_update_branch_rule_request request_pb
3239
+ def self.transcode_update_issue_comment_request request_pb
1025
3240
  transcoder = Gapic::Rest::GrpcTranscoder.new
1026
3241
  .with_bindings(
1027
3242
  uri_method: :patch,
1028
- uri_template: "/v1/{branch_rule.name}",
1029
- body: "branch_rule",
3243
+ uri_template: "/v1/{issue_comment.name}",
3244
+ body: "issue_comment",
1030
3245
  matches: [
1031
- ["branch_rule.name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/branchRules/[^/]+/?$}, false]
3246
+ ["issue_comment.name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/issues/[^/]+/issueComments/[^/]+/?$}, false]
1032
3247
  ]
1033
3248
  )
1034
3249
  transcoder.transcode request_pb
@@ -1037,19 +3252,19 @@ module Google
1037
3252
  ##
1038
3253
  # @private
1039
3254
  #
1040
- # GRPC transcoding helper method for the delete_branch_rule REST call
3255
+ # GRPC transcoding helper method for the delete_issue_comment REST call
1041
3256
  #
1042
- # @param request_pb [::Google::Cloud::SecureSourceManager::V1::DeleteBranchRuleRequest]
3257
+ # @param request_pb [::Google::Cloud::SecureSourceManager::V1::DeleteIssueCommentRequest]
1043
3258
  # A request object representing the call parameters. Required.
1044
3259
  # @return [Array(String, [String, nil], Hash{String => String})]
1045
3260
  # Uri, Body, Query string parameters
1046
- def self.transcode_delete_branch_rule_request request_pb
3261
+ def self.transcode_delete_issue_comment_request request_pb
1047
3262
  transcoder = Gapic::Rest::GrpcTranscoder.new
1048
3263
  .with_bindings(
1049
3264
  uri_method: :delete,
1050
3265
  uri_template: "/v1/{name}",
1051
3266
  matches: [
1052
- ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/branchRules/[^/]+/?$}, false]
3267
+ ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/issues/[^/]+/issueComments/[^/]+/?$}, false]
1053
3268
  ]
1054
3269
  )
1055
3270
  transcoder.transcode request_pb