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.
@@ -62,6 +62,10 @@ module Google
62
62
  # @!attribute [r] host_config
63
63
  # @return [::Google::Cloud::SecureSourceManager::V1::Instance::HostConfig]
64
64
  # Output only. A list of hostnames for this instance.
65
+ # @!attribute [rw] workforce_identity_federation_config
66
+ # @return [::Google::Cloud::SecureSourceManager::V1::Instance::WorkforceIdentityFederationConfig]
67
+ # Optional. Configuration for Workforce Identity Federation to support
68
+ # third party identity provider. If unset, defaults to the Google OIDC IdP.
65
69
  class Instance
66
70
  include ::Google::Protobuf::MessageExts
67
71
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -72,8 +76,7 @@ module Google
72
76
  # Output only. HTML hostname.
73
77
  # @!attribute [r] api
74
78
  # @return [::String]
75
- # Output only. API hostname. This is the hostname to use for **Host: Data
76
- # Plane** endpoints.
79
+ # Output only. API hostname.
77
80
  # @!attribute [r] git_http
78
81
  # @return [::String]
79
82
  # Output only. Git HTTP hostname.
@@ -91,7 +94,7 @@ module Google
91
94
  # Required. Immutable. Indicate if it's private instance.
92
95
  # @!attribute [rw] ca_pool
93
96
  # @return [::String]
94
- # Required. Immutable. CA pool resource, resource must in the format of
97
+ # Optional. Immutable. CA pool resource, resource must in the format of
95
98
  # `projects/{project}/locations/{location}/caPools/{ca_pool}`.
96
99
  # @!attribute [r] http_service_attachment
97
100
  # @return [::String]
@@ -111,6 +114,16 @@ module Google
111
114
  extend ::Google::Protobuf::MessageExts::ClassMethods
112
115
  end
113
116
 
117
+ # WorkforceIdentityFederationConfig allows this instance to support users
118
+ # from external identity providers.
119
+ # @!attribute [rw] enabled
120
+ # @return [::Boolean]
121
+ # Optional. Immutable. Whether Workforce Identity Federation is enabled.
122
+ class WorkforceIdentityFederationConfig
123
+ include ::Google::Protobuf::MessageExts
124
+ extend ::Google::Protobuf::MessageExts::ClassMethods
125
+ end
126
+
114
127
  # @!attribute [rw] key
115
128
  # @return [::String]
116
129
  # @!attribute [rw] value
@@ -170,10 +183,9 @@ module Google
170
183
  # Optional. The name of the instance in which the repository is hosted,
171
184
  # formatted as
172
185
  # `projects/{project_number}/locations/{location_id}/instances/{instance_id}`
173
- # When creating repository via
174
- # securesourcemanager.googleapis.com (Control Plane API), this field is used
175
- # as input. When creating repository via *.sourcemanager.dev (Data Plane
176
- # API), this field is output only.
186
+ # When creating repository via securesourcemanager.googleapis.com, this field
187
+ # is used as input. When creating repository via *.sourcemanager.dev, this
188
+ # field is output only.
177
189
  # @!attribute [r] uid
178
190
  # @return [::String]
179
191
  # Output only. Unique identifier of the repository.
@@ -357,8 +369,67 @@ module Google
357
369
  end
358
370
  end
359
371
 
372
+ # Metadata of a Secure Source Manager Hook.
373
+ # @!attribute [rw] name
374
+ # @return [::String]
375
+ # Identifier. A unique identifier for a Hook. The name should be of the
376
+ # format:
377
+ # `projects/{project}/locations/{location_id}/repositories/{repository_id}/hooks/{hook_id}`
378
+ # @!attribute [rw] target_uri
379
+ # @return [::String]
380
+ # Required. The target URI to which the payloads will be delivered.
381
+ # @!attribute [rw] disabled
382
+ # @return [::Boolean]
383
+ # Optional. Determines if the hook disabled or not.
384
+ # Set to true to stop sending traffic.
385
+ # @!attribute [rw] events
386
+ # @return [::Array<::Google::Cloud::SecureSourceManager::V1::Hook::HookEventType>]
387
+ # Optional. The events that trigger hook on.
388
+ # @!attribute [r] create_time
389
+ # @return [::Google::Protobuf::Timestamp]
390
+ # Output only. Create timestamp.
391
+ # @!attribute [r] update_time
392
+ # @return [::Google::Protobuf::Timestamp]
393
+ # Output only. Update timestamp.
394
+ # @!attribute [r] uid
395
+ # @return [::String]
396
+ # Output only. Unique identifier of the hook.
397
+ # @!attribute [rw] push_option
398
+ # @return [::Google::Cloud::SecureSourceManager::V1::Hook::PushOption]
399
+ # Optional. The trigger option for push events.
400
+ # @!attribute [rw] sensitive_query_string
401
+ # @return [::String]
402
+ # Optional. The sensitive query string to be appended to the target URI.
403
+ class Hook
404
+ include ::Google::Protobuf::MessageExts
405
+ extend ::Google::Protobuf::MessageExts::ClassMethods
406
+
407
+ # @!attribute [rw] branch_filter
408
+ # @return [::String]
409
+ # Optional. Trigger hook for matching branches only.
410
+ # Specified as glob pattern. If empty or *, events for all branches are
411
+ # reported. Examples: main, \\{main,release*}.
412
+ # See https://pkg.go.dev/github.com/gobwas/glob documentation.
413
+ class PushOption
414
+ include ::Google::Protobuf::MessageExts
415
+ extend ::Google::Protobuf::MessageExts::ClassMethods
416
+ end
417
+
418
+ module HookEventType
419
+ # Unspecified.
420
+ UNSPECIFIED = 0
421
+
422
+ # Push events are triggered when pushing to the repository.
423
+ PUSH = 1
424
+
425
+ # Pull request events are triggered when a pull request is opened, closed,
426
+ # reopened, or edited.
427
+ PULL_REQUEST = 2
428
+ end
429
+ end
430
+
360
431
  # Metadata of a BranchRule. BranchRule is the protection rule to enforce
361
- # pre-defined rules on desginated branches within a repository.
432
+ # pre-defined rules on designated branches within a repository.
362
433
  # @!attribute [rw] name
363
434
  # @return [::String]
364
435
  # Optional. A unique identifier for a BranchRule. The name should be of the
@@ -441,6 +512,281 @@ module Google
441
512
  end
442
513
  end
443
514
 
