Class TenantServiceConnection (2.18.0-rc)

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
TypeDescription
Options

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

Parameter
NameDescription
request google::cloud::talent::v4::CreateTenantRequest const &
Returns
TypeDescription
StatusOr< google::cloud::talent::v4::Tenant >

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

Parameter
NameDescription
request google::cloud::talent::v4::GetTenantRequest const &
Returns
TypeDescription
StatusOr< google::cloud::talent::v4::Tenant >

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

Parameter
NameDescription
request google::cloud::talent::v4::UpdateTenantRequest const &
Returns
TypeDescription
StatusOr< google::cloud::talent::v4::Tenant >

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

Parameter
NameDescription
request google::cloud::talent::v4::DeleteTenantRequest const &
Returns
TypeDescription
Status

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

Parameter
NameDescription
request google::cloud::talent::v4::ListTenantsRequest
Returns
TypeDescription
StreamRange< google::cloud::talent::v4::Tenant >