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 sealed class CaseAttachmentServiceClientImpl : CaseAttachmentServiceClient

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

CaseAttachmentService client wrapper implementation, for convenient use.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> [CaseAttachmentServiceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2/latest/Google.Cloud.Support.V2.CaseAttachmentServiceClient) \> CaseAttachmentServiceClientImpl

## Inherited Members

[CaseAttachmentServiceClient.DefaultEndpoint](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2/latest/Google.Cloud.Support.V2.CaseAttachmentServiceClient#Google_Cloud_Support_V2_CaseAttachmentServiceClient_DefaultEndpoint) [CaseAttachmentServiceClient.DefaultScopes](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2/latest/Google.Cloud.Support.V2.CaseAttachmentServiceClient#Google_Cloud_Support_V2_CaseAttachmentServiceClient_DefaultScopes) [CaseAttachmentServiceClient.ServiceMetadata](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2/latest/Google.Cloud.Support.V2.CaseAttachmentServiceClient#Google_Cloud_Support_V2_CaseAttachmentServiceClient_ServiceMetadata) [CaseAttachmentServiceClient.CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2/latest/Google.Cloud.Support.V2.CaseAttachmentServiceClient#Google_Cloud_Support_V2_CaseAttachmentServiceClient_CreateAsync_System_Threading_CancellationToken_) [CaseAttachmentServiceClient.Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2/latest/Google.Cloud.Support.V2.CaseAttachmentServiceClient#Google_Cloud_Support_V2_CaseAttachmentServiceClient_Create) [CaseAttachmentServiceClient.ShutdownDefaultChannelsAsync()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2/latest/Google.Cloud.Support.V2.CaseAttachmentServiceClient#Google_Cloud_Support_V2_CaseAttachmentServiceClient_ShutdownDefaultChannelsAsync) [CaseAttachmentServiceClient.ListAttachments(string, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2/latest/Google.Cloud.Support.V2.CaseAttachmentServiceClient#Google_Cloud_Support_V2_CaseAttachmentServiceClient_ListAttachments_System_String_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [CaseAttachmentServiceClient.ListAttachmentsAsync(string, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2/latest/Google.Cloud.Support.V2.CaseAttachmentServiceClient#Google_Cloud_Support_V2_CaseAttachmentServiceClient_ListAttachmentsAsync_System_String_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [CaseAttachmentServiceClient.ListAttachments(CaseName, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2/latest/Google.Cloud.Support.V2.CaseAttachmentServiceClient#Google_Cloud_Support_V2_CaseAttachmentServiceClient_ListAttachments_Google_Cloud_Support_V2_CaseName_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [CaseAttachmentServiceClient.ListAttachmentsAsync(CaseName, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2/latest/Google.Cloud.Support.V2.CaseAttachmentServiceClient#Google_Cloud_Support_V2_CaseAttachmentServiceClient_ListAttachmentsAsync_Google_Cloud_Support_V2_CaseName_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [CaseAttachmentServiceClient.GetAttachmentAsync(GetAttachmentRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2/latest/Google.Cloud.Support.V2.CaseAttachmentServiceClient#Google_Cloud_Support_V2_CaseAttachmentServiceClient_GetAttachmentAsync_Google_Cloud_Support_V2_GetAttachmentRequest_System_Threading_CancellationToken_) [CaseAttachmentServiceClient.GetAttachment(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2/latest/Google.Cloud.Support.V2.CaseAttachmentServiceClient#Google_Cloud_Support_V2_CaseAttachmentServiceClient_GetAttachment_System_String_Google_Api_Gax_Grpc_CallSettings_) [CaseAttachmentServiceClient.GetAttachmentAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2/latest/Google.Cloud.Support.V2.CaseAttachmentServiceClient#Google_Cloud_Support_V2_CaseAttachmentServiceClient_GetAttachmentAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [CaseAttachmentServiceClient.GetAttachmentAsync(string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2/latest/Google.Cloud.Support.V2.CaseAttachmentServiceClient#Google_Cloud_Support_V2_CaseAttachmentServiceClient_GetAttachmentAsync_System_String_System_Threading_CancellationToken_) [CaseAttachmentServiceClient.GetAttachment(AttachmentName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2/latest/Google.Cloud.Support.V2.CaseAttachmentServiceClient#Google_Cloud_Support_V2_CaseAttachmentServiceClient_GetAttachment_Google_Cloud_Support_V2_AttachmentName_Google_Api_Gax_Grpc_CallSettings_) [CaseAttachmentServiceClient.GetAttachmentAsync(AttachmentName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2/latest/Google.Cloud.Support.V2.CaseAttachmentServiceClient#Google_Cloud_Support_V2_CaseAttachmentServiceClient_GetAttachmentAsync_Google_Cloud_Support_V2_AttachmentName_Google_Api_Gax_Grpc_CallSettings_) [CaseAttachmentServiceClient.GetAttachmentAsync(AttachmentName, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2/latest/Google.Cloud.Support.V2.CaseAttachmentServiceClient#Google_Cloud_Support_V2_CaseAttachmentServiceClient_GetAttachmentAsync_Google_Cloud_Support_V2_AttachmentName_System_Threading_CancellationToken_) [object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [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)

## Assembly

Google.Cloud.Support.V2.dll

## Remarks

A service to manage file attachments for Google Cloud support cases.

## Constructors

### CaseAttachmentServiceClientImpl(CaseAttachmentServiceClient, CaseAttachmentServiceSettings, ILogger)

    public CaseAttachmentServiceClientImpl(CaseAttachmentService.CaseAttachmentServiceClient grpcClient, CaseAttachmentServiceSettings settings, ILogger logger)

Constructs a client wrapper for the CaseAttachmentService service, with the specified gRPC client and
settings.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `grpcClient` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2/latest/Google.Cloud.Support.V2.CaseAttachmentServicehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2/latest/Google.Cloud.Support.V2.CaseAttachmentService.CaseAttachmentServiceClient` The underlying gRPC client. |
| `settings` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2/latest/Google.Cloud.Support.V2.CaseAttachmentServiceSettings` The base [CaseAttachmentServiceSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2/latest/Google.Cloud.Support.V2.CaseAttachmentServiceSettings) used within this client. |
| `logger` | `https://learn.microsoft.com/dotnet/api/microsoft.extensions.logging.ilogger` Optional [ILogger](https://learn.microsoft.com/dotnet/api/microsoft.extensions.logging.ilogger) to use within this client. |

## Properties

### GrpcClient

    public override CaseAttachmentService.CaseAttachmentServiceClient GrpcClient { get; }

The underlying gRPC CaseAttachmentService client

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2/latest/Google.Cloud.Support.V2.CaseAttachmentServicehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2/latest/Google.Cloud.Support.V2.CaseAttachmentService.CaseAttachmentServiceClient` |   |

**Overrides** [CaseAttachmentServiceClient.GrpcClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2/latest/Google.Cloud.Support.V2.CaseAttachmentServiceClient#Google_Cloud_Support_V2_CaseAttachmentServiceClient_GrpcClient)

## Methods

### GetAttachment(GetAttachmentRequest, CallSettings)

    public override Attachment GetAttachment(GetAttachmentRequest request, CallSettings callSettings = null)

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` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2/latest/Google.Cloud.Support.V2.GetAttachmentRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2/latest/Google.Cloud.Support.V2.Attachment` | The RPC response. |

**Overrides** [CaseAttachmentServiceClient.GetAttachment(GetAttachmentRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2/latest/Google.Cloud.Support.V2.CaseAttachmentServiceClient#Google_Cloud_Support_V2_CaseAttachmentServiceClient_GetAttachment_Google_Cloud_Support_V2_GetAttachmentRequest_Google_Api_Gax_Grpc_CallSettings_)

### GetAttachmentAsync(GetAttachmentRequest, CallSettings)

    public override Task<Attachment> GetAttachmentAsync(GetAttachmentRequest request, CallSettings callSettings = null)

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` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2/latest/Google.Cloud.Support.V2.GetAttachmentRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2/latest/Google.Cloud.Support.V2.Attachment` | A Task containing the RPC response. |

**Overrides** [CaseAttachmentServiceClient.GetAttachmentAsync(GetAttachmentRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2/latest/Google.Cloud.Support.V2.CaseAttachmentServiceClient#Google_Cloud_Support_V2_CaseAttachmentServiceClient_GetAttachmentAsync_Google_Cloud_Support_V2_GetAttachmentRequest_Google_Api_Gax_Grpc_CallSettings_)

### ListAttachments(ListAttachmentsRequest, CallSettings)

    public override PagedEnumerable<ListAttachmentsResponse, Attachment> ListAttachments(ListAttachmentsRequest request, CallSettings callSettings = null)

List all the attachments associated with a support case.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2/latest/Google.Cloud.Support.V2.ListAttachmentsRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2/latest/Google.Cloud.Support.V2.ListAttachmentsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2/latest/Google.Cloud.Support.V2.Attachment` | A pageable sequence of [Attachment](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2/latest/Google.Cloud.Support.V2.Attachment) resources. |

**Overrides** [CaseAttachmentServiceClient.ListAttachments(ListAttachmentsRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2/latest/Google.Cloud.Support.V2.CaseAttachmentServiceClient#Google_Cloud_Support_V2_CaseAttachmentServiceClient_ListAttachments_Google_Cloud_Support_V2_ListAttachmentsRequest_Google_Api_Gax_Grpc_CallSettings_)

### ListAttachmentsAsync(ListAttachmentsRequest, CallSettings)

    public override PagedAsyncEnumerable<ListAttachmentsResponse, Attachment> ListAttachmentsAsync(ListAttachmentsRequest request, CallSettings callSettings = null)

List all the attachments associated with a support case.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2/latest/Google.Cloud.Support.V2.ListAttachmentsRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2/latest/Google.Cloud.Support.V2.ListAttachmentsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2/latest/Google.Cloud.Support.V2.Attachment` | A pageable asynchronous sequence of [Attachment](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2/latest/Google.Cloud.Support.V2.Attachment) resources. |

**Overrides** [CaseAttachmentServiceClient.ListAttachmentsAsync(ListAttachmentsRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2/latest/Google.Cloud.Support.V2.CaseAttachmentServiceClient#Google_Cloud_Support_V2_CaseAttachmentServiceClient_ListAttachmentsAsync_Google_Cloud_Support_V2_ListAttachmentsRequest_Google_Api_Gax_Grpc_CallSettings_)