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 > ClientBase > ClientBaseLicenseManagementServiceLicenseManagementServiceClient > LicenseManagementService.LicenseManagementServiceClientNamespace
Google.Cloud.Commerce.Consumer.Procurement.V1Assembly
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 |
CallInvokerThe callInvoker to use to make remote calls. |
LicenseManagementServiceClient(ChannelBase)
public LicenseManagementServiceClient(ChannelBase channel)Creates a new client for LicenseManagementService
| Parameter | |
|---|---|
| Name | Description |
channel |
ChannelBaseThe 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 |
ClientBaseClientBaseConfigurationThe client configuration. |
Methods
Assign(AssignRequest, CallOptions)
public virtual AssignResponse Assign(AssignRequest request, CallOptions options)Assigns a license to a user.
| Parameters | |
|---|---|
| Name | Description |
request |
AssignRequestThe request to send to the server. |
options |
CallOptionsThe 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 |
AssignRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn 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 |
AssignRequestThe request to send to the server. |
options |
CallOptionsThe 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 |
AssignRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn 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 |
EnumerateLicensedUsersRequestThe request to send to the server. |
options |
CallOptionsThe 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 |
EnumerateLicensedUsersRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn 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 |
EnumerateLicensedUsersRequestThe request to send to the server. |
options |
CallOptionsThe 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 |
EnumerateLicensedUsersRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn 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 |
GetLicensePoolRequestThe request to send to the server. |
options |
CallOptionsThe 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 |
GetLicensePoolRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn 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 |
GetLicensePoolRequestThe request to send to the server. |
options |
CallOptionsThe 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 |
GetLicensePoolRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn 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 |
|
Unassign(UnassignRequest, CallOptions)
public virtual UnassignResponse Unassign(UnassignRequest request, CallOptions options)Unassigns a license from a user.
| Parameters | |
|---|---|
| Name | Description |
request |
UnassignRequestThe request to send to the server. |
options |
CallOptionsThe 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 |
UnassignRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn 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 |
UnassignRequestThe request to send to the server. |
options |
CallOptionsThe 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 |
UnassignRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn 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 |
UpdateLicensePoolRequestThe request to send to the server. |
options |
CallOptionsThe 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 |
UpdateLicensePoolRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn 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 |
UpdateLicensePoolRequestThe request to send to the server. |
options |
CallOptionsThe 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 |
UpdateLicensePoolRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCallLicensePool |
The call object. |