[BindServiceMethod(typeof(CaseAttachmentService), "BindService")]
public abstract class CaseAttachmentService.CaseAttachmentServiceBase
Reference documentation and code samples for the Google Cloud Support v2 API class CaseAttachmentService.CaseAttachmentServiceBase.
Base class for server-side implementations of CaseAttachmentService
Namespace
Google.Cloud.Support.V2Assembly
Google.Cloud.Support.V2.dll
Methods
ListAttachments(ListAttachmentsRequest, ServerCallContext)
public virtual Task<ListAttachmentsResponse> ListAttachments(ListAttachmentsRequest request, ServerCallContext context)
List all the attachments associated with a support case.
EXAMPLES:
cURL:
case="projects/some-project/cases/23598314"
curl \
--header "Authorization: Bearer $(gcloud auth print-access-token)" \
"https://cloudsupport.googleapis.com/v2/$case/attachments"
Python:
import googleapiclient.discovery
api_version = "v2"
supportApiService = googleapiclient.discovery.build(
serviceName="cloudsupport",
version=api_version,
discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?version={api_version}",
)
request = (
supportApiService.cases()
.attachments()
.list(parent="projects/some-project/cases/43595344")
)
print(request.execute())
Parameters | |
---|---|
Name | Description |
request |
ListAttachmentsRequest The request received from the client. |
context |
ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
TaskListAttachmentsResponse |
The response to send back to the client (wrapped by a task). |