515
+ # Metadata of a PullRequest. PullRequest is the request
516
+ # from a user to merge a branch (head) into another branch (base).
517
+ # @!attribute [r] name
518
+ # @return [::String]
519
+ # Output only. A unique identifier for a PullRequest. The number appended at
520
+ # the end is generated by the server. Format:
521
+ # `projects/{project}/locations/{location}/repositories/{repository}/pullRequests/{pull_request_id}`
522
+ # @!attribute [rw] title
523
+ # @return [::String]
524
+ # Required. The pull request title.
525
+ # @!attribute [rw] body
526
+ # @return [::String]
527
+ # Optional. The pull request body. Provides a detailed description of the
528
+ # changes.
529
+ # @!attribute [rw] base
530
+ # @return [::Google::Cloud::SecureSourceManager::V1::PullRequest::Branch]
531
+ # Required. The branch to merge changes in.
532
+ # @!attribute [rw] head
533
+ # @return [::Google::Cloud::SecureSourceManager::V1::PullRequest::Branch]
534
+ # Immutable. The branch containing the changes to be merged.
535
+ # @!attribute [r] state
536
+ # @return [::Google::Cloud::SecureSourceManager::V1::PullRequest::State]
537
+ # Output only. State of the pull request (open, closed or merged).
538
+ # @!attribute [r] create_time
539
+ # @return [::Google::Protobuf::Timestamp]
540
+ # Output only. Creation timestamp.
541
+ # @!attribute [r] update_time
542
+ # @return [::Google::Protobuf::Timestamp]
543
+ # Output only. Last updated timestamp.
544
+ # @!attribute [r] close_time
545
+ # @return [::Google::Protobuf::Timestamp]
546
+ # Output only. Close timestamp (if closed or merged). Cleared when pull
547
+ # request is re-opened.
548
+ class PullRequest
549
+ include ::Google::Protobuf::MessageExts
550
+ extend ::Google::Protobuf::MessageExts::ClassMethods
551
+
552
+ # Branch represents a branch involved in a pull request.
553
+ # @!attribute [rw] ref
554
+ # @return [::String]
555
+ # Required. Name of the branch.
556
+ # @!attribute [r] sha
557
+ # @return [::String]
558
+ # Output only. The commit at the tip of the branch.
559
+ class Branch
560
+ include ::Google::Protobuf::MessageExts
561
+ extend ::Google::Protobuf::MessageExts::ClassMethods
562
+ end
563
+
564
+ # State of the pull request.
565
+ module State
566
+ # Unspecified.
567
+ STATE_UNSPECIFIED = 0
568
+
569
+ # An open pull request.
570
+ OPEN = 1
571
+
572
+ # A closed pull request.
573
+ CLOSED = 2
574
+
575
+ # A merged pull request.
576
+ MERGED = 3
577
+ end
578
+ end
579
+
580
+ # Metadata of a FileDiff. FileDiff represents a single file diff in a pull
581
+ # request.
582
+ # @!attribute [r] name
583
+ # @return [::String]
584
+ # Output only. The name of the file.
585
+ # @!attribute [r] action
586
+ # @return [::Google::Cloud::SecureSourceManager::V1::FileDiff::Action]
587
+ # Output only. The action taken on the file (eg. added, modified, deleted).
588
+ # @!attribute [r] sha
589
+ # @return [::String]
590
+ # Output only. The commit pointing to the file changes.
591
+ # @!attribute [r] patch
592
+ # @return [::String]
593
+ # Output only. The git patch containing the file changes.
594
+ class FileDiff
595
+ include ::Google::Protobuf::MessageExts
596
+ extend ::Google::Protobuf::MessageExts::ClassMethods
597
+
598
+ # Action taken on the file.
599
+ module Action
600
+ # Unspecified.
601
+ ACTION_UNSPECIFIED = 0
602
+
603
+ # The file was added.
604
+ ADDED = 1
605
+
606
+ # The file was modified.
607
+ MODIFIED = 2
608
+
609
+ # The file was deleted.
610
+ DELETED = 3
611
+ end
612
+ end
613
+
614
+ # Metadata of an Issue.
615
+ # @!attribute [rw] name
616
+ # @return [::String]
617
+ # Identifier. Unique identifier for an issue. The issue id is generated by
618
+ # the server. Format:
619
+ # `projects/{project}/locations/{location}/repositories/{repository}/issues/{issue_id}`
620
+ # @!attribute [rw] title
621
+ # @return [::String]
622
+ # Required. Issue title.
623
+ # @!attribute [rw] body
624
+ # @return [::String]
625
+ # Optional. Issue body. Provides a detailed description of the issue.
626
+ # @!attribute [r] state
627
+ # @return [::Google::Cloud::SecureSourceManager::V1::Issue::State]
628
+ # Output only. State of the issue.
629
+ # @!attribute [r] create_time
630
+ # @return [::Google::Protobuf::Timestamp]
631
+ # Output only. Creation timestamp.
632
+ # @!attribute [r] update_time
633
+ # @return [::Google::Protobuf::Timestamp]
634
+ # Output only. Last updated timestamp.
635
+ # @!attribute [r] close_time
636
+ # @return [::Google::Protobuf::Timestamp]
637
+ # Output only. Close timestamp (if closed). Cleared when is re-opened.
638
+ # @!attribute [rw] etag
639
+ # @return [::String]
640
+ # Optional. This checksum is computed by the server based on the value of
641
+ # other fields, and may be sent on update and delete requests to ensure the
642
+ # client has an up-to-date value before proceeding.
643
+ class Issue
644
+ include ::Google::Protobuf::MessageExts
645
+ extend ::Google::Protobuf::MessageExts::ClassMethods
646
+
647
+ # Possible states of an issue.
648
+ module State
649
+ # Unspecified.
650
+ STATE_UNSPECIFIED = 0
651
+
652
+ # An open issue.
653
+ OPEN = 1
654
+
655
+ # A closed issue.
656
+ CLOSED = 2
657
+ end
658
+ end
659
+
660
+ # IssueComment represents a comment on an issue.
661
+ # @!attribute [rw] name
662
+ # @return [::String]
663
+ # Identifier. Unique identifier for an issue comment. The comment id is
664
+ # generated by the server. Format:
665
+ # `projects/{project}/locations/{location}/repositories/{repository}/issues/{issue}/issueComments/{comment_id}`
666
+ # @!attribute [rw] body
667
+ # @return [::String]
668
+ # Required. The comment body.
669
+ # @!attribute [r] create_time
670
+ # @return [::Google::Protobuf::Timestamp]
671
+ # Output only. Creation timestamp.
672
+ # @!attribute [r] update_time
673
+ # @return [::Google::Protobuf::Timestamp]
674
+ # Output only. Last updated timestamp.
675
+ class IssueComment
676
+ include ::Google::Protobuf::MessageExts
677
+ extend ::Google::Protobuf::MessageExts::ClassMethods
678
+ end
679
+
680
+ # PullRequestComment represents a comment on a pull request.
681
+ # @!attribute [rw] name
682
+ # @return [::String]
683
+ # Identifier. Unique identifier for the pull request comment. The comment id
684
+ # is generated by the server. Format:
685
+ # `projects/{project}/locations/{location}/repositories/{repository}/pullRequests/{pull_request}/pullRequestComments/{comment_id}`
686
+ # @!attribute [r] create_time
687
+ # @return [::Google::Protobuf::Timestamp]
688
+ # Output only. Creation timestamp.
689
+ # @!attribute [r] update_time
690
+ # @return [::Google::Protobuf::Timestamp]
691
+ # Output only. Last updated timestamp.
692
+ # @!attribute [rw] review
693
+ # @return [::Google::Cloud::SecureSourceManager::V1::PullRequestComment::Review]
694
+ # Optional. The review summary comment.
695
+ #
696
+ # Note: The following fields are mutually exclusive: `review`, `comment`, `code`. If a field in that set is populated, all other fields in the set will automatically be cleared.
697
+ # @!attribute [rw] comment
698
+ # @return [::Google::Cloud::SecureSourceManager::V1::PullRequestComment::Comment]
699
+ # Optional. The general pull request comment.
700
+ #
701
+ # Note: The following fields are mutually exclusive: `comment`, `review`, `code`. If a field in that set is populated, all other fields in the set will automatically be cleared.
702
+ # @!attribute [rw] code
703
+ # @return [::Google::Cloud::SecureSourceManager::V1::PullRequestComment::Code]
704
+ # Optional. The comment on a code line.
705
+ #
706
+ # Note: The following fields are mutually exclusive: `code`, `review`, `comment`. If a field in that set is populated, all other fields in the set will automatically be cleared.
707
+ class PullRequestComment
708
+ include ::Google::Protobuf::MessageExts
709
+ extend ::Google::Protobuf::MessageExts::ClassMethods
710
+
711
+ # The review summary comment.
712
+ # @!attribute [rw] action_type
713
+ # @return [::Google::Cloud::SecureSourceManager::V1::PullRequestComment::Review::ActionType]
714
+ # Required. The review action type.
715
+ # @!attribute [rw] body
716
+ # @return [::String]
717
+ # Optional. The comment body.
718
+ # @!attribute [r] effective_commit_sha
719
+ # @return [::String]
720
+ # Output only. The effective commit sha this review is pointing to.
721
+ class Review
722
+ include ::Google::Protobuf::MessageExts
723
+ extend ::Google::Protobuf::MessageExts::ClassMethods
724
+
725
+ # The review action type.
726
+ module ActionType
727
+ # Unspecified.
728
+ ACTION_TYPE_UNSPECIFIED = 0
729
+
730
+ # A general review comment.
731
+ COMMENT = 1
732
+
733
+ # Change required from this review.
734
+ CHANGE_REQUESTED = 2
735
+
736
+ # Change approved from this review.
737
+ APPROVED = 3
738
+ end
739
+ end
740
+
741
+ # The general pull request comment.
742
+ # @!attribute [rw] body
743
+ # @return [::String]
744
+ # Required. The comment body.
745
+ class Comment
746
+ include ::Google::Protobuf::MessageExts
747
+ extend ::Google::Protobuf::MessageExts::ClassMethods
748
+ end
749
+
750
+ # The comment on a code line.
751
+ # @!attribute [rw] body
752
+ # @return [::String]
753
+ # Required. The comment body.
754
+ # @!attribute [rw] reply
755
+ # @return [::String]
756
+ # Optional. Input only. The PullRequestComment resource name that this
757
+ # comment is replying to.
758
+ # @!attribute [rw] position
759
+ # @return [::Google::Cloud::SecureSourceManager::V1::PullRequestComment::Position]
760
+ # Optional. The position of the comment.
761
+ # @!attribute [r] effective_root_comment
762
+ # @return [::String]
763
+ # Output only. The root comment of the conversation, derived from the reply
764
+ # field.
765
+ # @!attribute [r] resolved
766
+ # @return [::Boolean]
767
+ # Output only. Boolean indicator if the comment is resolved.
768
+ # @!attribute [r] effective_commit_sha
769
+ # @return [::String]
770
+ # Output only. The effective commit sha this code comment is pointing to.
771
+ class Code
772
+ include ::Google::Protobuf::MessageExts
773
+ extend ::Google::Protobuf::MessageExts::ClassMethods
774
+ end
775
+
776
+ # The position of the code comment.
777
+ # @!attribute [rw] path
778
+ # @return [::String]
779
+ # Required. The path of the file.
780
+ # @!attribute [rw] line
781
+ # @return [::Integer]
782
+ # Required. The line number of the comment. Positive value means it's on
783
+ # the new side of the diff, negative value means it's on the old side.
784
+ class Position
785
+ include ::Google::Protobuf::MessageExts
786
+ extend ::Google::Protobuf::MessageExts::ClassMethods
787
+ end
788
+ end
789
+
444
790
  # ListInstancesRequest is the request to list instances.
