Class OsLoginServiceConnection (2.18.0-rc)

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

To create a concrete instance, see MakeOsLoginServiceConnection().

For mocking, see oslogin_v1_mocks::MockOsLoginServiceConnection.

Functions

virtual options()

Returns
TypeDescription
Options

virtual CreateSshPublicKey(google::cloud::oslogin::v1::CreateSshPublicKeyRequest const &)

Parameter
NameDescription
request google::cloud::oslogin::v1::CreateSshPublicKeyRequest const &
Returns
TypeDescription
StatusOr< google::cloud::oslogin::common::SshPublicKey >

virtual DeletePosixAccount(google::cloud::oslogin::v1::DeletePosixAccountRequest const &)

Parameter
NameDescription
request google::cloud::oslogin::v1::DeletePosixAccountRequest const &
Returns
TypeDescription
Status

virtual DeleteSshPublicKey(google::cloud::oslogin::v1::DeleteSshPublicKeyRequest const &)

Parameter
NameDescription
request google::cloud::oslogin::v1::DeleteSshPublicKeyRequest const &
Returns
TypeDescription
Status

virtual GetLoginProfile(google::cloud::oslogin::v1::GetLoginProfileRequest const &)

Parameter
NameDescription
request google::cloud::oslogin::v1::GetLoginProfileRequest const &
Returns
TypeDescription
StatusOr< google::cloud::oslogin::v1::LoginProfile >

virtual GetSshPublicKey(google::cloud::oslogin::v1::GetSshPublicKeyRequest const &)

Parameter
NameDescription
request google::cloud::oslogin::v1::GetSshPublicKeyRequest const &
Returns
TypeDescription
StatusOr< google::cloud::oslogin::common::SshPublicKey >

virtual ImportSshPublicKey(google::cloud::oslogin::v1::ImportSshPublicKeyRequest const &)

Parameter
NameDescription
request google::cloud::oslogin::v1::ImportSshPublicKeyRequest const &
Returns
TypeDescription
StatusOr< google::cloud::oslogin::v1::ImportSshPublicKeyResponse >

virtual UpdateSshPublicKey(google::cloud::oslogin::v1::UpdateSshPublicKeyRequest const &)

Parameter
NameDescription
request google::cloud::oslogin::v1::UpdateSshPublicKeyRequest const &
Returns
TypeDescription
StatusOr< google::cloud::oslogin::common::SshPublicKey >