Class AccessApprovalConnection (2.26.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
Type Description
Options

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

Parameter
Name Description
request google::cloud::accessapproval::v1::ListApprovalRequestsMessage
Returns
Type Description
StreamRange< google::cloud::accessapproval::v1::ApprovalRequest >

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

Parameter
Name Description
request google::cloud::accessapproval::v1::GetApprovalRequestMessage const &
Returns
Type Description
StatusOr< google::cloud::accessapproval::v1::ApprovalRequest >

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

Parameter
Name Description
request google::cloud::accessapproval::v1::ApproveApprovalRequestMessage const &
Returns
Type Description
StatusOr< google::cloud::accessapproval::v1::ApprovalRequest >

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

Parameter
Name Description
request google::cloud::accessapproval::v1::DismissApprovalRequestMessage const &
Returns
Type Description
StatusOr< google::cloud::accessapproval::v1::ApprovalRequest >

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

Parameter
Name Description
request google::cloud::accessapproval::v1::InvalidateApprovalRequestMessage const &
Returns
Type Description
StatusOr< google::cloud::accessapproval::v1::ApprovalRequest >

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

Parameter
Name Description
request google::cloud::accessapproval::v1::GetAccessApprovalSettingsMessage const &
Returns
Type Description
StatusOr< google::cloud::accessapproval::v1::AccessApprovalSettings >

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

Parameter
Name Description
request google::cloud::accessapproval::v1::UpdateAccessApprovalSettingsMessage const &
Returns
Type Description
StatusOr< google::cloud::accessapproval::v1::AccessApprovalSettings >

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

Parameter
Name Description
request google::cloud::accessapproval::v1::DeleteAccessApprovalSettingsMessage const &
Returns
Type Description
Status

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

Parameter
Name Description
request google::cloud::accessapproval::v1::GetAccessApprovalServiceAccountMessage const &
Returns
Type Description
StatusOr< google::cloud::accessapproval::v1::AccessApprovalServiceAccount >