445
791
  # @!attribute [rw] parent
446
792
  # @return [::String]
@@ -560,7 +906,7 @@ module Google
560
906
  # @return [::Boolean]
561
907
  # Output only. Identifies whether the user has requested cancellation
562
908
  # of the operation. Operations that have successfully been cancelled
563
- # have [Operation.error][] value with a
909
+ # have {::Google::Longrunning::Operation#error Operation.error} value with a
564
910
  # {::Google::Rpc::Status#code google.rpc.Status.code} of 1, corresponding to
565
911
  # `Code.CANCELLED`.
566
912
  # @!attribute [r] api_version
@@ -590,10 +936,9 @@ module Google
590
936
  # Optional. The name of the instance in which the repository is hosted,
591
937
  # formatted as
592
938
  # `projects/{project_number}/locations/{location_id}/instances/{instance_id}`.
593
- # When listing repositories via
594
- # securesourcemanager.googleapis.com (Control Plane API), this field is
595
- # required. When listing repositories via *.sourcemanager.dev (Data Plane
596
- # API), this field is ignored.
939
+ # When listing repositories via securesourcemanager.googleapis.com, this
940
+ # field is required. When listing repositories via *.sourcemanager.dev, this
941
+ # field is ignored.
597
942
  class ListRepositoriesRequest
598
943
  include ::Google::Protobuf::MessageExts
599
944
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -639,12 +984,32 @@ module Google
639
984
  extend ::Google::Protobuf::MessageExts::ClassMethods
640
985
  end
641
986
 
