# Compute Engine v1 API - Class LicenseCodesClientImpl (3.28.0)

3.28.0 (latest) 3.27.0 3.26.0 3.25.0 3.24.0 3.23.0 3.22.0 3.21.0 3.20.0 3.19.0 3.18.0 3.17.0 3.16.0 3.15.0 3.14.0 3.13.0 3.12.0 3.11.0 3.10.0 3.9.0 3.8.0 3.7.0 3.6.0 3.5.0 3.4.0 3.3.0 3.2.0 3.1.0 3.0.0 2.17.0 2.16.0 2.15.0 2.14.0 2.13.0 2.12.0 2.11.0 2.10.0 2.9.0 2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0

    public sealed class LicenseCodesClientImpl : LicenseCodesClient

Reference documentation and code samples for the Compute Engine v1 API class LicenseCodesClientImpl.

LicenseCodes client wrapper implementation, for convenient use.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> [LicenseCodesClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.LicenseCodesClient) \> LicenseCodesClientImpl

## Inherited Members

[LicenseCodesClient.DefaultEndpoint](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.LicenseCodesClient#Google_Cloud_Compute_V1_LicenseCodesClient_DefaultEndpoint) [LicenseCodesClient.DefaultScopes](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.LicenseCodesClient#Google_Cloud_Compute_V1_LicenseCodesClient_DefaultScopes) [LicenseCodesClient.ServiceMetadata](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.LicenseCodesClient#Google_Cloud_Compute_V1_LicenseCodesClient_ServiceMetadata) [LicenseCodesClient.CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.LicenseCodesClient#Google_Cloud_Compute_V1_LicenseCodesClient_CreateAsync_System_Threading_CancellationToken_) [LicenseCodesClient.Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.LicenseCodesClient#Google_Cloud_Compute_V1_LicenseCodesClient_Create) [LicenseCodesClient.ShutdownDefaultChannelsAsync()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.LicenseCodesClient#Google_Cloud_Compute_V1_LicenseCodesClient_ShutdownDefaultChannelsAsync) [LicenseCodesClient.GetAsync(GetLicenseCodeRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.LicenseCodesClient#Google_Cloud_Compute_V1_LicenseCodesClient_GetAsync_Google_Cloud_Compute_V1_GetLicenseCodeRequest_System_Threading_CancellationToken_) [LicenseCodesClient.Get(string, string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.LicenseCodesClient#Google_Cloud_Compute_V1_LicenseCodesClient_Get_System_String_System_String_Google_Api_Gax_Grpc_CallSettings_) [LicenseCodesClient.GetAsync(string, string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.LicenseCodesClient#Google_Cloud_Compute_V1_LicenseCodesClient_GetAsync_System_String_System_String_Google_Api_Gax_Grpc_CallSettings_) [LicenseCodesClient.GetAsync(string, string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.LicenseCodesClient#Google_Cloud_Compute_V1_LicenseCodesClient_GetAsync_System_String_System_String_System_Threading_CancellationToken_) [LicenseCodesClient.GetIamPolicyAsync(GetIamPolicyLicenseCodeRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.LicenseCodesClient#Google_Cloud_Compute_V1_LicenseCodesClient_GetIamPolicyAsync_Google_Cloud_Compute_V1_GetIamPolicyLicenseCodeRequest_System_Threading_CancellationToken_) [LicenseCodesClient.GetIamPolicy(string, string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.LicenseCodesClient#Google_Cloud_Compute_V1_LicenseCodesClient_GetIamPolicy_System_String_System_String_Google_Api_Gax_Grpc_CallSettings_) [LicenseCodesClient.GetIamPolicyAsync(string, string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.LicenseCodesClient#Google_Cloud_Compute_V1_LicenseCodesClient_GetIamPolicyAsync_System_String_System_String_Google_Api_Gax_Grpc_CallSettings_) [LicenseCodesClient.GetIamPolicyAsync(string, string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.LicenseCodesClient#Google_Cloud_Compute_V1_LicenseCodesClient_GetIamPolicyAsync_System_String_System_String_System_Threading_CancellationToken_) [LicenseCodesClient.SetIamPolicyAsync(SetIamPolicyLicenseCodeRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.LicenseCodesClient#Google_Cloud_Compute_V1_LicenseCodesClient_SetIamPolicyAsync_Google_Cloud_Compute_V1_SetIamPolicyLicenseCodeRequest_System_Threading_CancellationToken_) [LicenseCodesClient.SetIamPolicy(string, string, GlobalSetPolicyRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.LicenseCodesClient#Google_Cloud_Compute_V1_LicenseCodesClient_SetIamPolicy_System_String_System_String_Google_Cloud_Compute_V1_GlobalSetPolicyRequest_Google_Api_Gax_Grpc_CallSettings_) [LicenseCodesClient.SetIamPolicyAsync(string, string, GlobalSetPolicyRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.LicenseCodesClient#Google_Cloud_Compute_V1_LicenseCodesClient_SetIamPolicyAsync_System_String_System_String_Google_Cloud_Compute_V1_GlobalSetPolicyRequest_Google_Api_Gax_Grpc_CallSettings_) [LicenseCodesClient.SetIamPolicyAsync(string, string, GlobalSetPolicyRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.LicenseCodesClient#Google_Cloud_Compute_V1_LicenseCodesClient_SetIamPolicyAsync_System_String_System_String_Google_Cloud_Compute_V1_GlobalSetPolicyRequest_System_Threading_CancellationToken_) [LicenseCodesClient.TestIamPermissionsAsync(TestIamPermissionsLicenseCodeRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.LicenseCodesClient#Google_Cloud_Compute_V1_LicenseCodesClient_TestIamPermissionsAsync_Google_Cloud_Compute_V1_TestIamPermissionsLicenseCodeRequest_System_Threading_CancellationToken_) [LicenseCodesClient.TestIamPermissions(string, string, TestPermissionsRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.LicenseCodesClient#Google_Cloud_Compute_V1_LicenseCodesClient_TestIamPermissions_System_String_System_String_Google_Cloud_Compute_V1_TestPermissionsRequest_Google_Api_Gax_Grpc_CallSettings_) [LicenseCodesClient.TestIamPermissionsAsync(string, string, TestPermissionsRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.LicenseCodesClient#Google_Cloud_Compute_V1_LicenseCodesClient_TestIamPermissionsAsync_System_String_System_String_Google_Cloud_Compute_V1_TestPermissionsRequest_Google_Api_Gax_Grpc_CallSettings_) [LicenseCodesClient.TestIamPermissionsAsync(string, string, TestPermissionsRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.LicenseCodesClient#Google_Cloud_Compute_V1_LicenseCodesClient_TestIamPermissionsAsync_System_String_System_String_Google_Cloud_Compute_V1_TestPermissionsRequest_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.Compute.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1)

## Assembly

Google.Cloud.Compute.V1.dll

## Remarks

The LicenseCodes API.

## Constructors

### LicenseCodesClientImpl(LicenseCodesClient, LicenseCodesSettings, ILogger)

    public LicenseCodesClientImpl(LicenseCodes.LicenseCodesClient grpcClient, LicenseCodesSettings settings, ILogger logger)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `grpcClient` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.LicenseCodeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.LicenseCodes.LicenseCodesClient` The underlying gRPC client. |
| `settings` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.LicenseCodesSettings` The base [LicenseCodesSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.LicenseCodesSettings) 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 LicenseCodes.LicenseCodesClient GrpcClient { get; }

The underlying gRPC LicenseCodes client

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.LicenseCodeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.LicenseCodes.LicenseCodesClient` |   |

**Overrides** [LicenseCodesClient.GrpcClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.LicenseCodesClient#Google_Cloud_Compute_V1_LicenseCodesClient_GrpcClient)

## Methods

### Get(GetLicenseCodeRequest, CallSettings)

    public override LicenseCode Get(GetLicenseCodeRequest request, CallSettings callSettings = null)

Return a specified license code. License codes are mirrored across
all projects that have permissions to read the License Code.
*Caution* This resource is intended
for use only by third-party partners who are creatingCloud Marketplace
images.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GetLicenseCodeRequest` 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.Compute.V1/latest/Google.Cloud.Compute.V1.LicenseCode` | The RPC response. |

**Overrides** [LicenseCodesClient.Get(GetLicenseCodeRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.LicenseCodesClient#Google_Cloud_Compute_V1_LicenseCodesClient_Get_Google_Cloud_Compute_V1_GetLicenseCodeRequest_Google_Api_Gax_Grpc_CallSettings_)

### GetAsync(GetLicenseCodeRequest, CallSettings)

    public override Task<LicenseCode> GetAsync(GetLicenseCodeRequest request, CallSettings callSettings = null)

Return a specified license code. License codes are mirrored across
all projects that have permissions to read the License Code.
*Caution* This resource is intended
for use only by third-party partners who are creatingCloud Marketplace
images.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GetLicenseCodeRequest` 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.Compute.V1/latest/Google.Cloud.Compute.V1.LicenseCode` | A Task containing the RPC response. |

**Overrides** [LicenseCodesClient.GetAsync(GetLicenseCodeRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.LicenseCodesClient#Google_Cloud_Compute_V1_LicenseCodesClient_GetAsync_Google_Cloud_Compute_V1_GetLicenseCodeRequest_Google_Api_Gax_Grpc_CallSettings_)

### GetIamPolicy(GetIamPolicyLicenseCodeRequest, CallSettings)

    public override Policy GetIamPolicy(GetIamPolicyLicenseCodeRequest request, CallSettings callSettings = null)

Gets the access control policy for a resource. May be empty if no such
policy or resource exists.
*Caution* This resource is intended
for use only by third-party partners who are creatingCloud Marketplace
images.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GetIamPolicyLicenseCodeRequest` 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.Compute.V1/latest/Google.Cloud.Compute.V1.Policy` | The RPC response. |

**Overrides** [LicenseCodesClient.GetIamPolicy(GetIamPolicyLicenseCodeRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.LicenseCodesClient#Google_Cloud_Compute_V1_LicenseCodesClient_GetIamPolicy_Google_Cloud_Compute_V1_GetIamPolicyLicenseCodeRequest_Google_Api_Gax_Grpc_CallSettings_)

### GetIamPolicyAsync(GetIamPolicyLicenseCodeRequest, CallSettings)

    public override Task<Policy> GetIamPolicyAsync(GetIamPolicyLicenseCodeRequest request, CallSettings callSettings = null)

Gets the access control policy for a resource. May be empty if no such
policy or resource exists.
*Caution* This resource is intended
for use only by third-party partners who are creatingCloud Marketplace
images.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GetIamPolicyLicenseCodeRequest` 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.Compute.V1/latest/Google.Cloud.Compute.V1.Policy` | A Task containing the RPC response. |

**Overrides** [LicenseCodesClient.GetIamPolicyAsync(GetIamPolicyLicenseCodeRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.LicenseCodesClient#Google_Cloud_Compute_V1_LicenseCodesClient_GetIamPolicyAsync_Google_Cloud_Compute_V1_GetIamPolicyLicenseCodeRequest_Google_Api_Gax_Grpc_CallSettings_)

### SetIamPolicy(SetIamPolicyLicenseCodeRequest, CallSettings)

    public override Policy SetIamPolicy(SetIamPolicyLicenseCodeRequest request, CallSettings callSettings = null)

Sets the access control policy on the specified resource.
Replaces any existing policy.
*Caution* This resource is intended
for use only by third-party partners who are creatingCloud Marketplace
images.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SetIamPolicyLicenseCodeRequest` 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.Compute.V1/latest/Google.Cloud.Compute.V1.Policy` | The RPC response. |

**Overrides** [LicenseCodesClient.SetIamPolicy(SetIamPolicyLicenseCodeRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.LicenseCodesClient#Google_Cloud_Compute_V1_LicenseCodesClient_SetIamPolicy_Google_Cloud_Compute_V1_SetIamPolicyLicenseCodeRequest_Google_Api_Gax_Grpc_CallSettings_)

### SetIamPolicyAsync(SetIamPolicyLicenseCodeRequest, CallSettings)

    public override Task<Policy> SetIamPolicyAsync(SetIamPolicyLicenseCodeRequest request, CallSettings callSettings = null)

Sets the access control policy on the specified resource.
Replaces any existing policy.
*Caution* This resource is intended
for use only by third-party partners who are creatingCloud Marketplace
images.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.SetIamPolicyLicenseCodeRequest` 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.Compute.V1/latest/Google.Cloud.Compute.V1.Policy` | A Task containing the RPC response. |

**Overrides** [LicenseCodesClient.SetIamPolicyAsync(SetIamPolicyLicenseCodeRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.LicenseCodesClient#Google_Cloud_Compute_V1_LicenseCodesClient_SetIamPolicyAsync_Google_Cloud_Compute_V1_SetIamPolicyLicenseCodeRequest_Google_Api_Gax_Grpc_CallSettings_)

### TestIamPermissions(TestIamPermissionsLicenseCodeRequest, CallSettings)

    public override TestPermissionsResponse TestIamPermissions(TestIamPermissionsLicenseCodeRequest request, CallSettings callSettings = null)

Returns permissions that a caller has on the specified resource.
*Caution* This resource is intended
for use only by third-party partners who are creatingCloud Marketplace
images.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TestIamPermissionsLicenseCodeRequest` 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.Compute.V1/latest/Google.Cloud.Compute.V1.TestPermissionsResponse` | The RPC response. |

**Overrides** [LicenseCodesClient.TestIamPermissions(TestIamPermissionsLicenseCodeRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.LicenseCodesClient#Google_Cloud_Compute_V1_LicenseCodesClient_TestIamPermissions_Google_Cloud_Compute_V1_TestIamPermissionsLicenseCodeRequest_Google_Api_Gax_Grpc_CallSettings_)

### TestIamPermissionsAsync(TestIamPermissionsLicenseCodeRequest, CallSettings)

    public override Task<TestPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsLicenseCodeRequest request, CallSettings callSettings = null)

Returns permissions that a caller has on the specified resource.
*Caution* This resource is intended
for use only by third-party partners who are creatingCloud Marketplace
images.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.TestIamPermissionsLicenseCodeRequest` 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.Compute.V1/latest/Google.Cloud.Compute.V1.TestPermissionsResponse` | A Task containing the RPC response. |

**Overrides** [LicenseCodesClient.TestIamPermissionsAsync(TestIamPermissionsLicenseCodeRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.LicenseCodesClient#Google_Cloud_Compute_V1_LicenseCodesClient_TestIamPermissionsAsync_Google_Cloud_Compute_V1_TestIamPermissionsLicenseCodeRequest_Google_Api_Gax_Grpc_CallSettings_)