Class OsLoginServiceConnection (2.32.0)

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
Type Description
Options

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

Parameter
Name Description
request google::cloud::oslogin::v1::CreateSshPublicKeyRequest const &
Returns
Type Description
StatusOr< google::cloud::oslogin::common::SshPublicKey >

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

Parameter
Name Description
request google::cloud::oslogin::v1::DeletePosixAccountRequest const &
Returns
Type Description
Status

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

Parameter
Name Description
request google::cloud::oslogin::v1::DeleteSshPublicKeyRequest const &
Returns
Type Description
Status

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

Parameter
Name Description
request google::cloud::oslogin::v1::GetLoginProfileRequest const &
Returns
Type Description
StatusOr< google::cloud::oslogin::v1::LoginProfile >

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

Parameter
Name Description
request google::cloud::oslogin::v1::GetSshPublicKeyRequest const &
Returns
Type Description
StatusOr< google::cloud::oslogin::common::SshPublicKey >

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

Parameter
Name Description
request google::cloud::oslogin::v1::ImportSshPublicKeyRequest const &
Returns
Type Description
StatusOr< google::cloud::oslogin::v1::ImportSshPublicKeyResponse >

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

Parameter
Name Description
request google::cloud::oslogin::v1::UpdateSshPublicKeyRequest const &
Returns
Type Description
StatusOr< google::cloud::oslogin::common::SshPublicKey >