Class CloudBillingConnection (2.31.0-rc)

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

To create a concrete instance, see MakeCloudBillingConnection().

For mocking, see billing_v1_mocks::MockCloudBillingConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual GetBillingAccount(google::cloud::billing::v1::GetBillingAccountRequest const &)

Parameter
Name Description
request google::cloud::billing::v1::GetBillingAccountRequest const &
Returns
Type Description
StatusOr< google::cloud::billing::v1::BillingAccount >

virtual ListBillingAccounts(google::cloud::billing::v1::ListBillingAccountsRequest)

Parameter
Name Description
request google::cloud::billing::v1::ListBillingAccountsRequest
Returns
Type Description
StreamRange< google::cloud::billing::v1::BillingAccount >

virtual UpdateBillingAccount(google::cloud::billing::v1::UpdateBillingAccountRequest const &)

Parameter
Name Description
request google::cloud::billing::v1::UpdateBillingAccountRequest const &
Returns
Type Description
StatusOr< google::cloud::billing::v1::BillingAccount >

virtual CreateBillingAccount(google::cloud::billing::v1::CreateBillingAccountRequest const &)

Parameter
Name Description
request google::cloud::billing::v1::CreateBillingAccountRequest const &
Returns
Type Description
StatusOr< google::cloud::billing::v1::BillingAccount >

virtual ListProjectBillingInfo(google::cloud::billing::v1::ListProjectBillingInfoRequest)

Parameter
Name Description
request google::cloud::billing::v1::ListProjectBillingInfoRequest
Returns
Type Description
StreamRange< google::cloud::billing::v1::ProjectBillingInfo >

virtual GetProjectBillingInfo(google::cloud::billing::v1::GetProjectBillingInfoRequest const &)

Parameter
Name Description
request google::cloud::billing::v1::GetProjectBillingInfoRequest const &
Returns
Type Description
StatusOr< google::cloud::billing::v1::ProjectBillingInfo >

virtual UpdateProjectBillingInfo(google::cloud::billing::v1::UpdateProjectBillingInfoRequest const &)

Parameter
Name Description
request google::cloud::billing::v1::UpdateProjectBillingInfoRequest const &
Returns
Type Description
StatusOr< google::cloud::billing::v1::ProjectBillingInfo >

virtual GetIamPolicy(google::iam::v1::GetIamPolicyRequest const &)

Parameter
Name Description
request google::iam::v1::GetIamPolicyRequest const &
Returns
Type Description
StatusOr< google::iam::v1::Policy >

virtual SetIamPolicy(google::iam::v1::SetIamPolicyRequest const &)

Parameter
Name Description
request google::iam::v1::SetIamPolicyRequest const &
Returns
Type Description
StatusOr< google::iam::v1::Policy >

virtual TestIamPermissions(google::iam::v1::TestIamPermissionsRequest const &)

Parameter
Name Description
request google::iam::v1::TestIamPermissionsRequest const &
Returns
Type Description
StatusOr< google::iam::v1::TestIamPermissionsResponse >

virtual MoveBillingAccount(google::cloud::billing::v1::MoveBillingAccountRequest const &)

Parameter
Name Description
request google::cloud::billing::v1::MoveBillingAccountRequest const &
Returns
Type Description
StatusOr< google::cloud::billing::v1::BillingAccount >