public sealed class LicenseManagementServiceClientImpl : LicenseManagementServiceClientReference documentation and code samples for the Cloud Commerce Consumer Procurement v1 API class LicenseManagementServiceClientImpl.
LicenseManagementService client wrapper implementation, for convenient use.
Namespace
Google.Cloud.Commerce.Consumer.Procurement.V1Assembly
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 |
LicenseManagementServiceLicenseManagementServiceClientThe underlying gRPC client. |
settings |
LicenseManagementServiceSettingsThe base LicenseManagementServiceSettings used within this client. |
logger |
ILoggerOptional ILogger to use within this client. |
Properties
GrpcClient
public override LicenseManagementService.LicenseManagementServiceClient GrpcClient { get; }The underlying gRPC LicenseManagementService client
| Property Value | |
|---|---|
| Type | Description |
LicenseManagementServiceLicenseManagementServiceClient |
|
Methods
Assign(AssignRequest, CallSettings)
public override AssignResponse Assign(AssignRequest request, CallSettings callSettings = null)Assigns a license to a user.
| Parameters | |
|---|---|
| Name | Description |
request |
AssignRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
AssignResponse |
The RPC response. |
AssignAsync(AssignRequest, CallSettings)
public override Task<AssignResponse> AssignAsync(AssignRequest request, CallSettings callSettings = null)Assigns a license to a user.
| Parameters | |
|---|---|
| Name | Description |
request |
AssignRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskAssignResponse |
A Task containing the RPC response. |
EnumerateLicensedUsers(EnumerateLicensedUsersRequest, CallSettings)
public override PagedEnumerable<EnumerateLicensedUsersResponse, LicensedUser> EnumerateLicensedUsers(EnumerateLicensedUsersRequest request, CallSettings callSettings = null)Enumerates all users assigned a license.
| Parameters | |
|---|---|
| Name | Description |
request |
EnumerateLicensedUsersRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableEnumerateLicensedUsersResponseLicensedUser |
A pageable sequence of LicensedUser resources. |
EnumerateLicensedUsersAsync(EnumerateLicensedUsersRequest, CallSettings)
public override PagedAsyncEnumerable<EnumerateLicensedUsersResponse, LicensedUser> EnumerateLicensedUsersAsync(EnumerateLicensedUsersRequest request, CallSettings callSettings = null)Enumerates all users assigned a license.
| Parameters | |
|---|---|
| Name | Description |
request |
EnumerateLicensedUsersRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableEnumerateLicensedUsersResponseLicensedUser |
A pageable asynchronous sequence of LicensedUser resources. |
GetLicensePool(GetLicensePoolRequest, CallSettings)
public override LicensePool GetLicensePool(GetLicensePoolRequest request, CallSettings callSettings = null)Gets the license pool.
| Parameters | |
|---|---|
| Name | Description |
request |
GetLicensePoolRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
LicensePool |
The RPC response. |
GetLicensePoolAsync(GetLicensePoolRequest, CallSettings)
public override Task<LicensePool> GetLicensePoolAsync(GetLicensePoolRequest request, CallSettings callSettings = null)Gets the license pool.
| Parameters | |
|---|---|
| Name | Description |
request |
GetLicensePoolRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskLicensePool |
A Task containing the RPC response. |
Unassign(UnassignRequest, CallSettings)
public override UnassignResponse Unassign(UnassignRequest request, CallSettings callSettings = null)Unassigns a license from a user.
| Parameters | |
|---|---|
| Name | Description |
request |
UnassignRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
UnassignResponse |
The RPC response. |
UnassignAsync(UnassignRequest, CallSettings)
public override Task<UnassignResponse> UnassignAsync(UnassignRequest request, CallSettings callSettings = null)Unassigns a license from a user.
| Parameters | |
|---|---|
| Name | Description |
request |
UnassignRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskUnassignResponse |
A Task containing the RPC response. |
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 |
UpdateLicensePoolRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
LicensePool |
The RPC response. |
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 |
UpdateLicensePoolRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskLicensePool |
A Task containing the RPC response. |