Google Cloud Talent Solution v4 API - Class TenantService.TenantServiceClient (2.4.0)

public class TenantService.TenantServiceClient : ClientBase<TenantService.TenantServiceClient>

Reference documentation and code samples for the Google Cloud Talent Solution v4 API class TenantService.TenantServiceClient.

Client for TenantService

Inheritance

object > ClientBase > ClientBaseTenantServiceTenantServiceClient > TenantService.TenantServiceClient

Namespace

Google.Cloud.Talent.V4

Assembly

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
NameDescription
callInvokerCallInvoker

The callInvoker to use to make remote calls.

TenantServiceClient(ChannelBase)

public TenantServiceClient(ChannelBase channel)

Creates a new client for TenantService

Parameter
NameDescription
channelChannelBase

The channel to use to make remote calls.

TenantServiceClient(ClientBaseConfiguration)

protected TenantServiceClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration

The client configuration.

Methods

CreateTenant(CreateTenantRequest, CallOptions)

public virtual Tenant CreateTenant(CreateTenantRequest request, CallOptions options)

Creates a new tenant entity.

Parameters
NameDescription
requestCreateTenantRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Tenant

The response received from the server.

CreateTenant(CreateTenantRequest, Metadata, DateTime?, CancellationToken)

public virtual Tenant CreateTenant(CreateTenantRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Creates a new tenant entity.

Parameters
NameDescription
requestCreateTenantRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
NameDescription
requestCreateTenantRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallTenant

The call object.

CreateTenantAsync(CreateTenantRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Tenant> CreateTenantAsync(CreateTenantRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Creates a new tenant entity.

Parameters
NameDescription
requestCreateTenantRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallTenant

The call object.

DeleteTenant(DeleteTenantRequest, CallOptions)

public virtual Empty DeleteTenant(DeleteTenantRequest request, CallOptions options)

Deletes specified tenant.

Parameters
NameDescription
requestDeleteTenantRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Empty

The response received from the server.

DeleteTenant(DeleteTenantRequest, Metadata, DateTime?, CancellationToken)

public virtual Empty DeleteTenant(DeleteTenantRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Deletes specified tenant.

Parameters
NameDescription
requestDeleteTenantRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Empty

The response received from the server.

DeleteTenantAsync(DeleteTenantRequest, CallOptions)

public virtual AsyncUnaryCall<Empty> DeleteTenantAsync(DeleteTenantRequest request, CallOptions options)

Deletes specified tenant.

Parameters
NameDescription
requestDeleteTenantRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallEmpty

The call object.

DeleteTenantAsync(DeleteTenantRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Empty> DeleteTenantAsync(DeleteTenantRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Deletes specified tenant.

Parameters
NameDescription
requestDeleteTenantRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallEmpty

The call object.

GetTenant(GetTenantRequest, CallOptions)

public virtual Tenant GetTenant(GetTenantRequest request, CallOptions options)

Retrieves specified tenant.

Parameters
NameDescription
requestGetTenantRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Tenant

The response received from the server.

GetTenant(GetTenantRequest, Metadata, DateTime?, CancellationToken)

public virtual Tenant GetTenant(GetTenantRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Retrieves specified tenant.

Parameters
NameDescription
requestGetTenantRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Tenant

The response received from the server.

GetTenantAsync(GetTenantRequest, CallOptions)

public virtual AsyncUnaryCall<Tenant> GetTenantAsync(GetTenantRequest request, CallOptions options)

Retrieves specified tenant.

Parameters
NameDescription
requestGetTenantRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallTenant

The call object.

GetTenantAsync(GetTenantRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Tenant> GetTenantAsync(GetTenantRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Retrieves specified tenant.

Parameters
NameDescription
requestGetTenantRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallTenant

The call object.

ListTenants(ListTenantsRequest, CallOptions)

public virtual ListTenantsResponse ListTenants(ListTenantsRequest request, CallOptions options)

Lists all tenants associated with the project.

Parameters
NameDescription
requestListTenantsRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
ListTenantsResponse

The response received from the server.

ListTenants(ListTenantsRequest, Metadata, DateTime?, CancellationToken)

public virtual ListTenantsResponse ListTenants(ListTenantsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Lists all tenants associated with the project.

Parameters
NameDescription
requestListTenantsRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
NameDescription
requestListTenantsRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallListTenantsResponse

The call object.

ListTenantsAsync(ListTenantsRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<ListTenantsResponse> ListTenantsAsync(ListTenantsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Lists all tenants associated with the project.

Parameters
NameDescription
requestListTenantsRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallListTenantsResponse

The call object.

NewInstance(ClientBaseConfiguration)

protected override TenantService.TenantServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration
Returns
TypeDescription
TenantServiceTenantServiceClient
Overrides

UpdateTenant(UpdateTenantRequest, CallOptions)

public virtual Tenant UpdateTenant(UpdateTenantRequest request, CallOptions options)

Updates specified tenant.

Parameters
NameDescription
requestUpdateTenantRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Tenant

The response received from the server.

UpdateTenant(UpdateTenantRequest, Metadata, DateTime?, CancellationToken)

public virtual Tenant UpdateTenant(UpdateTenantRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Updates specified tenant.

Parameters
NameDescription
requestUpdateTenantRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Tenant

The response received from the server.

UpdateTenantAsync(UpdateTenantRequest, CallOptions)

public virtual AsyncUnaryCall<Tenant> UpdateTenantAsync(UpdateTenantRequest request, CallOptions options)

Updates specified tenant.

Parameters
NameDescription
requestUpdateTenantRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallTenant

The call object.

UpdateTenantAsync(UpdateTenantRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Tenant> UpdateTenantAsync(UpdateTenantRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Updates specified tenant.

Parameters
NameDescription
requestUpdateTenantRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallTenant

The call object.