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

    public class CaseAttachmentService.CaseAttachmentServiceClient : ClientBase<CaseAttachmentService.CaseAttachmentServiceClient>

Reference documentation and code samples for the Google Cloud Support v2 API class CaseAttachmentService.CaseAttachmentServiceClient.

Client for CaseAttachmentService

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> [ClientBase](https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase.md.txt) \> [ClientBase](https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase-1.md.txt)[CaseAttachmentService](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2/latest/Google.Cloud.Support.V2.CaseAttachmentService.md.txt)[CaseAttachmentServiceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2/latest/Google.Cloud.Support.V2.CaseAttachmentService.CaseAttachmentServiceClient.md.txt) \> CaseAttachmentService.CaseAttachmentServiceClient

## Inherited Members

[ClientBase\<CaseAttachmentService.CaseAttachmentServiceClient\>.WithHost(string)](https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase-1.md.txt#Grpc_Core_ClientBase_1_WithHost_System_String_) [ClientBase.CallInvoker](https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase.md.txt#Grpc_Core_ClientBase_CallInvoker) [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

## Constructors

### CaseAttachmentServiceClient()

    protected CaseAttachmentServiceClient()

Protected parameterless constructor to allow creation of test doubles.

### CaseAttachmentServiceClient(CallInvoker)

    public CaseAttachmentServiceClient(CallInvoker callInvoker)

Creates a new client for CaseAttachmentService that uses a custom `CallInvoker`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `callInvoker` | `CallInvoker` The callInvoker to use to make remote calls. |

### CaseAttachmentServiceClient(ChannelBase)

    public CaseAttachmentServiceClient(ChannelBase channel)

Creates a new client for CaseAttachmentService

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `channel` | `ChannelBase` The channel to use to make remote calls. |

### CaseAttachmentServiceClient(ClientBaseConfiguration)

    protected CaseAttachmentServiceClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `configuration` | `ClientBaseClientBaseConfiguration` The client configuration. |

## Methods

### GetAttachment(GetAttachmentRequest, CallOptions)

    public virtual Attachment GetAttachment(GetAttachmentRequest request, CallOptions options)

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 to send to the server. |
| `options` | `CallOptions` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Attachment` | The response received from the server. |

### GetAttachment(GetAttachmentRequest, Metadata, DateTime?, CancellationToken)

    public virtual Attachment GetAttachment(GetAttachmentRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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 to send to the server. |
| `headers` | `Metadata` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `CancellationToken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Attachment` | The response received from the server. |

### GetAttachmentAsync(GetAttachmentRequest, CallOptions)

    public virtual AsyncUnaryCall<Attachment> GetAttachmentAsync(GetAttachmentRequest request, CallOptions options)

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 to send to the server. |
| `options` | `CallOptions` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AsyncUnaryCallAttachment` | The call object. |

### GetAttachmentAsync(GetAttachmentRequest, Metadata, DateTime?, CancellationToken)

    public virtual AsyncUnaryCall<Attachment> GetAttachmentAsync(GetAttachmentRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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 to send to the server. |
| `headers` | `Metadata` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `CancellationToken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AsyncUnaryCallAttachment` | The call object. |

### ListAttachments(ListAttachmentsRequest, CallOptions)

    public virtual ListAttachmentsResponse ListAttachments(ListAttachmentsRequest request, CallOptions options)

List all the attachments associated with a support case.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ListAttachmentsRequest` The request to send to the server. |
| `options` | `CallOptions` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `ListAttachmentsResponse` | The response received from the server. |

### ListAttachments(ListAttachmentsRequest, Metadata, DateTime?, CancellationToken)

    public virtual ListAttachmentsResponse ListAttachments(ListAttachmentsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

List all the attachments associated with a support case.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ListAttachmentsRequest` The request to send to the server. |
| `headers` | `Metadata` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `CancellationToken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `ListAttachmentsResponse` | The response received from the server. |

### ListAttachmentsAsync(ListAttachmentsRequest, CallOptions)

    public virtual AsyncUnaryCall<ListAttachmentsResponse> ListAttachmentsAsync(ListAttachmentsRequest request, CallOptions options)

List all the attachments associated with a support case.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ListAttachmentsRequest` The request to send to the server. |
| `options` | `CallOptions` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AsyncUnaryCallListAttachmentsResponse` | The call object. |

### ListAttachmentsAsync(ListAttachmentsRequest, Metadata, DateTime?, CancellationToken)

    public virtual AsyncUnaryCall<ListAttachmentsResponse> ListAttachmentsAsync(ListAttachmentsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

List all the attachments associated with a support case.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ListAttachmentsRequest` The request to send to the server. |
| `headers` | `Metadata` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `CancellationToken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AsyncUnaryCallListAttachmentsResponse` | The call object. |

### NewInstance(ClientBaseConfiguration)

    protected override CaseAttachmentService.CaseAttachmentServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given `ClientBaseConfiguration`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `configuration` | `ClientBaseClientBaseConfiguration` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `CaseAttachmentServiceCaseAttachmentServiceClient` |   |

**Overrides** Grpc.Core.ClientBase\<Google.Cloud.Support.V2.CaseAttachmentService.CaseAttachmentServiceClient\>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)