File tree Expand file tree Collapse file tree 3 files changed +42
-4
lines changed
google/cloud/support/v2beta Expand file tree Collapse file tree 3 files changed +42
-4
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,14 @@ service CaseAttachmentService {
4747 };
4848 option (google.api.method_signature ) = "parent" ;
4949 }
50+
51+ // Retrieve an attachment.
52+ rpc GetAttachment (GetAttachmentRequest ) returns (Attachment ) {
53+ option (google.api.http ) = {
54+ get : "/v2beta/{name=*/*/cases/*/attachments/*}"
55+ };
56+ option (google.api.method_signature ) = "name" ;
57+ }
5058}
5159
5260// The request message for the ListAttachments endpoint.
@@ -74,6 +82,17 @@ message ListAttachmentsRequest {
7482 string page_token = 3 ;
7583}
7684
85+ // Request for getting an attachment.
86+ message GetAttachmentRequest {
87+ // Required. The name of the attachment to get.
88+ string name = 1 [
89+ (google.api.field_behavior ) = REQUIRED ,
90+ (google.api.resource_reference ) = {
91+ type : "cloudsupport.googleapis.com/Attachment"
92+ }
93+ ];
94+ }
95+
7796// The response message for the ListAttachments endpoint.
7897message ListAttachmentsResponse {
7998 // The list of attachments associated with a case.
Original file line number Diff line number Diff line change @@ -16,19 +16,19 @@ documentation:
1616
1717authentication :
1818 rules :
19- - selector : google.cloud.support.v2beta.CaseAttachmentService.ListAttachments
19+ - selector : google.cloud.support.v2beta.CaseAttachmentService.GetAttachment
2020 oauth :
2121 canonical_scopes : |-
2222 https://www.googleapis.com/auth/cloud-platform
23- - selector : ' google.cloud.support.v2beta.CaseService.* '
23+ - selector : google.cloud.support.v2beta.CaseAttachmentService.ListAttachments
2424 oauth :
2525 canonical_scopes : |-
2626 https://www.googleapis.com/auth/cloud-platform
27- - selector : google.cloud.support.v2beta.CommentService.CreateComment
27+ - selector : ' google.cloud.support.v2beta.CaseService.* '
2828 oauth :
2929 canonical_scopes : |-
3030 https://www.googleapis.com/auth/cloud-platform
31- - selector : google.cloud.support.v2beta.CommentService.ListComments
31+ - selector : ' google.cloud.support.v2beta.CommentService.* '
3232 oauth :
3333 canonical_scopes : |-
3434 https://www.googleapis.com/auth/cloud-platform
Original file line number Diff line number Diff line change @@ -61,6 +61,14 @@ service CommentService {
6161 };
6262 option (google.api.method_signature ) = "parent,comment" ;
6363 }
64+
65+ // Retrieve a comment.
66+ rpc GetComment (GetCommentRequest ) returns (Comment ) {
67+ option (google.api.http ) = {
68+ get : "/v2beta/{name=*/*/cases/*/comments/*}"
69+ };
70+ option (google.api.method_signature ) = "name" ;
71+ }
6472}
6573
6674// The request message for the ListComments endpoint.
@@ -105,3 +113,14 @@ message CreateCommentRequest {
105113 // Required. The comment to be added.
106114 Comment comment = 2 [(google.api.field_behavior ) = REQUIRED ];
107115}
116+
117+ // The request message for the GetComment endpoint.
118+ message GetCommentRequest {
119+ // Required. The name of the comment to retrieve.
120+ string name = 1 [
121+ (google.api.field_behavior ) = REQUIRED ,
122+ (google.api.resource_reference ) = {
123+ type : "cloudsupport.googleapis.com/Comment"
124+ }
125+ ];
126+ }
You can’t perform that action at this time.
0 commit comments