Class LicensesConnection (2.15.1)

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

To create a concrete instance, see MakeLicensesConnection().

For mocking, see compute_licenses_v1_mocks::MockLicensesConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual DeleteLicenses(google::cloud::cpp::compute::licenses::v1::DeleteLicensesRequest const &)

Parameter
Name Description
request google::cloud::cpp::compute::licenses::v1::DeleteLicensesRequest const &
Returns
Type Description
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >

virtual GetLicenses(google::cloud::cpp::compute::licenses::v1::GetLicensesRequest const &)

Parameter
Name Description
request google::cloud::cpp::compute::licenses::v1::GetLicensesRequest const &
Returns
Type Description
StatusOr< google::cloud::cpp::compute::v1::License >

virtual GetIamPolicy(google::cloud::cpp::compute::licenses::v1::GetIamPolicyRequest const &)

Parameter
Name Description
request google::cloud::cpp::compute::licenses::v1::GetIamPolicyRequest const &
Returns
Type Description
StatusOr< google::cloud::cpp::compute::v1::Policy >

virtual InsertLicenses(google::cloud::cpp::compute::licenses::v1::InsertLicensesRequest const &)

Parameter
Name Description
request google::cloud::cpp::compute::licenses::v1::InsertLicensesRequest const &
Returns
Type Description
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >

virtual ListLicenses(google::cloud::cpp::compute::licenses::v1::ListLicensesRequest)

Parameter
Name Description
request google::cloud::cpp::compute::licenses::v1::ListLicensesRequest
Returns
Type Description
StreamRange< google::cloud::cpp::compute::v1::License >

virtual SetIamPolicy(google::cloud::cpp::compute::licenses::v1::SetIamPolicyRequest const &)

Parameter
Name Description
request google::cloud::cpp::compute::licenses::v1::SetIamPolicyRequest const &
Returns
Type Description
StatusOr< google::cloud::cpp::compute::v1::Policy >

virtual TestIamPermissions(google::cloud::cpp::compute::licenses::v1::TestIamPermissionsRequest const &)

Parameter
Name Description
request google::cloud::cpp::compute::licenses::v1::TestIamPermissionsRequest const &
Returns
Type Description
StatusOr< google::cloud::cpp::compute::v1::TestPermissionsResponse >