Class CloudBillingConnection (2.19.0)

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
TypeDescription
Options

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

Parameter
NameDescription
request google::cloud::billing::v1::GetBillingAccountRequest const &
Returns
TypeDescription
StatusOr< google::cloud::billing::v1::BillingAccount >

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

Parameter
NameDescription
request google::cloud::billing::v1::ListBillingAccountsRequest
Returns
TypeDescription
StreamRange< google::cloud::billing::v1::BillingAccount >

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

Parameter
NameDescription
request google::cloud::billing::v1::UpdateBillingAccountRequest const &
Returns
TypeDescription
StatusOr< google::cloud::billing::v1::BillingAccount >

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

Parameter
NameDescription
request google::cloud::billing::v1::CreateBillingAccountRequest const &
Returns
TypeDescription
StatusOr< google::cloud::billing::v1::BillingAccount >

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

Parameter
NameDescription
request google::cloud::billing::v1::ListProjectBillingInfoRequest
Returns
TypeDescription
StreamRange< google::cloud::billing::v1::ProjectBillingInfo >

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

Parameter
NameDescription
request google::cloud::billing::v1::GetProjectBillingInfoRequest const &
Returns
TypeDescription
StatusOr< google::cloud::billing::v1::ProjectBillingInfo >

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

Parameter
NameDescription
request google::cloud::billing::v1::UpdateProjectBillingInfoRequest const &
Returns
TypeDescription
StatusOr< google::cloud::billing::v1::ProjectBillingInfo >

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

Parameter
NameDescription
request google::iam::v1::GetIamPolicyRequest const &
Returns
TypeDescription
StatusOr< google::iam::v1::Policy >

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

Parameter
NameDescription
request google::iam::v1::SetIamPolicyRequest const &
Returns
TypeDescription
StatusOr< google::iam::v1::Policy >

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

Parameter
NameDescription
request google::iam::v1::TestIamPermissionsRequest const &
Returns
TypeDescription
StatusOr< google::iam::v1::TestIamPermissionsResponse >