1.8.0 (latest) 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.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](https://learn.microsoft.com/dotnet/api/system.object) \> CaseAttachmentService.CaseAttachmentServiceBase

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Support.V2](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2/latest/Google.Cloud.Support.V2.md.txt)

## 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:

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

Python:

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