Skip to content

Commit 1dfb2b3

Browse files
Google APIscopybara-github
authored andcommitted
feat: A new message GetAttachmentRequest and GetComment is added
PiperOrigin-RevId: 792747515
1 parent 85f7aec commit 1dfb2b3

File tree

3 files changed

+42
-4
lines changed

3 files changed

+42
-4
lines changed

google/cloud/support/v2beta/attachment_service.proto

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff 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.
7897
message ListAttachmentsResponse {
7998
// The list of attachments associated with a case.

google/cloud/support/v2beta/cloudsupport_v2beta.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,19 @@ documentation:
1616
1717
authentication:
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

google/cloud/support/v2beta/comment_service.proto

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
}

0 commit comments

Comments
 (0)