Class LicenseCodesConnection (2.17.0)

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

To create a concrete instance, see MakeLicenseCodesConnection().

For mocking, see compute_license_codes_v1_mocks::MockLicenseCodesConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual GetLicenseCode(google::cloud::cpp::compute::license_codes::v1::GetLicenseCodeRequest const &)

Parameter
Name Description
request google::cloud::cpp::compute::license_codes::v1::GetLicenseCodeRequest const &
Returns
Type Description
StatusOr< google::cloud::cpp::compute::v1::LicenseCode >

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

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