public sealed class TenantServiceClientImpl : TenantServiceClient
Reference documentation and code samples for the Google Cloud Talent Solution v4beta1 API class TenantServiceClientImpl.
TenantService client wrapper implementation, for convenient use.
Namespace
Google.Cloud.Talent.V4Beta1Assembly
Google.Cloud.Talent.V4Beta1.dll
Remarks
A service that handles tenant management, including CRUD and enumeration.
Constructors
TenantServiceClientImpl(TenantServiceClient, TenantServiceSettings, ILogger)
public TenantServiceClientImpl(TenantService.TenantServiceClient grpcClient, TenantServiceSettings settings, ILogger logger)
Constructs a client wrapper for the TenantService service, with the specified gRPC client and settings.
Parameters | |
---|---|
Name | Description |
grpcClient | TenantServiceTenantServiceClient The underlying gRPC client. |
settings | TenantServiceSettings The base TenantServiceSettings used within this client. |
logger | ILogger Optional ILogger to use within this client. |
Properties
GrpcClient
public override TenantService.TenantServiceClient GrpcClient { get; }
The underlying gRPC TenantService client
Property Value | |
---|---|
Type | Description |
TenantServiceTenantServiceClient |
Methods
CreateTenant(CreateTenantRequest, CallSettings)
public override Tenant CreateTenant(CreateTenantRequest request, CallSettings callSettings = null)
Creates a new tenant entity.
Parameters | |
---|---|
Name | Description |
request | CreateTenantRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Tenant | The RPC response. |
CreateTenantAsync(CreateTenantRequest, CallSettings)
public override Task<Tenant> CreateTenantAsync(CreateTenantRequest request, CallSettings callSettings = null)
Creates a new tenant entity.
Parameters | |
---|---|
Name | Description |
request | CreateTenantRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskTenant | A Task containing the RPC response. |
DeleteTenant(DeleteTenantRequest, CallSettings)
public override void DeleteTenant(DeleteTenantRequest request, CallSettings callSettings = null)
Deletes specified tenant.
Parameters | |
---|---|
Name | Description |
request | DeleteTenantRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
DeleteTenantAsync(DeleteTenantRequest, CallSettings)
public override Task DeleteTenantAsync(DeleteTenantRequest request, CallSettings callSettings = null)
Deletes specified tenant.
Parameters | |
---|---|
Name | Description |
request | DeleteTenantRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
GetTenant(GetTenantRequest, CallSettings)
public override Tenant GetTenant(GetTenantRequest request, CallSettings callSettings = null)
Retrieves specified tenant.
Parameters | |
---|---|
Name | Description |
request | GetTenantRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Tenant | The RPC response. |
GetTenantAsync(GetTenantRequest, CallSettings)
public override Task<Tenant> GetTenantAsync(GetTenantRequest request, CallSettings callSettings = null)
Retrieves specified tenant.
Parameters | |
---|---|
Name | Description |
request | GetTenantRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskTenant | A Task containing the RPC response. |
ListTenants(ListTenantsRequest, CallSettings)
public override PagedEnumerable<ListTenantsResponse, Tenant> ListTenants(ListTenantsRequest request, CallSettings callSettings = null)
Lists all tenants associated with the project.
Parameters | |
---|---|
Name | Description |
request | ListTenantsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListTenantsResponseTenant | A pageable sequence of Tenant resources. |
ListTenantsAsync(ListTenantsRequest, CallSettings)
public override PagedAsyncEnumerable<ListTenantsResponse, Tenant> ListTenantsAsync(ListTenantsRequest request, CallSettings callSettings = null)
Lists all tenants associated with the project.
Parameters | |
---|---|
Name | Description |
request | ListTenantsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListTenantsResponseTenant | A pageable asynchronous sequence of Tenant resources. |
UpdateTenant(UpdateTenantRequest, CallSettings)
public override Tenant UpdateTenant(UpdateTenantRequest request, CallSettings callSettings = null)
Updates specified tenant.
Parameters | |
---|---|
Name | Description |
request | UpdateTenantRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Tenant | The RPC response. |
UpdateTenantAsync(UpdateTenantRequest, CallSettings)
public override Task<Tenant> UpdateTenantAsync(UpdateTenantRequest request, CallSettings callSettings = null)
Updates specified tenant.
Parameters | |
---|---|
Name | Description |
request | UpdateTenantRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskTenant | A Task containing the RPC response. |