987
+ # UpdateRepositoryRequest is the request to update a repository.
988
+ # @!attribute [rw] update_mask
989
+ # @return [::Google::Protobuf::FieldMask]
990
+ # Optional. Field mask is used to specify the fields to be overwritten in the
991
+ # repository resource by the update.
992
+ # The fields specified in the update_mask are relative to the resource, not
993
+ # the full request. A field will be overwritten if it is in the mask. If the
994
+ # user does not provide a mask then all fields will be overwritten.
995
+ # @!attribute [rw] repository
996
+ # @return [::Google::Cloud::SecureSourceManager::V1::Repository]
997
+ # Required. The repository being updated.
998
+ # @!attribute [rw] validate_only
999
+ # @return [::Boolean]
1000
+ # Optional. False by default. If set to true, the request is validated and
1001
+ # the user is provided with an expected result, but no actual change is made.
1002
+ class UpdateRepositoryRequest
1003
+ include ::Google::Protobuf::MessageExts
1004
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1005
+ end
1006
+
642
1007
  # DeleteRepositoryRequest is the request to delete a repository.
643
1008
  # @!attribute [rw] name
644
1009
  # @return [::String]
645
1010
  # Required. Name of the repository to delete.
646
1011
  # The format is
647
- # projects/\\{project_number}/locations/\\{location_id}/repositories/\\{repository_id}.
1012
+ # `projects/{project_number}/locations/{location_id}/repositories/{repository_id}`.
648
1013
  # @!attribute [rw] allow_missing
649
1014
  # @return [::Boolean]
650
1015
  # Optional. If set to true, and the repository is not found, the request will
@@ -654,6 +1019,92 @@ module Google
654
1019
  extend ::Google::Protobuf::MessageExts::ClassMethods
655
1020
  end
656
1021
 
1022
+ # ListHooksRequest is request to list hooks.
1023
+ # @!attribute [rw] parent
1024
+ # @return [::String]
1025
+ # Required. Parent value for ListHooksRequest.
1026
+ # @!attribute [rw] page_size
1027
+ # @return [::Integer]
1028
+ # Optional. Requested page size. Server may return fewer items than
1029
+ # requested. If unspecified, server will pick an appropriate default.
1030
+ # @!attribute [rw] page_token
1031
+ # @return [::String]
1032
+ # Optional. A token identifying a page of results the server should return.
1033
+ class ListHooksRequest
1034
+ include ::Google::Protobuf::MessageExts
1035
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1036
+ end
1037
+
1038
+ # ListHooksResponse is response to list hooks.
1039
+ # @!attribute [rw] hooks
1040
+ # @return [::Array<::Google::Cloud::SecureSourceManager::V1::Hook>]
1041
+ # The list of hooks.
1042
+ # @!attribute [rw] next_page_token
1043
+ # @return [::String]
1044
+ # A token identifying a page of results the server should return.
1045
+ class ListHooksResponse
1046
+ include ::Google::Protobuf::MessageExts
1047
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1048
+ end
1049
+
1050
+ # GetHookRequest is the request for getting a hook.
1051
+ # @!attribute [rw] name
1052
+ # @return [::String]
1053
+ # Required. Name of the hook to retrieve.
1054
+ # The format is
1055
+ # `projects/{project_number}/locations/{location_id}/repositories/{repository_id}/hooks/{hook_id}`.
1056
+ class GetHookRequest
1057
+ include ::Google::Protobuf::MessageExts
1058
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1059
+ end
1060
+
1061
+ # CreateHookRequest is the request for creating a hook.
1062
+ # @!attribute [rw] parent
1063
+ # @return [::String]
1064
+ # Required. The repository in which to create the hook. Values are of the
1065
+ # form
1066
+ # `projects/{project_number}/locations/{location_id}/repositories/{repository_id}`
1067
+ # @!attribute [rw] hook
1068
+ # @return [::Google::Cloud::SecureSourceManager::V1::Hook]
1069
+ # Required. The resource being created.
1070
+ # @!attribute [rw] hook_id
1071
+ # @return [::String]
1072
+ # Required. The ID to use for the hook, which will become the final component
1073
+ # of the hook's resource name. This value restricts to lower-case letters,
1074
+ # numbers, and hyphen, with the first character a letter, the last a letter
1075
+ # or a number, and a 63 character maximum.
1076
+ class CreateHookRequest
1077
+ include ::Google::Protobuf::MessageExts
1078
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1079
+ end
1080
+
1081
+ # UpdateHookRequest is the request to update a hook.
1082
+ # @!attribute [rw] update_mask
1083
+ # @return [::Google::Protobuf::FieldMask]
1084
+ # Required. Field mask is used to specify the fields to be overwritten in the
1085
+ # hook resource by the update.
1086
+ # The fields specified in the update_mask are relative to the resource, not
1087
+ # the full request. A field will be overwritten if it is in the mask.
1088
+ # The special value "*" means full replacement.
1089
+ # @!attribute [rw] hook
1090
+ # @return [::Google::Cloud::SecureSourceManager::V1::Hook]
1091
+ # Required. The hook being updated.
1092
+ class UpdateHookRequest
1093
+ include ::Google::Protobuf::MessageExts
1094
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1095
+ end
1096
+
1097
+ # DeleteHookRequest is the request to delete a hook.
1098
+ # @!attribute [rw] name
1099
+ # @return [::String]
1100
+ # Required. Name of the hook to delete.
1101
+ # The format is
1102
+ # `projects/{project_number}/locations/{location_id}/repositories/{repository_id}/hooks/{hook_id}`.
1103
+ class DeleteHookRequest
1104
+ include ::Google::Protobuf::MessageExts
1105
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1106
+ end
1107
+
657
1108
  # GetBranchRuleRequest is the request for getting a branch rule.
658
1109
  # @!attribute [rw] name
659
1110
  # @return [::String]
@@ -731,6 +1182,610 @@ module Google
731
1182
  include ::Google::Protobuf::MessageExts
732
1183
  extend ::Google::Protobuf::MessageExts::ClassMethods
733
1184
  end
