public class TenantServiceClient : ClientBase<TenantService.TenantServiceClient>
Client for TenantService
Inheritance
System.Object > Grpc.Core.ClientBase > Grpc.Core.ClientBase<TenantService.TenantServiceClient> > TenantService.TenantServiceClientNamespace
Google.Cloud.Talent.V4Assembly
Google.Cloud.Talent.V4.dll
Constructors
TenantServiceClient()
protected TenantServiceClient()
Protected parameterless constructor to allow creation of test doubles.
TenantServiceClient(CallInvoker)
public TenantServiceClient(CallInvoker callInvoker)
Creates a new client for TenantService that uses a custom CallInvoker
.
Parameter | |
---|---|
Name | Description |
callInvoker | Grpc.Core.CallInvoker The callInvoker to use to make remote calls. |
TenantServiceClient(ChannelBase)
public TenantServiceClient(ChannelBase channel)
Creates a new client for TenantService
Parameter | |
---|---|
Name | Description |
channel | Grpc.Core.ChannelBase The channel to use to make remote calls. |
TenantServiceClient(ClientBase.ClientBaseConfiguration)
protected TenantServiceClient(ClientBase.ClientBaseConfiguration configuration)
Protected constructor to allow creation of configured clients.
Parameter | |
---|---|
Name | Description |
configuration | Grpc.Core.ClientBase.ClientBaseConfiguration The client configuration. |
Methods
CreateTenant(CreateTenantRequest, CallOptions)
public virtual Tenant CreateTenant(CreateTenantRequest request, CallOptions options)
Creates a new tenant entity.
Parameters | |
---|---|
Name | Description |
request | CreateTenantRequest The request to send to the server. |
options | Grpc.Core.CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
Tenant | The response received from the server. |
CreateTenant(CreateTenantRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual Tenant CreateTenant(CreateTenantRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))
Creates a new tenant entity.
Parameters | |
---|---|
Name | Description |
request | CreateTenantRequest The request to send to the server. |
headers | Grpc.Core.Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | System.Nullable<System.DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | System.Threading.CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
Tenant | The response received from the server. |
CreateTenantAsync(CreateTenantRequest, CallOptions)
public virtual AsyncUnaryCall<Tenant> CreateTenantAsync(CreateTenantRequest request, CallOptions options)
Creates a new tenant entity.
Parameters | |
---|---|
Name | Description |
request | CreateTenantRequest The request to send to the server. |
options | Grpc.Core.CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
Grpc.Core.AsyncUnaryCall<Tenant> | The call object. |
CreateTenantAsync(CreateTenantRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<Tenant> CreateTenantAsync(CreateTenantRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))
Creates a new tenant entity.
Parameters | |
---|---|
Name | Description |
request | CreateTenantRequest The request to send to the server. |
headers | Grpc.Core.Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | System.Nullable<System.DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | System.Threading.CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
Grpc.Core.AsyncUnaryCall<Tenant> | The call object. |
DeleteTenant(DeleteTenantRequest, CallOptions)
public virtual Empty DeleteTenant(DeleteTenantRequest request, CallOptions options)
Deletes specified tenant.
Parameters | |
---|---|
Name | Description |
request | DeleteTenantRequest The request to send to the server. |
options | Grpc.Core.CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
Google.Protobuf.WellKnownTypes.Empty | The response received from the server. |
DeleteTenant(DeleteTenantRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual Empty DeleteTenant(DeleteTenantRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))
Deletes specified tenant.
Parameters | |
---|---|
Name | Description |
request | DeleteTenantRequest The request to send to the server. |
headers | Grpc.Core.Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | System.Nullable<System.DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | System.Threading.CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
Google.Protobuf.WellKnownTypes.Empty | The response received from the server. |
DeleteTenantAsync(DeleteTenantRequest, CallOptions)
public virtual AsyncUnaryCall<Empty> DeleteTenantAsync(DeleteTenantRequest request, CallOptions options)
Deletes specified tenant.
Parameters | |
---|---|
Name | Description |
request | DeleteTenantRequest The request to send to the server. |
options | Grpc.Core.CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
Grpc.Core.AsyncUnaryCall<Google.Protobuf.WellKnownTypes.Empty> | The call object. |
DeleteTenantAsync(DeleteTenantRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<Empty> DeleteTenantAsync(DeleteTenantRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))
Deletes specified tenant.
Parameters | |
---|---|
Name | Description |
request | DeleteTenantRequest The request to send to the server. |
headers | Grpc.Core.Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | System.Nullable<System.DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | System.Threading.CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
Grpc.Core.AsyncUnaryCall<Google.Protobuf.WellKnownTypes.Empty> | The call object. |
GetTenant(GetTenantRequest, CallOptions)
public virtual Tenant GetTenant(GetTenantRequest request, CallOptions options)
Retrieves specified tenant.
Parameters | |
---|---|
Name | Description |
request | GetTenantRequest The request to send to the server. |
options | Grpc.Core.CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
Tenant | The response received from the server. |
GetTenant(GetTenantRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual Tenant GetTenant(GetTenantRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))
Retrieves specified tenant.
Parameters | |
---|---|
Name | Description |
request | GetTenantRequest The request to send to the server. |
headers | Grpc.Core.Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | System.Nullable<System.DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | System.Threading.CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
Tenant | The response received from the server. |
GetTenantAsync(GetTenantRequest, CallOptions)
public virtual AsyncUnaryCall<Tenant> GetTenantAsync(GetTenantRequest request, CallOptions options)
Retrieves specified tenant.
Parameters | |
---|---|
Name | Description |
request | GetTenantRequest The request to send to the server. |
options | Grpc.Core.CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
Grpc.Core.AsyncUnaryCall<Tenant> | The call object. |
GetTenantAsync(GetTenantRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<Tenant> GetTenantAsync(GetTenantRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))
Retrieves specified tenant.
Parameters | |
---|---|
Name | Description |
request | GetTenantRequest The request to send to the server. |
headers | Grpc.Core.Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | System.Nullable<System.DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | System.Threading.CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
Grpc.Core.AsyncUnaryCall<Tenant> | The call object. |
ListTenants(ListTenantsRequest, CallOptions)
public virtual ListTenantsResponse ListTenants(ListTenantsRequest request, CallOptions options)
Lists all tenants associated with the project.
Parameters | |
---|---|
Name | Description |
request | ListTenantsRequest The request to send to the server. |
options | Grpc.Core.CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
ListTenantsResponse | The response received from the server. |
ListTenants(ListTenantsRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual ListTenantsResponse ListTenants(ListTenantsRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))
Lists all tenants associated with the project.
Parameters | |
---|---|
Name | Description |
request | ListTenantsRequest The request to send to the server. |
headers | Grpc.Core.Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | System.Nullable<System.DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | System.Threading.CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
ListTenantsResponse | The response received from the server. |
ListTenantsAsync(ListTenantsRequest, CallOptions)
public virtual AsyncUnaryCall<ListTenantsResponse> ListTenantsAsync(ListTenantsRequest request, CallOptions options)
Lists all tenants associated with the project.
Parameters | |
---|---|
Name | Description |
request | ListTenantsRequest The request to send to the server. |
options | Grpc.Core.CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
Grpc.Core.AsyncUnaryCall<ListTenantsResponse> | The call object. |
ListTenantsAsync(ListTenantsRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<ListTenantsResponse> ListTenantsAsync(ListTenantsRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))
Lists all tenants associated with the project.
Parameters | |
---|---|
Name | Description |
request | ListTenantsRequest The request to send to the server. |
headers | Grpc.Core.Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | System.Nullable<System.DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | System.Threading.CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
Grpc.Core.AsyncUnaryCall<ListTenantsResponse> | The call object. |
NewInstance(ClientBase.ClientBaseConfiguration)
protected override TenantService.TenantServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)
Creates a new instance of client from given ClientBaseConfiguration
.
Parameter | |
---|---|
Name | Description |
configuration | Grpc.Core.ClientBase.ClientBaseConfiguration |
Returns | |
---|---|
Type | Description |
TenantService.TenantServiceClient |
UpdateTenant(UpdateTenantRequest, CallOptions)
public virtual Tenant UpdateTenant(UpdateTenantRequest request, CallOptions options)
Updates specified tenant.
Parameters | |
---|---|
Name | Description |
request | UpdateTenantRequest The request to send to the server. |
options | Grpc.Core.CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
Tenant | The response received from the server. |
UpdateTenant(UpdateTenantRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual Tenant UpdateTenant(UpdateTenantRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))
Updates specified tenant.
Parameters | |
---|---|
Name | Description |
request | UpdateTenantRequest The request to send to the server. |
headers | Grpc.Core.Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | System.Nullable<System.DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | System.Threading.CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
Tenant | The response received from the server. |
UpdateTenantAsync(UpdateTenantRequest, CallOptions)
public virtual AsyncUnaryCall<Tenant> UpdateTenantAsync(UpdateTenantRequest request, CallOptions options)
Updates specified tenant.
Parameters | |
---|---|
Name | Description |
request | UpdateTenantRequest The request to send to the server. |
options | Grpc.Core.CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
Grpc.Core.AsyncUnaryCall<Tenant> | The call object. |
UpdateTenantAsync(UpdateTenantRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<Tenant> UpdateTenantAsync(UpdateTenantRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))
Updates specified tenant.
Parameters | |
---|---|
Name | Description |
request | UpdateTenantRequest The request to send to the server. |
headers | Grpc.Core.Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | System.Nullable<System.DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | System.Threading.CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
Grpc.Core.AsyncUnaryCall<Tenant> | The call object. |