Class MockAccessContextManagerConnection (2.32.0-rc)

A class to mock AccessContextManagerConnection.

Application developers may want to test their code with simulated responses, including errors, from an object of type AccessContextManagerClient. To do so, construct an object of type AccessContextManagerClient with an instance of this class. Then use the Google Test framework functions to program the behavior of this mock.

See Also

This example for how to test your application with GoogleTest. While the example showcases types from the BigQuery library, the underlying principles apply for any pair of *Client and *Connection.

Functions

virtual options()

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Returns
Type Description
Options

virtual ListAccessPolicies(google::identity::accesscontextmanager::v1::ListAccessPoliciesRequest)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
Name Description
request google::identity::accesscontextmanager::v1::ListAccessPoliciesRequest
Returns
Type Description
StreamRange< google::identity::accesscontextmanager::v1::AccessPolicy >

virtual GetAccessPolicy(google::identity::accesscontextmanager::v1::GetAccessPolicyRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
Name Description
request google::identity::accesscontextmanager::v1::GetAccessPolicyRequest const &
Returns
Type Description
StatusOr< google::identity::accesscontextmanager::v1::AccessPolicy >

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

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::identity::accesscontextmanager::v1::AccessPolicy > >

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

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::identity::accesscontextmanager::v1::AccessPolicy > >

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

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::identity::accesscontextmanager::v1::AccessContextManagerOperationMetadata > >

virtual ListAccessLevels(google::identity::accesscontextmanager::v1::ListAccessLevelsRequest)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
Name Description
request google::identity::accesscontextmanager::v1::ListAccessLevelsRequest
Returns
Type Description
StreamRange< google::identity::accesscontextmanager::v1::AccessLevel >

virtual GetAccessLevel(google::identity::accesscontextmanager::v1::GetAccessLevelRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
Name Description
request google::identity::accesscontextmanager::v1::GetAccessLevelRequest const &
Returns
Type Description
StatusOr< google::identity::accesscontextmanager::v1::AccessLevel >

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

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::identity::accesscontextmanager::v1::AccessLevel > >

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

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::identity::accesscontextmanager::v1::AccessLevel > >

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

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::identity::accesscontextmanager::v1::AccessContextManagerOperationMetadata > >

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

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::identity::accesscontextmanager::v1::ReplaceAccessLevelsResponse > >

virtual ListServicePerimeters(google::identity::accesscontextmanager::v1::ListServicePerimetersRequest)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
Name Description
request google::identity::accesscontextmanager::v1::ListServicePerimetersRequest
Returns
Type Description
StreamRange< google::identity::accesscontextmanager::v1::ServicePerimeter >

virtual GetServicePerimeter(google::identity::accesscontextmanager::v1::GetServicePerimeterRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
Name Description
request google::identity::accesscontextmanager::v1::GetServicePerimeterRequest const &
Returns
Type Description
StatusOr< google::identity::accesscontextmanager::v1::ServicePerimeter >

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

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::identity::accesscontextmanager::v1::ServicePerimeter > >

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

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::identity::accesscontextmanager::v1::ServicePerimeter > >

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

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::identity::accesscontextmanager::v1::AccessContextManagerOperationMetadata > >

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

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::identity::accesscontextmanager::v1::ReplaceServicePerimetersResponse > >

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

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::identity::accesscontextmanager::v1::CommitServicePerimetersResponse > >

virtual ListGcpUserAccessBindings(google::identity::accesscontextmanager::v1::ListGcpUserAccessBindingsRequest)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
Name Description
request google::identity::accesscontextmanager::v1::ListGcpUserAccessBindingsRequest
Returns
Type Description
StreamRange< google::identity::accesscontextmanager::v1::GcpUserAccessBinding >

virtual GetGcpUserAccessBinding(google::identity::accesscontextmanager::v1::GetGcpUserAccessBindingRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
Name Description
request google::identity::accesscontextmanager::v1::GetGcpUserAccessBindingRequest const &
Returns
Type Description
StatusOr< google::identity::accesscontextmanager::v1::GcpUserAccessBinding >

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

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::identity::accesscontextmanager::v1::GcpUserAccessBinding > >

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

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::identity::accesscontextmanager::v1::GcpUserAccessBinding > >

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

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::identity::accesscontextmanager::v1::GcpUserAccessBindingOperationMetadata > >

virtual SetIamPolicy(google::iam::v1::SetIamPolicyRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
Name Description
request google::iam::v1::SetIamPolicyRequest const &
Returns
Type Description
StatusOr< google::iam::v1::Policy >

virtual GetIamPolicy(google::iam::v1::GetIamPolicyRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
Name Description
request google::iam::v1::GetIamPolicyRequest const &
Returns
Type Description
StatusOr< google::iam::v1::Policy >

virtual TestIamPermissions(google::iam::v1::TestIamPermissionsRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
Name Description
request google::iam::v1::TestIamPermissionsRequest const &
Returns
Type Description
StatusOr< google::iam::v1::TestIamPermissionsResponse >

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

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

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