Class LicensesConnection (2.22.0)

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
TypeDescription
Options

virtual DeleteLicense(google::cloud::cpp::compute::licenses::v1::DeleteLicenseRequest const &)

Parameter
NameDescription
request google::cloud::cpp::compute::licenses::v1::DeleteLicenseRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >

virtual GetLicense(google::cloud::cpp::compute::licenses::v1::GetLicenseRequest const &)

Parameter
NameDescription
request google::cloud::cpp::compute::licenses::v1::GetLicenseRequest const &
Returns
TypeDescription
StatusOr< google::cloud::cpp::compute::v1::License >

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

Parameter
NameDescription
request google::cloud::cpp::compute::licenses::v1::GetIamPolicyRequest const &
Returns
TypeDescription
StatusOr< google::cloud::cpp::compute::v1::Policy >

virtual InsertLicense(google::cloud::cpp::compute::licenses::v1::InsertLicenseRequest const &)

Parameter
NameDescription
request google::cloud::cpp::compute::licenses::v1::InsertLicenseRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >

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

Parameter
NameDescription
request google::cloud::cpp::compute::licenses::v1::ListLicensesRequest
Returns
TypeDescription
StreamRange< google::cloud::cpp::compute::v1::License >

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

Parameter
NameDescription
request google::cloud::cpp::compute::licenses::v1::SetIamPolicyRequest const &
Returns
TypeDescription
StatusOr< google::cloud::cpp::compute::v1::Policy >

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

Parameter
NameDescription
request google::cloud::cpp::compute::licenses::v1::TestIamPermissionsRequest const &
Returns
TypeDescription
StatusOr< google::cloud::cpp::compute::v1::TestPermissionsResponse >