Class CloudQuotasConnection (2.24.0)

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

To create a concrete instance, see MakeCloudQuotasConnection().

For mocking, see cloudquotas_v1_mocks::MockCloudQuotasConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual ListQuotaInfos(google::api::cloudquotas::v1::ListQuotaInfosRequest)

Parameter
Name Description
request google::api::cloudquotas::v1::ListQuotaInfosRequest
Returns
Type Description
StreamRange< google::api::cloudquotas::v1::QuotaInfo >

virtual GetQuotaInfo(google::api::cloudquotas::v1::GetQuotaInfoRequest const &)

Parameter
Name Description
request google::api::cloudquotas::v1::GetQuotaInfoRequest const &
Returns
Type Description
StatusOr< google::api::cloudquotas::v1::QuotaInfo >

virtual ListQuotaPreferences(google::api::cloudquotas::v1::ListQuotaPreferencesRequest)

Parameter
Name Description
request google::api::cloudquotas::v1::ListQuotaPreferencesRequest
Returns
Type Description
StreamRange< google::api::cloudquotas::v1::QuotaPreference >

virtual GetQuotaPreference(google::api::cloudquotas::v1::GetQuotaPreferenceRequest const &)

Parameter
Name Description
request google::api::cloudquotas::v1::GetQuotaPreferenceRequest const &
Returns
Type Description
StatusOr< google::api::cloudquotas::v1::QuotaPreference >

virtual CreateQuotaPreference(google::api::cloudquotas::v1::CreateQuotaPreferenceRequest const &)

Parameter
Name Description
request google::api::cloudquotas::v1::CreateQuotaPreferenceRequest const &
Returns
Type Description
StatusOr< google::api::cloudquotas::v1::QuotaPreference >

virtual UpdateQuotaPreference(google::api::cloudquotas::v1::UpdateQuotaPreferenceRequest const &)

Parameter
Name Description
request google::api::cloudquotas::v1::UpdateQuotaPreferenceRequest const &
Returns
Type Description
StatusOr< google::api::cloudquotas::v1::QuotaPreference >