Cloud Commerce Consumer Procurement v1 API - Class LicenseManagementServiceClientImpl (1.4.0)

public sealed class LicenseManagementServiceClientImpl : LicenseManagementServiceClient

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

LicenseManagementService client wrapper implementation, for convenient use.

Inheritance

object > LicenseManagementServiceClient > LicenseManagementServiceClientImpl

Namespace

Google.Cloud.Commerce.Consumer.Procurement.V1

Assembly

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

Remarks

Service for managing licenses.

Constructors

LicenseManagementServiceClientImpl(LicenseManagementServiceClient, LicenseManagementServiceSettings, ILogger)

public LicenseManagementServiceClientImpl(LicenseManagementService.LicenseManagementServiceClient grpcClient, LicenseManagementServiceSettings settings, ILogger logger)

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

Parameters
Name Description
grpcClient LicenseManagementServiceLicenseManagementServiceClient

The underlying gRPC client.

settings LicenseManagementServiceSettings

The base LicenseManagementServiceSettings used within this client.

logger ILogger

Optional ILogger to use within this client.

Properties

GrpcClient

public override LicenseManagementService.LicenseManagementServiceClient GrpcClient { get; }

The underlying gRPC LicenseManagementService client

Property Value
Type Description
LicenseManagementServiceLicenseManagementServiceClient
Overrides

Methods

Assign(AssignRequest, CallSettings)

public override AssignResponse Assign(AssignRequest request, CallSettings callSettings = null)

Assigns a license to a user.

Parameters
Name Description
request AssignRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
AssignResponse

The RPC response.

Overrides

AssignAsync(AssignRequest, CallSettings)

public override Task<AssignResponse> AssignAsync(AssignRequest request, CallSettings callSettings = null)

Assigns a license to a user.

Parameters
Name Description
request AssignRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskAssignResponse

A Task containing the RPC response.

Overrides

EnumerateLicensedUsers(EnumerateLicensedUsersRequest, CallSettings)

public override PagedEnumerable<EnumerateLicensedUsersResponse, LicensedUser> EnumerateLicensedUsers(EnumerateLicensedUsersRequest request, CallSettings callSettings = null)

Enumerates all users assigned a license.

Parameters
Name Description
request EnumerateLicensedUsersRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableEnumerateLicensedUsersResponseLicensedUser

A pageable sequence of LicensedUser resources.

Overrides

EnumerateLicensedUsersAsync(EnumerateLicensedUsersRequest, CallSettings)

public override PagedAsyncEnumerable<EnumerateLicensedUsersResponse, LicensedUser> EnumerateLicensedUsersAsync(EnumerateLicensedUsersRequest request, CallSettings callSettings = null)

Enumerates all users assigned a license.

Parameters
Name Description
request EnumerateLicensedUsersRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableEnumerateLicensedUsersResponseLicensedUser

A pageable asynchronous sequence of LicensedUser resources.

Overrides

GetLicensePool(GetLicensePoolRequest, CallSettings)

public override LicensePool GetLicensePool(GetLicensePoolRequest request, CallSettings callSettings = null)

Gets the license pool.

Parameters
Name Description
request GetLicensePoolRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
LicensePool

The RPC response.

Overrides

GetLicensePoolAsync(GetLicensePoolRequest, CallSettings)

public override Task<LicensePool> GetLicensePoolAsync(GetLicensePoolRequest request, CallSettings callSettings = null)

Gets the license pool.

Parameters
Name Description
request GetLicensePoolRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskLicensePool

A Task containing the RPC response.

Overrides

Unassign(UnassignRequest, CallSettings)

public override UnassignResponse Unassign(UnassignRequest request, CallSettings callSettings = null)

Unassigns a license from a user.

Parameters
Name Description
request UnassignRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
UnassignResponse

The RPC response.

Overrides

UnassignAsync(UnassignRequest, CallSettings)

public override Task<UnassignResponse> UnassignAsync(UnassignRequest request, CallSettings callSettings = null)

Unassigns a license from a user.

Parameters
Name Description
request UnassignRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskUnassignResponse

A Task containing the RPC response.

Overrides

UpdateLicensePool(UpdateLicensePoolRequest, CallSettings)

public override LicensePool UpdateLicensePool(UpdateLicensePoolRequest request, CallSettings callSettings = null)

Updates the license pool if one exists for this Order.

Parameters
Name Description
request UpdateLicensePoolRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
LicensePool

The RPC response.

Overrides

UpdateLicensePoolAsync(UpdateLicensePoolRequest, CallSettings)

public override Task<LicensePool> UpdateLicensePoolAsync(UpdateLicensePoolRequest request, CallSettings callSettings = null)

Updates the license pool if one exists for this Order.

Parameters
Name Description
request UpdateLicensePoolRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskLicensePool

A Task containing the RPC response.

Overrides