1.6.0 (latest) 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0

    public class LicenseManagementService.LicenseManagementServiceClient : ClientBase<LicenseManagementService.LicenseManagementServiceClient>

Reference documentation and code samples for the Cloud Commerce Consumer Procurement v1 API class LicenseManagementService.LicenseManagementServiceClient.

Client for LicenseManagementService

## 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)[LicenseManagementService](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.LicenseManagementService.md.txt)[LicenseManagementServiceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.LicenseManagementService.LicenseManagementServiceClient.md.txt) \> LicenseManagementService.LicenseManagementServiceClient

## Inherited Members

[ClientBase\<LicenseManagementService.LicenseManagementServiceClient\>.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.Commerce.Consumer.Procurement.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.md.txt)

## Assembly

Google.Cloud.Commerce.Consumer.Procurement.V1.dll

## Constructors

### LicenseManagementServiceClient()

    protected LicenseManagementServiceClient()

Protected parameterless constructor to allow creation of test doubles.

### LicenseManagementServiceClient(CallInvoker)

    public LicenseManagementServiceClient(CallInvoker callInvoker)

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

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

### LicenseManagementServiceClient(ChannelBase)

    public LicenseManagementServiceClient(ChannelBase channel)

Creates a new client for LicenseManagementService

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

### LicenseManagementServiceClient(ClientBaseConfiguration)

    protected LicenseManagementServiceClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

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

## Methods

### Assign(AssignRequest, CallOptions)

    public virtual AssignResponse Assign(AssignRequest request, CallOptions options)

Assigns a license to a user.

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

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

### Assign(AssignRequest, Metadata, DateTime?, CancellationToken)

    public virtual AssignResponse Assign(AssignRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Assigns a license to a user.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `AssignRequest` 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** |
| `AssignResponse` | The response received from the server. |

### AssignAsync(AssignRequest, CallOptions)

    public virtual AsyncUnaryCall<AssignResponse> AssignAsync(AssignRequest request, CallOptions options)

Assigns a license to a user.

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

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

### AssignAsync(AssignRequest, Metadata, DateTime?, CancellationToken)

    public virtual AsyncUnaryCall<AssignResponse> AssignAsync(AssignRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Assigns a license to a user.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `AssignRequest` 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** |
| `AsyncUnaryCallAssignResponse` | The call object. |

### EnumerateLicensedUsers(EnumerateLicensedUsersRequest, CallOptions)

    public virtual EnumerateLicensedUsersResponse EnumerateLicensedUsers(EnumerateLicensedUsersRequest request, CallOptions options)

Enumerates all users assigned a license.

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

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

### EnumerateLicensedUsers(EnumerateLicensedUsersRequest, Metadata, DateTime?, CancellationToken)

    public virtual EnumerateLicensedUsersResponse EnumerateLicensedUsers(EnumerateLicensedUsersRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Enumerates all users assigned a license.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `EnumerateLicensedUsersRequest` 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** |
| `EnumerateLicensedUsersResponse` | The response received from the server. |

### EnumerateLicensedUsersAsync(EnumerateLicensedUsersRequest, CallOptions)

    public virtual AsyncUnaryCall<EnumerateLicensedUsersResponse> EnumerateLicensedUsersAsync(EnumerateLicensedUsersRequest request, CallOptions options)

Enumerates all users assigned a license.

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

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

### EnumerateLicensedUsersAsync(EnumerateLicensedUsersRequest, Metadata, DateTime?, CancellationToken)

    public virtual AsyncUnaryCall<EnumerateLicensedUsersResponse> EnumerateLicensedUsersAsync(EnumerateLicensedUsersRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Enumerates all users assigned a license.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `EnumerateLicensedUsersRequest` 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** |
| `AsyncUnaryCallEnumerateLicensedUsersResponse` | The call object. |

### GetLicensePool(GetLicensePoolRequest, CallOptions)

    public virtual LicensePool GetLicensePool(GetLicensePoolRequest request, CallOptions options)

Gets the license pool.

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

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

### GetLicensePool(GetLicensePoolRequest, Metadata, DateTime?, CancellationToken)

    public virtual LicensePool GetLicensePool(GetLicensePoolRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Gets the license pool.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `GetLicensePoolRequest` 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** |
| `LicensePool` | The response received from the server. |

### GetLicensePoolAsync(GetLicensePoolRequest, CallOptions)

    public virtual AsyncUnaryCall<LicensePool> GetLicensePoolAsync(GetLicensePoolRequest request, CallOptions options)

Gets the license pool.

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

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

### GetLicensePoolAsync(GetLicensePoolRequest, Metadata, DateTime?, CancellationToken)

    public virtual AsyncUnaryCall<LicensePool> GetLicensePoolAsync(GetLicensePoolRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Gets the license pool.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `GetLicensePoolRequest` 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** |
| `AsyncUnaryCallLicensePool` | The call object. |

### NewInstance(ClientBaseConfiguration)

    protected override LicenseManagementService.LicenseManagementServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

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

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `LicenseManagementServiceLicenseManagementServiceClient` |   |

**Overrides** Grpc.Core.ClientBase\<Google.Cloud.Commerce.Consumer.Procurement.V1.LicenseManagementService.LicenseManagementServiceClient\>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)

### Unassign(UnassignRequest, CallOptions)

    public virtual UnassignResponse Unassign(UnassignRequest request, CallOptions options)

Unassigns a license from a user.

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

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

### Unassign(UnassignRequest, Metadata, DateTime?, CancellationToken)

    public virtual UnassignResponse Unassign(UnassignRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Unassigns a license from a user.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `UnassignRequest` 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** |
| `UnassignResponse` | The response received from the server. |

### UnassignAsync(UnassignRequest, CallOptions)

    public virtual AsyncUnaryCall<UnassignResponse> UnassignAsync(UnassignRequest request, CallOptions options)

Unassigns a license from a user.

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

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

### UnassignAsync(UnassignRequest, Metadata, DateTime?, CancellationToken)

    public virtual AsyncUnaryCall<UnassignResponse> UnassignAsync(UnassignRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Unassigns a license from a user.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `UnassignRequest` 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** |
| `AsyncUnaryCallUnassignResponse` | The call object. |

### UpdateLicensePool(UpdateLicensePoolRequest, CallOptions)

    public virtual LicensePool UpdateLicensePool(UpdateLicensePoolRequest request, CallOptions options)

Updates the license pool if one exists for this Order.

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

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

### UpdateLicensePool(UpdateLicensePoolRequest, Metadata, DateTime?, CancellationToken)

    public virtual LicensePool UpdateLicensePool(UpdateLicensePoolRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Updates the license pool if one exists for this Order.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `UpdateLicensePoolRequest` 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** |
| `LicensePool` | The response received from the server. |

### UpdateLicensePoolAsync(UpdateLicensePoolRequest, CallOptions)

    public virtual AsyncUnaryCall<LicensePool> UpdateLicensePoolAsync(UpdateLicensePoolRequest request, CallOptions options)

Updates the license pool if one exists for this Order.

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

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

### UpdateLicensePoolAsync(UpdateLicensePoolRequest, Metadata, DateTime?, CancellationToken)

    public virtual AsyncUnaryCall<LicensePool> UpdateLicensePoolAsync(UpdateLicensePoolRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Updates the license pool if one exists for this Order.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `UpdateLicensePoolRequest` 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** |
| `AsyncUnaryCallLicensePool` | The call object. |