public class UserLicenseService.UserLicenseServiceClient : ClientBase<UserLicenseService.UserLicenseServiceClient>
Reference documentation and code samples for the Discovery Engine v1 API class UserLicenseService.UserLicenseServiceClient.
Client for UserLicenseService
Inheritance
object > ClientBase > ClientBaseUserLicenseServiceUserLicenseServiceClient > UserLicenseService.UserLicenseServiceClientNamespace
Google.Cloud.DiscoveryEngine.V1Assembly
Google.Cloud.DiscoveryEngine.V1.dll
Constructors
UserLicenseServiceClient()
protected UserLicenseServiceClient()
Protected parameterless constructor to allow creation of test doubles.
UserLicenseServiceClient(CallInvoker)
public UserLicenseServiceClient(CallInvoker callInvoker)
Creates a new client for UserLicenseService that uses a custom CallInvoker
.
Parameter | |
---|---|
Name | Description |
callInvoker |
CallInvoker The callInvoker to use to make remote calls. |
UserLicenseServiceClient(ChannelBase)
public UserLicenseServiceClient(ChannelBase channel)
Creates a new client for UserLicenseService
Parameter | |
---|---|
Name | Description |
channel |
ChannelBase The channel to use to make remote calls. |
UserLicenseServiceClient(ClientBaseConfiguration)
protected UserLicenseServiceClient(ClientBase.ClientBaseConfiguration configuration)
Protected constructor to allow creation of configured clients.
Parameter | |
---|---|
Name | Description |
configuration |
ClientBaseClientBaseConfiguration The client configuration. |
Methods
BatchUpdateUserLicenses(BatchUpdateUserLicensesRequest, CallOptions)
public virtual Operation BatchUpdateUserLicenses(BatchUpdateUserLicensesRequest request, CallOptions options)
Updates the User License. This method is used for batch assign/unassign licenses to users.
Parameters | |
---|---|
Name | Description |
request |
BatchUpdateUserLicensesRequest The request to send to the server. |
options |
CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
Operation |
The response received from the server. |
BatchUpdateUserLicenses(BatchUpdateUserLicensesRequest, Metadata, DateTime?, CancellationToken)
public virtual Operation BatchUpdateUserLicenses(BatchUpdateUserLicensesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Updates the User License. This method is used for batch assign/unassign licenses to users.
Parameters | |
---|---|
Name | Description |
request |
BatchUpdateUserLicensesRequest 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 |
Operation |
The response received from the server. |
BatchUpdateUserLicensesAsync(BatchUpdateUserLicensesRequest, CallOptions)
public virtual AsyncUnaryCall<Operation> BatchUpdateUserLicensesAsync(BatchUpdateUserLicensesRequest request, CallOptions options)
Updates the User License. This method is used for batch assign/unassign licenses to users.
Parameters | |
---|---|
Name | Description |
request |
BatchUpdateUserLicensesRequest The request to send to the server. |
options |
CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallOperation |
The call object. |
BatchUpdateUserLicensesAsync(BatchUpdateUserLicensesRequest, Metadata, DateTime?, CancellationToken)
public virtual AsyncUnaryCall<Operation> BatchUpdateUserLicensesAsync(BatchUpdateUserLicensesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Updates the User License. This method is used for batch assign/unassign licenses to users.
Parameters | |
---|---|
Name | Description |
request |
BatchUpdateUserLicensesRequest 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 |
AsyncUnaryCallOperation |
The call object. |
CreateLocationsClient()
public virtual Locations.LocationsClient CreateLocationsClient()
Creates a new instance of Locations.LocationsClient using the same call invoker as this client.
Returns | |
---|---|
Type | Description |
LocationsLocationsClient |
A new Locations.LocationsClient for the same target as this client. |
CreateOperationsClient()
public virtual Operations.OperationsClient CreateOperationsClient()
Creates a new instance of Operations.OperationsClient using the same call invoker as this client.
Returns | |
---|---|
Type | Description |
OperationsOperationsClient |
A new Operations client for the same target as this client. |
ListUserLicenses(ListUserLicensesRequest, CallOptions)
public virtual ListUserLicensesResponse ListUserLicenses(ListUserLicensesRequest request, CallOptions options)
Lists the User Licenses.
Parameters | |
---|---|
Name | Description |
request |
ListUserLicensesRequest The request to send to the server. |
options |
CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
ListUserLicensesResponse |
The response received from the server. |
ListUserLicenses(ListUserLicensesRequest, Metadata, DateTime?, CancellationToken)
public virtual ListUserLicensesResponse ListUserLicenses(ListUserLicensesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Lists the User Licenses.
Parameters | |
---|---|
Name | Description |
request |
ListUserLicensesRequest 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 |
ListUserLicensesResponse |
The response received from the server. |
ListUserLicensesAsync(ListUserLicensesRequest, CallOptions)
public virtual AsyncUnaryCall<ListUserLicensesResponse> ListUserLicensesAsync(ListUserLicensesRequest request, CallOptions options)
Lists the User Licenses.
Parameters | |
---|---|
Name | Description |
request |
ListUserLicensesRequest The request to send to the server. |
options |
CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallListUserLicensesResponse |
The call object. |
ListUserLicensesAsync(ListUserLicensesRequest, Metadata, DateTime?, CancellationToken)
public virtual AsyncUnaryCall<ListUserLicensesResponse> ListUserLicensesAsync(ListUserLicensesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Lists the User Licenses.
Parameters | |
---|---|
Name | Description |
request |
ListUserLicensesRequest 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 |
AsyncUnaryCallListUserLicensesResponse |
The call object. |
NewInstance(ClientBaseConfiguration)
protected override UserLicenseService.UserLicenseServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)
Creates a new instance of client from given ClientBaseConfiguration
.
Parameter | |
---|---|
Name | Description |
configuration |
ClientBaseClientBaseConfiguration |
Returns | |
---|---|
Type | Description |
UserLicenseServiceUserLicenseServiceClient |