Cloud Commerce Consumer Procurement v1 API - Class LicenseManagementService.LicenseManagementServiceBase (1.4.0)

[BindServiceMethod(typeof(LicenseManagementService), "BindService")]
public abstract class LicenseManagementService.LicenseManagementServiceBase

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

Base class for server-side implementations of LicenseManagementService

Inheritance

object > LicenseManagementService.LicenseManagementServiceBase

Namespace

Google.Cloud.Commerce.Consumer.Procurement.V1

Assembly

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

Methods

Assign(AssignRequest, ServerCallContext)

public virtual Task<AssignResponse> Assign(AssignRequest request, ServerCallContext context)

Assigns a license to a user.

Parameters
Name Description
request AssignRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskAssignResponse

The response to send back to the client (wrapped by a task).

EnumerateLicensedUsers(EnumerateLicensedUsersRequest, ServerCallContext)

public virtual Task<EnumerateLicensedUsersResponse> EnumerateLicensedUsers(EnumerateLicensedUsersRequest request, ServerCallContext context)

Enumerates all users assigned a license.

Parameters
Name Description
request EnumerateLicensedUsersRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskEnumerateLicensedUsersResponse

The response to send back to the client (wrapped by a task).

GetLicensePool(GetLicensePoolRequest, ServerCallContext)

public virtual Task<LicensePool> GetLicensePool(GetLicensePoolRequest request, ServerCallContext context)

Gets the license pool.

Parameters
Name Description
request GetLicensePoolRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskLicensePool

The response to send back to the client (wrapped by a task).

Unassign(UnassignRequest, ServerCallContext)

public virtual Task<UnassignResponse> Unassign(UnassignRequest request, ServerCallContext context)

Unassigns a license from a user.

Parameters
Name Description
request UnassignRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskUnassignResponse

The response to send back to the client (wrapped by a task).

UpdateLicensePool(UpdateLicensePoolRequest, ServerCallContext)

public virtual Task<LicensePool> UpdateLicensePool(UpdateLicensePoolRequest request, ServerCallContext context)

Updates the license pool if one exists for this Order.

Parameters
Name Description
request UpdateLicensePoolRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskLicensePool

The response to send back to the client (wrapped by a task).