Class BudgetServiceConnection (2.21.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
TypeDescription
Options

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

Parameter
NameDescription
request google::cloud::billing::budgets::v1::CreateBudgetRequest const &
Returns
TypeDescription
StatusOr< google::cloud::billing::budgets::v1::Budget >

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

Parameter
NameDescription
request google::cloud::billing::budgets::v1::UpdateBudgetRequest const &
Returns
TypeDescription
StatusOr< google::cloud::billing::budgets::v1::Budget >

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

Parameter
NameDescription
request google::cloud::billing::budgets::v1::GetBudgetRequest const &
Returns
TypeDescription
StatusOr< google::cloud::billing::budgets::v1::Budget >

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

Parameter
NameDescription
request google::cloud::billing::budgets::v1::ListBudgetsRequest
Returns
TypeDescription
StreamRange< google::cloud::billing::budgets::v1::Budget >

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

Parameter
NameDescription
request google::cloud::billing::budgets::v1::DeleteBudgetRequest const &
Returns
TypeDescription
Status