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

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

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

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

Parameters
Name Description
ExperimentalTag
NoAwaitTag
request google::cloud::cpp::compute::licenses::v1::DeleteLicenseRequest const &
Returns
Type Description
StatusOr< google::cloud::cpp::compute::v1::Operation >

virtual DeleteLicense(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const &)

Parameters
Name Description
ExperimentalTag
operation google::cloud::cpp::compute::v1::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >

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

Parameter
Name Description
request google::cloud::cpp::compute::licenses::v1::GetLicenseRequest 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 InsertLicense(google::cloud::cpp::compute::licenses::v1::InsertLicenseRequest const &)

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

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

Parameters
Name Description
ExperimentalTag
NoAwaitTag
request google::cloud::cpp::compute::licenses::v1::InsertLicenseRequest const &
Returns
Type Description
StatusOr< google::cloud::cpp::compute::v1::Operation >

virtual InsertLicense(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const &)

Parameters
Name Description
ExperimentalTag
operation google::cloud::cpp::compute::v1::Operation 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 >