Class TenantServiceConnection (2.24.0)

This interface defines virtual methods for each of the user-facing overload sets in TenantServiceClient. This allows users to inject custom behavior (e.g., with a Google Mock object) when writing tests that use objects of type TenantServiceClient.

To create a concrete instance, see MakeTenantServiceConnection().

For mocking, see talent_v4_mocks::MockTenantServiceConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual CreateTenant(google::cloud::talent::v4::CreateTenantRequest const &)

Parameter
Name Description
request google::cloud::talent::v4::CreateTenantRequest const &
Returns
Type Description
StatusOr< google::cloud::talent::v4::Tenant >

virtual GetTenant(google::cloud::talent::v4::GetTenantRequest const &)

Parameter
Name Description
request google::cloud::talent::v4::GetTenantRequest const &
Returns
Type Description
StatusOr< google::cloud::talent::v4::Tenant >

virtual UpdateTenant(google::cloud::talent::v4::UpdateTenantRequest const &)

Parameter
Name Description
request google::cloud::talent::v4::UpdateTenantRequest const &
Returns
Type Description
StatusOr< google::cloud::talent::v4::Tenant >

virtual DeleteTenant(google::cloud::talent::v4::DeleteTenantRequest const &)

Parameter
Name Description
request google::cloud::talent::v4::DeleteTenantRequest const &
Returns
Type Description
Status

virtual ListTenants(google::cloud::talent::v4::ListTenantsRequest)

Parameter
Name Description
request google::cloud::talent::v4::ListTenantsRequest
Returns
Type Description
StreamRange< google::cloud::talent::v4::Tenant >