Class BudgetServiceConnection (2.24.0)

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

To create a concrete instance, see MakeBudgetServiceConnection().

For mocking, see billing_budgets_v1_mocks::MockBudgetServiceConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual CreateBudget(google::cloud::billing::budgets::v1::CreateBudgetRequest const &)

Parameter
Name Description
request google::cloud::billing::budgets::v1::CreateBudgetRequest const &
Returns
Type Description
StatusOr< google::cloud::billing::budgets::v1::Budget >

virtual UpdateBudget(google::cloud::billing::budgets::v1::UpdateBudgetRequest const &)

Parameter
Name Description
request google::cloud::billing::budgets::v1::UpdateBudgetRequest const &
Returns
Type Description
StatusOr< google::cloud::billing::budgets::v1::Budget >

virtual GetBudget(google::cloud::billing::budgets::v1::GetBudgetRequest const &)

Parameter
Name Description
request google::cloud::billing::budgets::v1::GetBudgetRequest const &
Returns
Type Description
StatusOr< google::cloud::billing::budgets::v1::Budget >

virtual ListBudgets(google::cloud::billing::budgets::v1::ListBudgetsRequest)

Parameter
Name Description
request google::cloud::billing::budgets::v1::ListBudgetsRequest
Returns
Type Description
StreamRange< google::cloud::billing::budgets::v1::Budget >

virtual DeleteBudget(google::cloud::billing::budgets::v1::DeleteBudgetRequest const &)

Parameter
Name Description
request google::cloud::billing::budgets::v1::DeleteBudgetRequest const &
Returns
Type Description
Status