Class AccessApprovalConnection (2.17.0)

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

To create a concrete instance, see MakeAccessApprovalConnection().

For mocking, see accessapproval_v1_mocks::MockAccessApprovalConnection.

Functions

virtual options()

Returns
TypeDescription
Options

virtual ListApprovalRequests(google::cloud::accessapproval::v1::ListApprovalRequestsMessage)

Parameter
NameDescription
request google::cloud::accessapproval::v1::ListApprovalRequestsMessage
Returns
TypeDescription
StreamRange< google::cloud::accessapproval::v1::ApprovalRequest >

virtual GetApprovalRequest(google::cloud::accessapproval::v1::GetApprovalRequestMessage const &)

Parameter
NameDescription
request google::cloud::accessapproval::v1::GetApprovalRequestMessage const &
Returns
TypeDescription
StatusOr< google::cloud::accessapproval::v1::ApprovalRequest >

virtual ApproveApprovalRequest(google::cloud::accessapproval::v1::ApproveApprovalRequestMessage const &)

Parameter
NameDescription
request google::cloud::accessapproval::v1::ApproveApprovalRequestMessage const &
Returns
TypeDescription
StatusOr< google::cloud::accessapproval::v1::ApprovalRequest >

virtual DismissApprovalRequest(google::cloud::accessapproval::v1::DismissApprovalRequestMessage const &)

Parameter
NameDescription
request google::cloud::accessapproval::v1::DismissApprovalRequestMessage const &
Returns
TypeDescription
StatusOr< google::cloud::accessapproval::v1::ApprovalRequest >

virtual InvalidateApprovalRequest(google::cloud::accessapproval::v1::InvalidateApprovalRequestMessage const &)

Parameter
NameDescription
request google::cloud::accessapproval::v1::InvalidateApprovalRequestMessage const &
Returns
TypeDescription
StatusOr< google::cloud::accessapproval::v1::ApprovalRequest >

virtual GetAccessApprovalSettings(google::cloud::accessapproval::v1::GetAccessApprovalSettingsMessage const &)

Parameter
NameDescription
request google::cloud::accessapproval::v1::GetAccessApprovalSettingsMessage const &
Returns
TypeDescription
StatusOr< google::cloud::accessapproval::v1::AccessApprovalSettings >

virtual UpdateAccessApprovalSettings(google::cloud::accessapproval::v1::UpdateAccessApprovalSettingsMessage const &)

Parameter
NameDescription
request google::cloud::accessapproval::v1::UpdateAccessApprovalSettingsMessage const &
Returns
TypeDescription
StatusOr< google::cloud::accessapproval::v1::AccessApprovalSettings >

virtual DeleteAccessApprovalSettings(google::cloud::accessapproval::v1::DeleteAccessApprovalSettingsMessage const &)

Parameter
NameDescription
request google::cloud::accessapproval::v1::DeleteAccessApprovalSettingsMessage const &
Returns
TypeDescription
Status

virtual GetAccessApprovalServiceAccount(google::cloud::accessapproval::v1::GetAccessApprovalServiceAccountMessage const &)

Parameter
NameDescription
request google::cloud::accessapproval::v1::GetAccessApprovalServiceAccountMessage const &
Returns
TypeDescription
StatusOr< google::cloud::accessapproval::v1::AccessApprovalServiceAccount >