Class PrivilegedAccessManagerConnection (2.33.0-rc)

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

To create a concrete instance, see MakePrivilegedAccessManagerConnection().

For mocking, see privilegedaccessmanager_v1_mocks::MockPrivilegedAccessManagerConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual CheckOnboardingStatus(google::cloud::privilegedaccessmanager::v1::CheckOnboardingStatusRequest const &)

Parameter
Name Description
request google::cloud::privilegedaccessmanager::v1::CheckOnboardingStatusRequest const &
Returns
Type Description
StatusOr< google::cloud::privilegedaccessmanager::v1::CheckOnboardingStatusResponse >

virtual ListEntitlements(google::cloud::privilegedaccessmanager::v1::ListEntitlementsRequest)

Parameter
Name Description
request google::cloud::privilegedaccessmanager::v1::ListEntitlementsRequest
Returns
Type Description
StreamRange< google::cloud::privilegedaccessmanager::v1::Entitlement >

virtual SearchEntitlements(google::cloud::privilegedaccessmanager::v1::SearchEntitlementsRequest)

Parameter
Name Description
request google::cloud::privilegedaccessmanager::v1::SearchEntitlementsRequest
Returns
Type Description
StreamRange< google::cloud::privilegedaccessmanager::v1::Entitlement >

virtual GetEntitlement(google::cloud::privilegedaccessmanager::v1::GetEntitlementRequest const &)

Parameter
Name Description
request google::cloud::privilegedaccessmanager::v1::GetEntitlementRequest const &
Returns
Type Description
StatusOr< google::cloud::privilegedaccessmanager::v1::Entitlement >

virtual CreateEntitlement(google::cloud::privilegedaccessmanager::v1::CreateEntitlementRequest const &)

Parameter
Name Description
request google::cloud::privilegedaccessmanager::v1::CreateEntitlementRequest const &
Returns
Type Description
future< StatusOr< google::cloud::privilegedaccessmanager::v1::Entitlement > >

virtual CreateEntitlement(NoAwaitTag, google::cloud::privilegedaccessmanager::v1::CreateEntitlementRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::privilegedaccessmanager::v1::CreateEntitlementRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual CreateEntitlement(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::privilegedaccessmanager::v1::Entitlement > >

virtual DeleteEntitlement(google::cloud::privilegedaccessmanager::v1::DeleteEntitlementRequest const &)

Parameter
Name Description
request google::cloud::privilegedaccessmanager::v1::DeleteEntitlementRequest const &
Returns
Type Description
future< StatusOr< google::cloud::privilegedaccessmanager::v1::Entitlement > >

virtual DeleteEntitlement(NoAwaitTag, google::cloud::privilegedaccessmanager::v1::DeleteEntitlementRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::privilegedaccessmanager::v1::DeleteEntitlementRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual DeleteEntitlement(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::privilegedaccessmanager::v1::Entitlement > >

virtual UpdateEntitlement(google::cloud::privilegedaccessmanager::v1::UpdateEntitlementRequest const &)

Parameter
Name Description
request google::cloud::privilegedaccessmanager::v1::UpdateEntitlementRequest const &
Returns
Type Description
future< StatusOr< google::cloud::privilegedaccessmanager::v1::Entitlement > >

virtual UpdateEntitlement(NoAwaitTag, google::cloud::privilegedaccessmanager::v1::UpdateEntitlementRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::privilegedaccessmanager::v1::UpdateEntitlementRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual UpdateEntitlement(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::privilegedaccessmanager::v1::Entitlement > >

virtual ListGrants(google::cloud::privilegedaccessmanager::v1::ListGrantsRequest)

Parameter
Name Description
request google::cloud::privilegedaccessmanager::v1::ListGrantsRequest
Returns
Type Description
StreamRange< google::cloud::privilegedaccessmanager::v1::Grant >

virtual SearchGrants(google::cloud::privilegedaccessmanager::v1::SearchGrantsRequest)

Parameter
Name Description
request google::cloud::privilegedaccessmanager::v1::SearchGrantsRequest
Returns
Type Description
StreamRange< google::cloud::privilegedaccessmanager::v1::Grant >

virtual GetGrant(google::cloud::privilegedaccessmanager::v1::GetGrantRequest const &)

Parameter
Name Description
request google::cloud::privilegedaccessmanager::v1::GetGrantRequest const &
Returns
Type Description
StatusOr< google::cloud::privilegedaccessmanager::v1::Grant >

virtual CreateGrant(google::cloud::privilegedaccessmanager::v1::CreateGrantRequest const &)

Parameter
Name Description
request google::cloud::privilegedaccessmanager::v1::CreateGrantRequest const &
Returns
Type Description
StatusOr< google::cloud::privilegedaccessmanager::v1::Grant >

virtual ApproveGrant(google::cloud::privilegedaccessmanager::v1::ApproveGrantRequest const &)

Parameter
Name Description
request google::cloud::privilegedaccessmanager::v1::ApproveGrantRequest const &
Returns
Type Description
StatusOr< google::cloud::privilegedaccessmanager::v1::Grant >

virtual DenyGrant(google::cloud::privilegedaccessmanager::v1::DenyGrantRequest const &)

Parameter
Name Description
request google::cloud::privilegedaccessmanager::v1::DenyGrantRequest const &
Returns
Type Description
StatusOr< google::cloud::privilegedaccessmanager::v1::Grant >

virtual RevokeGrant(google::cloud::privilegedaccessmanager::v1::RevokeGrantRequest const &)

Parameter
Name Description
request google::cloud::privilegedaccessmanager::v1::RevokeGrantRequest const &
Returns
Type Description
future< StatusOr< google::cloud::privilegedaccessmanager::v1::Grant > >

virtual RevokeGrant(NoAwaitTag, google::cloud::privilegedaccessmanager::v1::RevokeGrantRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::privilegedaccessmanager::v1::RevokeGrantRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual RevokeGrant(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::privilegedaccessmanager::v1::Grant > >

virtual ListLocations(google::cloud::location::ListLocationsRequest)

Parameter
Name Description
request google::cloud::location::ListLocationsRequest
Returns
Type Description
StreamRange< google::cloud::location::Location >

virtual GetLocation(google::cloud::location::GetLocationRequest const &)

Parameter
Name Description
request google::cloud::location::GetLocationRequest const &
Returns
Type Description
StatusOr< google::cloud::location::Location >

virtual ListOperations(google::longrunning::ListOperationsRequest)

Parameter
Name Description
request google::longrunning::ListOperationsRequest
Returns
Type Description
StreamRange< google::longrunning::Operation >

virtual GetOperation(google::longrunning::GetOperationRequest const &)

Parameter
Name Description
request google::longrunning::GetOperationRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual DeleteOperation(google::longrunning::DeleteOperationRequest const &)

Parameter
Name Description
request google::longrunning::DeleteOperationRequest const &
Returns
Type Description
Status