Google Cloud Support v2 API - Class CaseAttachmentService.CaseAttachmentServiceBase (1.6.0)

[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

Inheritance

object > CaseAttachmentService.CaseAttachmentServiceBase

Namespace

Google.Cloud.Support.V2

Assembly

Google.Cloud.Support.V2.dll

Methods

GetAttachment(GetAttachmentRequest, ServerCallContext)

public virtual Task<Attachment> GetAttachment(GetAttachmentRequest request, ServerCallContext context)

Retrieve an attachment associated with a support case.

EXAMPLES:

cURL:

attachment="projects/some-project/cases/23598314/attachments/0684M00000P3h1fQAB"
curl \
  --header "Authorization: Bearer $(gcloud auth print-access-token)" \
  "https://cloudsupport.googleapis.com/v2/$attachment"

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()
    .get(name="projects/some-project/cases/43595344/attachments/0684M00000P3h1fQAB")
)
print(request.execute())
Parameters
Name Description
request GetAttachmentRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskAttachment

The response to send back to the client (wrapped by a task).

ListAttachments(ListAttachmentsRequest, ServerCallContext)

public virtual Task<ListAttachmentsResponse> ListAttachments(ListAttachmentsRequest request, ServerCallContext context)

List all the attachments associated with a support case.

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).