1185
+
1186
+ # CreatePullRequestRequest is the request to create a pull request.
1187
+ # @!attribute [rw] parent
1188
+ # @return [::String]
1189
+ # Required. The repository that the pull request is created from. Format:
1190
+ # `projects/{project_number}/locations/{location_id}/repositories/{repository_id}`
1191
+ # @!attribute [rw] pull_request
1192
+ # @return [::Google::Cloud::SecureSourceManager::V1::PullRequest]
1193
+ # Required. The pull request to create.
1194
+ class CreatePullRequestRequest
1195
+ include ::Google::Protobuf::MessageExts
1196
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1197
+ end
1198
+
1199
+ # GetPullRequestRequest is the request to get a pull request.
1200
+ # @!attribute [rw] name
1201
+ # @return [::String]
1202
+ # Required. Name of the pull request to retrieve.
1203
+ # The format is
1204
+ # `projects/{project}/locations/{location}/repositories/{repository}/pullRequests/{pull_request}`.
1205
+ class GetPullRequestRequest
1206
+ include ::Google::Protobuf::MessageExts
1207
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1208
+ end
1209
+
1210
+ # ListPullRequestsRequest is the request to list pull requests.
1211
+ # @!attribute [rw] parent
1212
+ # @return [::String]
1213
+ # Required. The repository in which to list pull requests. Format:
1214
+ # `projects/{project_number}/locations/{location_id}/repositories/{repository_id}`
1215
+ # @!attribute [rw] page_size
1216
+ # @return [::Integer]
1217
+ # Optional. Requested page size. Server may return fewer items than
1218
+ # requested. If unspecified, server will pick an appropriate default.
1219
+ # @!attribute [rw] page_token
1220
+ # @return [::String]
1221
+ # Optional. A token identifying a page of results the server should return.
1222
+ class ListPullRequestsRequest
1223
+ include ::Google::Protobuf::MessageExts
1224
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1225
+ end
1226
+
1227
+ # ListPullRequestsResponse is the response to list pull requests.
1228
+ # @!attribute [rw] pull_requests
1229
+ # @return [::Array<::Google::Cloud::SecureSourceManager::V1::PullRequest>]
1230
+ # The list of pull requests.
1231
+ # @!attribute [rw] next_page_token
1232
+ # @return [::String]
1233
+ # A token identifying a page of results the server should return.
1234
+ class ListPullRequestsResponse
1235
+ include ::Google::Protobuf::MessageExts
1236
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1237
+ end
1238
+
1239
+ # UpdatePullRequestRequest is the request to update a pull request.
1240
+ # @!attribute [rw] pull_request
1241
+ # @return [::Google::Cloud::SecureSourceManager::V1::PullRequest]
1242
+ # Required. The pull request to update.
1243
+ # @!attribute [rw] update_mask
1244
+ # @return [::Google::Protobuf::FieldMask]
1245
+ # Optional. Field mask is used to specify the fields to be overwritten in the
1246
+ # pull request resource by the update.
1247
+ # The fields specified in the update_mask are relative to the resource, not
1248
+ # the full request. A field will be overwritten if it is in the mask.
1249
+ # The special value "*" means full replacement.
1250
+ class UpdatePullRequestRequest
1251
+ include ::Google::Protobuf::MessageExts
1252
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1253
+ end
1254
+
1255
+ # MergePullRequestRequest is the request to merge a pull request.
1256
+ # @!attribute [rw] name
1257
+ # @return [::String]
1258
+ # Required. The pull request to merge.
1259
+ # Format:
1260
+ # `projects/{project_number}/locations/{location_id}/repositories/{repository_id}/pullRequests/{pull_request_id}`
1261
+ class MergePullRequestRequest
1262
+ include ::Google::Protobuf::MessageExts
1263
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1264
+ end
1265
+
1266
+ # OpenPullRequestRequest is the request to open a pull request.
1267
+ # @!attribute [rw] name
1268
+ # @return [::String]
1269
+ # Required. The pull request to open.
1270
+ # Format:
1271
+ # `projects/{project_number}/locations/{location_id}/repositories/{repository_id}/pullRequests/{pull_request_id}`
1272
+ class OpenPullRequestRequest
1273
+ include ::Google::Protobuf::MessageExts
1274
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1275
+ end
1276
+
1277
+ # ClosePullRequestRequest is the request to close a pull request.
1278
+ # @!attribute [rw] name
1279
+ # @return [::String]
1280
+ # Required. The pull request to close.
1281
+ # Format:
1282
+ # `projects/{project_number}/locations/{location_id}/repositories/{repository_id}/pullRequests/{pull_request_id}`
1283
+ class ClosePullRequestRequest
1284
+ include ::Google::Protobuf::MessageExts
1285
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1286
+ end
1287
+
1288
+ # ListPullRequestFileDiffsRequest is the request to list pull request file
1289
+ # diffs.
1290
+ # @!attribute [rw] name
1291
+ # @return [::String]
1292
+ # Required. The pull request to list file diffs for.
1293
+ # Format:
1294
+ # `projects/{project_number}/locations/{location_id}/repositories/{repository_id}/pullRequests/{pull_request_id}`
1295
+ # @!attribute [rw] page_size
1296
+ # @return [::Integer]
1297
+ # Optional. Requested page size. Server may return fewer items than
1298
+ # requested. If unspecified, server will pick an appropriate default.
1299
+ # @!attribute [rw] page_token
1300
+ # @return [::String]
1301
+ # Optional. A token identifying a page of results the server should return.
1302
+ class ListPullRequestFileDiffsRequest
1303
+ include ::Google::Protobuf::MessageExts
1304
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1305
+ end
1306
+
1307
+ # ListPullRequestFileDiffsResponse is the response containing file diffs
1308
+ # returned from ListPullRequestFileDiffs.
1309
+ # @!attribute [rw] file_diffs
1310
+ # @return [::Array<::Google::Cloud::SecureSourceManager::V1::FileDiff>]
1311
+ # The list of pull request file diffs.
1312
+ # @!attribute [rw] next_page_token
1313
+ # @return [::String]
1314
+ # A token identifying a page of results the server should return.
1315
+ class ListPullRequestFileDiffsResponse
1316
+ include ::Google::Protobuf::MessageExts
1317
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1318
+ end
1319
+
1320
+ # The request to create an issue.
1321
+ # @!attribute [rw] parent
1322
+ # @return [::String]
1323
+ # Required. The repository in which to create the issue. Format:
1324
+ # `projects/{project_number}/locations/{location_id}/repositories/{repository_id}`
1325
+ # @!attribute [rw] issue
1326
+ # @return [::Google::Cloud::SecureSourceManager::V1::Issue]
1327
+ # Required. The issue to create.
1328
+ class CreateIssueRequest
1329
+ include ::Google::Protobuf::MessageExts
1330
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1331
+ end
1332
+
1333
+ # The request to get an issue.
1334
+ # @!attribute [rw] name
1335
+ # @return [::String]
1336
+ # Required. Name of the issue to retrieve.
1337
+ # The format is
1338
+ # `projects/{project}/locations/{location}/repositories/{repository}/issues/{issue_id}`.
1339
+ class GetIssueRequest
1340
+ include ::Google::Protobuf::MessageExts
1341
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1342
+ end
1343
+
1344
+ # The request to list issues.
1345
+ # @!attribute [rw] parent
1346
+ # @return [::String]
1347
+ # Required. The repository in which to list issues. Format:
1348
+ # `projects/{project_number}/locations/{location_id}/repositories/{repository_id}`
1349
+ # @!attribute [rw] page_size
1350
+ # @return [::Integer]
1351
+ # Optional. Requested page size. Server may return fewer items than
1352
+ # requested. If unspecified, server will pick an appropriate default.
1353
+ # @!attribute [rw] page_token
1354
+ # @return [::String]
1355
+ # Optional. A token identifying a page of results the server should return.
1356
+ # @!attribute [rw] filter
1357
+ # @return [::String]
1358
+ # Optional. Used to filter the resulting issues list.
1359
+ class ListIssuesRequest
1360
+ include ::Google::Protobuf::MessageExts
1361
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1362
+ end
1363
+
1364
+ # The response to list issues.
1365
+ # @!attribute [rw] issues
1366
+ # @return [::Array<::Google::Cloud::SecureSourceManager::V1::Issue>]
1367
+ # The list of issues.
1368
+ # @!attribute [rw] next_page_token
1369
+ # @return [::String]
1370
+ # A token identifying a page of results the server should return.
1371
+ class ListIssuesResponse
1372
+ include ::Google::Protobuf::MessageExts
1373
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1374
+ end
1375
+
1376
+ # The request to update an issue.
1377
+ # @!attribute [rw] issue
1378
+ # @return [::Google::Cloud::SecureSourceManager::V1::Issue]
1379
+ # Required. The issue to update.
1380
+ # @!attribute [rw] update_mask
1381
+ # @return [::Google::Protobuf::FieldMask]
1382
+ # Optional. Field mask is used to specify the fields to be overwritten in the
1383
+ # issue resource by the update.
1384
+ # The fields specified in the update_mask are relative to the resource, not
1385
+ # the full request. A field will be overwritten if it is in the mask.
1386
+ # The special value "*" means full replacement.
1387
+ class UpdateIssueRequest
1388
+ include ::Google::Protobuf::MessageExts
1389
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1390
+ end
1391
+
1392
+ # The request to delete an issue.
1393
+ # @!attribute [rw] name
1394
+ # @return [::String]
1395
+ # Required. Name of the issue to delete.
1396
+ # The format is
1397
+ # `projects/{project_number}/locations/{location_id}/repositories/{repository_id}/issues/{issue_id}`.
1398
+ # @!attribute [rw] etag
1399
+ # @return [::String]
1400
+ # Optional. The current etag of the issue.
1401
+ # If the etag is provided and does not match the current etag of the issue,
1402
+ # deletion will be blocked and an ABORTED error will be returned.
1403
+ class DeleteIssueRequest
1404
+ include ::Google::Protobuf::MessageExts
1405
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1406
+ end
1407
+
1408
+ # The request to close an issue.
1409
+ # @!attribute [rw] name
1410
+ # @return [::String]
1411
+ # Required. Name of the issue to close.
1412
+ # The format is
1413
+ # `projects/{project_number}/locations/{location_id}/repositories/{repository_id}/issues/{issue_id}`.
1414
+ # @!attribute [rw] etag
1415
+ # @return [::String]
1416
+ # Optional. The current etag of the issue.
1417
+ # If the etag is provided and does not match the current etag of the issue,
1418
+ # closing will be blocked and an ABORTED error will be returned.
1419
+ class CloseIssueRequest
1420
+ include ::Google::Protobuf::MessageExts
1421
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1422
+ end
1423
+
1424
+ # The request to open an issue.
1425
+ # @!attribute [rw] name
1426
+ # @return [::String]
1427
+ # Required. Name of the issue to open.
1428
+ # The format is
1429
+ # `projects/{project_number}/locations/{location_id}/repositories/{repository_id}/issues/{issue_id}`.
1430
+ # @!attribute [rw] etag
1431
+ # @return [::String]
1432
+ # Optional. The current etag of the issue.
1433
+ # If the etag is provided and does not match the current etag of the issue,
1434
+ # opening will be blocked and an ABORTED error will be returned.
1435
+ class OpenIssueRequest
1436
+ include ::Google::Protobuf::MessageExts
1437
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1438
+ end
1439
+
1440
+ # Represents an entry within a tree structure (like a Git tree).
1441
+ # @!attribute [r] type
1442
+ # @return [::Google::Cloud::SecureSourceManager::V1::TreeEntry::ObjectType]
1443
+ # Output only. The type of the object (TREE, BLOB, COMMIT). Output-only.
1444
+ # @!attribute [r] sha
1445
+ # @return [::String]
1446
+ # Output only. The SHA-1 hash of the object (unique identifier). Output-only.
1447
+ # @!attribute [r] path
1448
+ # @return [::String]
1449
+ # Output only. The path of the file or directory within the tree (e.g.,
1450
+ # "src/main/java/MyClass.java"). Output-only.
1451
+ # @!attribute [r] mode
1452
+ # @return [::String]
1453
+ # Output only. The file mode as a string (e.g., "100644"). Indicates file
1454
+ # type. Output-only.
1455
+ # @!attribute [r] size
1456
+ # @return [::Integer]
1457
+ # Output only. The size of the object in bytes (only for blobs). Output-only.
1458
+ class TreeEntry
1459
+ include ::Google::Protobuf::MessageExts
1460
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1461
+
1462
+ # Defines the type of object the TreeEntry represents.
1463
+ module ObjectType
1464
+ # Default value, indicating the object type is unspecified.
1465
+ OBJECT_TYPE_UNSPECIFIED = 0
1466
+
1467
+ # Represents a directory (folder).
1468
+ TREE = 1
1469
+
1470
+ # Represents a file (contains file data).
1471
+ BLOB = 2
1472
+
1473
+ # Represents a pointer to another repository (submodule).
1474
+ COMMIT = 3
1475
+ end
1476
+ end
1477
+
1478
+ # Request message for fetching a tree structure from a repository.
1479
+ # @!attribute [rw] repository
1480
+ # @return [::String]
1481
+ # Required. The format is
1482
+ # `projects/{project_number}/locations/{location_id}/repositories/{repository_id}`.
1483
+ # Specifies the repository to fetch the tree from.
1484
+ # @!attribute [rw] ref
1485
+ # @return [::String]
1486
+ # Optional. `ref` can be a SHA-1 hash, a branch name, or a tag. Specifies
1487
+ # which tree to fetch. If not specified, the default branch will be used.
1488
+ # @!attribute [rw] recursive
1489
+ # @return [::Boolean]
1490
+ # Optional. If true, include all subfolders and their files in the response.
1491
+ # If false, only the immediate children are returned.
1492
+ # @!attribute [rw] page_size
1493
+ # @return [::Integer]
1494
+ # Optional. Requested page size. Server may return fewer items than
1495
+ # requested. If unspecified, at most 10,000 items will be returned.
1496
+ # @!attribute [rw] page_token
1497
+ # @return [::String]
1498
+ # Optional. A token identifying a page of results the server should return.
1499
+ class FetchTreeRequest
1500
+ include ::Google::Protobuf::MessageExts
1501
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1502
+ end
1503
+
1504
+ # Response message containing a list of TreeEntry objects.
1505
+ # @!attribute [rw] tree_entries
1506
+ # @return [::Array<::Google::Cloud::SecureSourceManager::V1::TreeEntry>]
1507
+ # The list of TreeEntry objects.
1508
+ # @!attribute [rw] next_page_token
1509
+ # @return [::String]
1510
+ # A token identifying a page of results the server should return.
1511
+ class FetchTreeResponse
1512
+ include ::Google::Protobuf::MessageExts
1513
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1514
+ end
1515
+
1516
+ # Request message for fetching a blob (file content) from a repository.
1517
+ # @!attribute [rw] repository
1518
+ # @return [::String]
1519
+ # Required. The format is
1520
+ # `projects/{project_number}/locations/{location_id}/repositories/{repository_id}`.
1521
+ # Specifies the repository containing the blob.
1522
+ # @!attribute [rw] sha
1523
+ # @return [::String]
1524
+ # Required. The SHA-1 hash of the blob to retrieve.
1525
+ class FetchBlobRequest
1526
+ include ::Google::Protobuf::MessageExts
1527
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1528
+ end
1529
+
1530
+ # Response message containing the content of a blob.
1531
+ # @!attribute [rw] sha
1532
+ # @return [::String]
1533
+ # The SHA-1 hash of the blob.
1534
+ # @!attribute [rw] content
1535
+ # @return [::String]
1536
+ # The content of the blob, encoded as base64.
1537
+ class FetchBlobResponse
1538
+ include ::Google::Protobuf::MessageExts
1539
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1540
+ end
1541
+
1542
+ # The request to list pull request comments.
1543
+ # @!attribute [rw] parent
1544
+ # @return [::String]
1545
+ # Required. The pull request in which to list pull request comments. Format:
1546
+ # `projects/{project_number}/locations/{location_id}/repositories/{repository_id}/pullRequests/{pull_request_id}`
1547
+ # @!attribute [rw] page_size
1548
+ # @return [::Integer]
1549
+ # Optional. Requested page size. If unspecified, at most 100 pull request
1550
+ # comments will be returned. The maximum value is 100; values above 100 will
1551
+ # be coerced to 100.
1552
+ # @!attribute [rw] page_token
1553
+ # @return [::String]
1554
+ # Optional. A token identifying a page of results the server should return.
1555
+ class ListPullRequestCommentsRequest
1556
+ include ::Google::Protobuf::MessageExts
1557
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1558
+ end
1559
+
1560
+ # The response to list pull request comments.
1561
+ # @!attribute [rw] pull_request_comments
1562
+ # @return [::Array<::Google::Cloud::SecureSourceManager::V1::PullRequestComment>]
1563
+ # The list of pull request comments.
1564
+ # @!attribute [rw] next_page_token
1565
+ # @return [::String]
1566
+ # A token to set as page_token to retrieve the next page. If this field is
1567
+ # omitted, there are no subsequent pages.
1568
+ class ListPullRequestCommentsResponse
1569
+ include ::Google::Protobuf::MessageExts
1570
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1571
+ end
1572
+
1573
+ # The request to create a pull request comment.
1574
+ # @!attribute [rw] parent
1575
+ # @return [::String]
1576
+ # Required. The pull request in which to create the pull request comment.
1577
+ # Format:
1578
+ # `projects/{project_number}/locations/{location_id}/repositories/{repository_id}/pullRequests/{pull_request_id}`
1579
+ # @!attribute [rw] pull_request_comment
1580
+ # @return [::Google::Cloud::SecureSourceManager::V1::PullRequestComment]
1581
+ # Required. The pull request comment to create.
1582
+ class CreatePullRequestCommentRequest
1583
+ include ::Google::Protobuf::MessageExts
1584
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1585
+ end
1586
+
1587
+ # The request to batch create pull request comments.
1588
+ # @!attribute [rw] parent
1589
+ # @return [::String]
1590
+ # Required. The pull request in which to create the pull request comments.
1591
+ # Format:
1592
+ # `projects/{project_number}/locations/{location_id}/repositories/{repository_id}/pullRequests/{pull_request_id}`
1593
+ # @!attribute [rw] requests
1594
+ # @return [::Array<::Google::Cloud::SecureSourceManager::V1::CreatePullRequestCommentRequest>]
1595
+ # Required. The request message specifying the resources to create. There
1596
+ # should be exactly one CreatePullRequestCommentRequest with CommentDetail
1597
+ # being REVIEW in the list, and no more than 100
1598
+ # CreatePullRequestCommentRequests with CommentDetail being CODE in the list
1599
+ class BatchCreatePullRequestCommentsRequest
1600
+ include ::Google::Protobuf::MessageExts
1601
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1602
+ end
1603
+
1604
+ # The response to batch create pull request comments.
1605
+ # @!attribute [rw] pull_request_comments
1606
+ # @return [::Array<::Google::Cloud::SecureSourceManager::V1::PullRequestComment>]
1607
+ # The list of pull request comments created.
1608
+ class BatchCreatePullRequestCommentsResponse
1609
+ include ::Google::Protobuf::MessageExts
1610
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1611
+ end
1612
+
1613
+ # The request to update a pull request comment.
1614
+ # @!attribute [rw] pull_request_comment
1615
+ # @return [::Google::Cloud::SecureSourceManager::V1::PullRequestComment]
1616
+ # Required. The pull request comment to update.
1617
+ # @!attribute [rw] update_mask
1618
+ # @return [::Google::Protobuf::FieldMask]
1619
+ # Optional. Field mask is used to specify the fields to be overwritten in the
1620
+ # pull request comment resource by the update. Updatable fields are
1621
+ # `body`.
1622
+ class UpdatePullRequestCommentRequest
1623
+ include ::Google::Protobuf::MessageExts
1624
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1625
+ end
1626
+
1627
+ # The request to delete a pull request comment. A Review PullRequestComment
1628
+ # cannot be deleted.
1629
+ # @!attribute [rw] name
1630
+ # @return [::String]
1631
+ # Required. Name of the pull request comment to delete.
1632
+ # The format is
1633
+ # `projects/{project_number}/locations/{location_id}/repositories/{repository_id}/pullRequests/{pull_request_id}/pullRequestComments/{comment_id}`.
1634
+ class DeletePullRequestCommentRequest
1635
+ include ::Google::Protobuf::MessageExts
1636
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1637
+ end
1638
+
1639
+ # The request to get a pull request comment.
1640
+ # @!attribute [rw] name
1641
+ # @return [::String]
1642
+ # Required. Name of the pull request comment to retrieve.
1643
+ # The format is
1644
+ # `projects/{project_number}/locations/{location_id}/repositories/{repository_id}/pullRequests/{pull_request_id}/pullRequestComments/{comment_id}`.
1645
+ class GetPullRequestCommentRequest
1646
+ include ::Google::Protobuf::MessageExts
1647
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1648
+ end
1649
+
1650
+ # The request to resolve multiple pull request comments.
1651
+ # @!attribute [rw] parent
1652
+ # @return [::String]
1653
+ # Required. The pull request in which to resolve the pull request comments.
1654
+ # Format:
1655
+ # `projects/{project_number}/locations/{location_id}/repositories/{repository_id}/pullRequests/{pull_request_id}`
1656
+ # @!attribute [rw] names
1657
+ # @return [::Array<::String>]
1658
+ # Required. The names of the pull request comments to resolve. Format:
1659
+ # `projects/{project_number}/locations/{location_id}/repositories/{repository_id}/pullRequests/{pull_request_id}/pullRequestComments/{comment_id}`
1660
+ # Only comments from the same threads are allowed in the same request.
1661
+ # @!attribute [rw] auto_fill
1662
+ # @return [::Boolean]
1663
+ # Optional. If set, at least one comment in a thread is required, rest of the
1664
+ # comments in the same thread will be automatically updated to resolved. If
1665
+ # unset, all comments in the same thread need be present.
1666
+ class ResolvePullRequestCommentsRequest
1667
+ include ::Google::Protobuf::MessageExts
1668
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1669
+ end
1670
+
1671
+ # The response to resolve multiple pull request comments.
1672
+ # @!attribute [rw] pull_request_comments
1673
+ # @return [::Array<::Google::Cloud::SecureSourceManager::V1::PullRequestComment>]
1674
+ # The list of pull request comments resolved.
1675
+ class ResolvePullRequestCommentsResponse
1676
+ include ::Google::Protobuf::MessageExts
1677
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1678
+ end
1679
+
1680
+ # The request to unresolve multiple pull request comments.
1681
+ # @!attribute [rw] parent
1682
+ # @return [::String]
1683
+ # Required. The pull request in which to resolve the pull request comments.
1684
+ # Format:
1685
+ # `projects/{project_number}/locations/{location_id}/repositories/{repository_id}/pullRequests/{pull_request_id}`
1686
+ # @!attribute [rw] names
1687
+ # @return [::Array<::String>]
1688
+ # Required. The names of the pull request comments to unresolve. Format:
1689
+ # `projects/{project_number}/locations/{location_id}/repositories/{repository_id}/pullRequests/{pull_request_id}/pullRequestComments/{comment_id}`
1690
+ # Only comments from the same threads are allowed in the same request.
1691
+ # @!attribute [rw] auto_fill
1692
+ # @return [::Boolean]
1693
+ # Optional. If set, at least one comment in a thread is required, rest of the
1694
+ # comments in the same thread will be automatically updated to unresolved. If
1695
+ # unset, all comments in the same thread need be present.
1696
+ class UnresolvePullRequestCommentsRequest
1697
+ include ::Google::Protobuf::MessageExts
1698
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1699
+ end
1700
+
1701
+ # The response to unresolve multiple pull request comments.
1702
+ # @!attribute [rw] pull_request_comments
1703
+ # @return [::Array<::Google::Cloud::SecureSourceManager::V1::PullRequestComment>]
1704
+ # The list of pull request comments unresolved.
1705
+ class UnresolvePullRequestCommentsResponse
1706
+ include ::Google::Protobuf::MessageExts
1707
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1708
+ end
1709
+
1710
+ # The request to create an issue comment.
1711
+ # @!attribute [rw] parent
1712
+ # @return [::String]
1713
+ # Required. The issue in which to create the issue comment. Format:
1714
+ # `projects/{project_number}/locations/{location_id}/repositories/{repository_id}/issues/{issue_id}`
1715
+ # @!attribute [rw] issue_comment
1716
+ # @return [::Google::Cloud::SecureSourceManager::V1::IssueComment]
1717
+ # Required. The issue comment to create.
1718
+ class CreateIssueCommentRequest
1719
+ include ::Google::Protobuf::MessageExts
1720
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1721
+ end
1722
+
1723
+ # The request to get an issue comment.
1724
+ # @!attribute [rw] name
1725
+ # @return [::String]
1726
+ # Required. Name of the issue comment to retrieve.
1727
+ # The format is
1728
+ # `projects/{project}/locations/{location}/repositories/{repository}/issues/{issue_id}/issueComments/{comment_id}`.
1729
+ class GetIssueCommentRequest
1730
+ include ::Google::Protobuf::MessageExts
1731
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1732
+ end
1733
+
1734
+ # The request to list issue comments.
1735
+ # @!attribute [rw] parent
1736
+ # @return [::String]
1737
+ # Required. The issue in which to list the comments. Format:
1738
+ # `projects/{project_number}/locations/{location_id}/repositories/{repository_id}/issues/{issue_id}`
1739
+ # @!attribute [rw] page_size
1740
+ # @return [::Integer]
1741
+ # Optional. Requested page size. Server may return fewer items than
1742
+ # requested. If unspecified, server will pick an appropriate default.
1743
+ # @!attribute [rw] page_token
1744
+ # @return [::String]
1745
+ # Optional. A token identifying a page of results the server should return.
1746
+ class ListIssueCommentsRequest
1747
+ include ::Google::Protobuf::MessageExts
1748
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1749
+ end
1750
+
1751
+ # The response to list issue comments.
1752
+ # @!attribute [rw] issue_comments
1753
+ # @return [::Array<::Google::Cloud::SecureSourceManager::V1::IssueComment>]
1754
+ # The list of issue comments.
1755
+ # @!attribute [rw] next_page_token
1756
+ # @return [::String]
1757
+ # A token identifying a page of results the server should return.
1758
+ class ListIssueCommentsResponse
1759
+ include ::Google::Protobuf::MessageExts
1760
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1761
+ end
1762
+
1763
+ # The request to update an issue comment.
1764
+ # @!attribute [rw] issue_comment
1765
+ # @return [::Google::Cloud::SecureSourceManager::V1::IssueComment]
1766
+ # Required. The issue comment to update.
1767
+ # @!attribute [rw] update_mask
1768
+ # @return [::Google::Protobuf::FieldMask]
1769
+ # Optional. Field mask is used to specify the fields to be overwritten in the
1770
+ # issue comment resource by the update.
1771
+ # The fields specified in the update_mask are relative to the resource, not
1772
+ # the full request. A field will be overwritten if it is in the mask.
1773
+ # The special value "*" means full replacement.
1774
+ class UpdateIssueCommentRequest
1775
+ include ::Google::Protobuf::MessageExts
1776
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1777
+ end
1778
+
1779
+ # The request to delete an issue comment.
1780
+ # @!attribute [rw] name
1781
+ # @return [::String]
1782
+ # Required. Name of the issue comment to delete.
1783
+ # The format is
1784
+ # `projects/{project_number}/locations/{location_id}/repositories/{repository_id}/issues/{issue_id}/issueComments/{comment_id}`.
1785
+ class DeleteIssueCommentRequest
1786
+ include ::Google::Protobuf::MessageExts
1787
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1788
+ end
734
1789
  end
735
1790
  end
736
1791
  end