# Google Cloud Billing v1 API - Class CloudBillingClientImpl (3.10.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [3.10.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClientImpl)
- [3.9.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/3.9.0/Google.Cloud.Billing.V1.CloudBillingClientImpl)
- [3.8.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/3.8.0/Google.Cloud.Billing.V1.CloudBillingClientImpl)
- [3.7.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/3.7.0/Google.Cloud.Billing.V1.CloudBillingClientImpl)
- [3.6.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/3.6.0/Google.Cloud.Billing.V1.CloudBillingClientImpl)
- [3.5.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/3.5.0/Google.Cloud.Billing.V1.CloudBillingClientImpl)
- [3.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/3.4.0/Google.Cloud.Billing.V1.CloudBillingClientImpl)
- [3.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/3.3.0/Google.Cloud.Billing.V1.CloudBillingClientImpl)
- [3.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/3.2.0/Google.Cloud.Billing.V1.CloudBillingClientImpl)
- [3.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/3.1.0/Google.Cloud.Billing.V1.CloudBillingClientImpl)
- [3.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/3.0.0/Google.Cloud.Billing.V1.CloudBillingClientImpl)
- [2.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/2.3.0/Google.Cloud.Billing.V1.CloudBillingClientImpl)
- [2.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/2.2.0/Google.Cloud.Billing.V1.CloudBillingClientImpl)

    public sealed class CloudBillingClientImpl : CloudBillingClient

Reference documentation and code samples for the Google Cloud Billing v1 API class CloudBillingClientImpl.

CloudBilling client wrapper implementation, for convenient use.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> [CloudBillingClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient) \> CloudBillingClientImpl

## Inherited Members

[CloudBillingClient.DefaultEndpoint](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_DefaultEndpoint) [CloudBillingClient.DefaultScopes](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_DefaultScopes) [CloudBillingClient.ServiceMetadata](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_ServiceMetadata) [CloudBillingClient.CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_CreateAsync_System_Threading_CancellationToken_) [CloudBillingClient.Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_Create) [CloudBillingClient.ShutdownDefaultChannelsAsync()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_ShutdownDefaultChannelsAsync) [CloudBillingClient.GetBillingAccountAsync(GetBillingAccountRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_GetBillingAccountAsync_Google_Cloud_Billing_V1_GetBillingAccountRequest_System_Threading_CancellationToken_) [CloudBillingClient.GetBillingAccount(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_GetBillingAccount_System_String_Google_Api_Gax_Grpc_CallSettings_) [CloudBillingClient.GetBillingAccountAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_GetBillingAccountAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [CloudBillingClient.GetBillingAccountAsync(string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_GetBillingAccountAsync_System_String_System_Threading_CancellationToken_) [CloudBillingClient.GetBillingAccount(BillingAccountName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_GetBillingAccount_Google_Api_Gax_ResourceNames_BillingAccountName_Google_Api_Gax_Grpc_CallSettings_) [CloudBillingClient.GetBillingAccountAsync(BillingAccountName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_GetBillingAccountAsync_Google_Api_Gax_ResourceNames_BillingAccountName_Google_Api_Gax_Grpc_CallSettings_) [CloudBillingClient.GetBillingAccountAsync(BillingAccountName, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_GetBillingAccountAsync_Google_Api_Gax_ResourceNames_BillingAccountName_System_Threading_CancellationToken_) [CloudBillingClient.ListBillingAccounts(string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_ListBillingAccounts_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [CloudBillingClient.ListBillingAccountsAsync(string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_ListBillingAccountsAsync_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [CloudBillingClient.ListBillingAccounts(string, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_ListBillingAccounts_System_String_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [CloudBillingClient.ListBillingAccountsAsync(string, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_ListBillingAccountsAsync_System_String_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [CloudBillingClient.UpdateBillingAccountAsync(UpdateBillingAccountRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_UpdateBillingAccountAsync_Google_Cloud_Billing_V1_UpdateBillingAccountRequest_System_Threading_CancellationToken_) [CloudBillingClient.UpdateBillingAccount(string, BillingAccount, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_UpdateBillingAccount_System_String_Google_Cloud_Billing_V1_BillingAccount_Google_Api_Gax_Grpc_CallSettings_) [CloudBillingClient.UpdateBillingAccountAsync(string, BillingAccount, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_UpdateBillingAccountAsync_System_String_Google_Cloud_Billing_V1_BillingAccount_Google_Api_Gax_Grpc_CallSettings_) [CloudBillingClient.UpdateBillingAccountAsync(string, BillingAccount, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_UpdateBillingAccountAsync_System_String_Google_Cloud_Billing_V1_BillingAccount_System_Threading_CancellationToken_) [CloudBillingClient.UpdateBillingAccount(BillingAccountName, BillingAccount, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_UpdateBillingAccount_Google_Api_Gax_ResourceNames_BillingAccountName_Google_Cloud_Billing_V1_BillingAccount_Google_Api_Gax_Grpc_CallSettings_) [CloudBillingClient.UpdateBillingAccountAsync(BillingAccountName, BillingAccount, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_UpdateBillingAccountAsync_Google_Api_Gax_ResourceNames_BillingAccountName_Google_Cloud_Billing_V1_BillingAccount_Google_Api_Gax_Grpc_CallSettings_) [CloudBillingClient.UpdateBillingAccountAsync(BillingAccountName, BillingAccount, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_UpdateBillingAccountAsync_Google_Api_Gax_ResourceNames_BillingAccountName_Google_Cloud_Billing_V1_BillingAccount_System_Threading_CancellationToken_) [CloudBillingClient.CreateBillingAccountAsync(CreateBillingAccountRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_CreateBillingAccountAsync_Google_Cloud_Billing_V1_CreateBillingAccountRequest_System_Threading_CancellationToken_) [CloudBillingClient.CreateBillingAccount(BillingAccount, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_CreateBillingAccount_Google_Cloud_Billing_V1_BillingAccount_Google_Api_Gax_Grpc_CallSettings_) [CloudBillingClient.CreateBillingAccountAsync(BillingAccount, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_CreateBillingAccountAsync_Google_Cloud_Billing_V1_BillingAccount_Google_Api_Gax_Grpc_CallSettings_) [CloudBillingClient.CreateBillingAccountAsync(BillingAccount, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_CreateBillingAccountAsync_Google_Cloud_Billing_V1_BillingAccount_System_Threading_CancellationToken_) [CloudBillingClient.CreateBillingAccount(BillingAccount, string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_CreateBillingAccount_Google_Cloud_Billing_V1_BillingAccount_System_String_Google_Api_Gax_Grpc_CallSettings_) [CloudBillingClient.CreateBillingAccountAsync(BillingAccount, string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_CreateBillingAccountAsync_Google_Cloud_Billing_V1_BillingAccount_System_String_Google_Api_Gax_Grpc_CallSettings_) [CloudBillingClient.CreateBillingAccountAsync(BillingAccount, string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_CreateBillingAccountAsync_Google_Cloud_Billing_V1_BillingAccount_System_String_System_Threading_CancellationToken_) [CloudBillingClient.ListProjectBillingInfo(string, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_ListProjectBillingInfo_System_String_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [CloudBillingClient.ListProjectBillingInfoAsync(string, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_ListProjectBillingInfoAsync_System_String_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [CloudBillingClient.ListProjectBillingInfo(BillingAccountName, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_ListProjectBillingInfo_Google_Api_Gax_ResourceNames_BillingAccountName_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [CloudBillingClient.ListProjectBillingInfoAsync(BillingAccountName, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_ListProjectBillingInfoAsync_Google_Api_Gax_ResourceNames_BillingAccountName_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [CloudBillingClient.GetProjectBillingInfoAsync(GetProjectBillingInfoRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_GetProjectBillingInfoAsync_Google_Cloud_Billing_V1_GetProjectBillingInfoRequest_System_Threading_CancellationToken_) [CloudBillingClient.GetProjectBillingInfo(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_GetProjectBillingInfo_System_String_Google_Api_Gax_Grpc_CallSettings_) [CloudBillingClient.GetProjectBillingInfoAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_GetProjectBillingInfoAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [CloudBillingClient.GetProjectBillingInfoAsync(string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_GetProjectBillingInfoAsync_System_String_System_Threading_CancellationToken_) [CloudBillingClient.GetProjectBillingInfo(ProjectName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_GetProjectBillingInfo_Google_Api_Gax_ResourceNames_ProjectName_Google_Api_Gax_Grpc_CallSettings_) [CloudBillingClient.GetProjectBillingInfoAsync(ProjectName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_GetProjectBillingInfoAsync_Google_Api_Gax_ResourceNames_ProjectName_Google_Api_Gax_Grpc_CallSettings_) [CloudBillingClient.GetProjectBillingInfoAsync(ProjectName, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_GetProjectBillingInfoAsync_Google_Api_Gax_ResourceNames_ProjectName_System_Threading_CancellationToken_) [CloudBillingClient.UpdateProjectBillingInfoAsync(UpdateProjectBillingInfoRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_UpdateProjectBillingInfoAsync_Google_Cloud_Billing_V1_UpdateProjectBillingInfoRequest_System_Threading_CancellationToken_) [CloudBillingClient.UpdateProjectBillingInfo(string, ProjectBillingInfo, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_UpdateProjectBillingInfo_System_String_Google_Cloud_Billing_V1_ProjectBillingInfo_Google_Api_Gax_Grpc_CallSettings_) [CloudBillingClient.UpdateProjectBillingInfoAsync(string, ProjectBillingInfo, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_UpdateProjectBillingInfoAsync_System_String_Google_Cloud_Billing_V1_ProjectBillingInfo_Google_Api_Gax_Grpc_CallSettings_) [CloudBillingClient.UpdateProjectBillingInfoAsync(string, ProjectBillingInfo, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_UpdateProjectBillingInfoAsync_System_String_Google_Cloud_Billing_V1_ProjectBillingInfo_System_Threading_CancellationToken_) [CloudBillingClient.GetIamPolicyAsync(GetIamPolicyRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_GetIamPolicyAsync_Google_Cloud_Iam_V1_GetIamPolicyRequest_System_Threading_CancellationToken_) [CloudBillingClient.GetIamPolicy(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_GetIamPolicy_System_String_Google_Api_Gax_Grpc_CallSettings_) [CloudBillingClient.GetIamPolicyAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_GetIamPolicyAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [CloudBillingClient.GetIamPolicyAsync(string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_GetIamPolicyAsync_System_String_System_Threading_CancellationToken_) [CloudBillingClient.GetIamPolicy(IResourceName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_GetIamPolicy_Google_Api_Gax_IResourceName_Google_Api_Gax_Grpc_CallSettings_) [CloudBillingClient.GetIamPolicyAsync(IResourceName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_GetIamPolicyAsync_Google_Api_Gax_IResourceName_Google_Api_Gax_Grpc_CallSettings_) [CloudBillingClient.GetIamPolicyAsync(IResourceName, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_GetIamPolicyAsync_Google_Api_Gax_IResourceName_System_Threading_CancellationToken_) [CloudBillingClient.SetIamPolicyAsync(SetIamPolicyRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_SetIamPolicyAsync_Google_Cloud_Iam_V1_SetIamPolicyRequest_System_Threading_CancellationToken_) [CloudBillingClient.SetIamPolicy(string, Policy, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_SetIamPolicy_System_String_Google_Cloud_Iam_V1_Policy_Google_Api_Gax_Grpc_CallSettings_) [CloudBillingClient.SetIamPolicyAsync(string, Policy, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_SetIamPolicyAsync_System_String_Google_Cloud_Iam_V1_Policy_Google_Api_Gax_Grpc_CallSettings_) [CloudBillingClient.SetIamPolicyAsync(string, Policy, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_SetIamPolicyAsync_System_String_Google_Cloud_Iam_V1_Policy_System_Threading_CancellationToken_) [CloudBillingClient.SetIamPolicy(IResourceName, Policy, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_SetIamPolicy_Google_Api_Gax_IResourceName_Google_Cloud_Iam_V1_Policy_Google_Api_Gax_Grpc_CallSettings_) [CloudBillingClient.SetIamPolicyAsync(IResourceName, Policy, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_SetIamPolicyAsync_Google_Api_Gax_IResourceName_Google_Cloud_Iam_V1_Policy_Google_Api_Gax_Grpc_CallSettings_) [CloudBillingClient.SetIamPolicyAsync(IResourceName, Policy, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_SetIamPolicyAsync_Google_Api_Gax_IResourceName_Google_Cloud_Iam_V1_Policy_System_Threading_CancellationToken_) [CloudBillingClient.TestIamPermissionsAsync(TestIamPermissionsRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_TestIamPermissionsAsync_Google_Cloud_Iam_V1_TestIamPermissionsRequest_System_Threading_CancellationToken_) [CloudBillingClient.TestIamPermissions(string, IEnumerable\<string\>, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_TestIamPermissions_System_String_System_Collections_Generic_IEnumerable_System_String__Google_Api_Gax_Grpc_CallSettings_) [CloudBillingClient.TestIamPermissionsAsync(string, IEnumerable\<string\>, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_TestIamPermissionsAsync_System_String_System_Collections_Generic_IEnumerable_System_String__Google_Api_Gax_Grpc_CallSettings_) [CloudBillingClient.TestIamPermissionsAsync(string, IEnumerable\<string\>, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_TestIamPermissionsAsync_System_String_System_Collections_Generic_IEnumerable_System_String__System_Threading_CancellationToken_) [CloudBillingClient.TestIamPermissions(IResourceName, IEnumerable\<string\>, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_TestIamPermissions_Google_Api_Gax_IResourceName_System_Collections_Generic_IEnumerable_System_String__Google_Api_Gax_Grpc_CallSettings_) [CloudBillingClient.TestIamPermissionsAsync(IResourceName, IEnumerable\<string\>, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_TestIamPermissionsAsync_Google_Api_Gax_IResourceName_System_Collections_Generic_IEnumerable_System_String__Google_Api_Gax_Grpc_CallSettings_) [CloudBillingClient.TestIamPermissionsAsync(IResourceName, IEnumerable\<string\>, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_TestIamPermissionsAsync_Google_Api_Gax_IResourceName_System_Collections_Generic_IEnumerable_System_String__System_Threading_CancellationToken_) [CloudBillingClient.MoveBillingAccountAsync(MoveBillingAccountRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_MoveBillingAccountAsync_Google_Cloud_Billing_V1_MoveBillingAccountRequest_System_Threading_CancellationToken_) [object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Billing.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1)

## Assembly

Google.Cloud.Billing.V1.dll

## Remarks

Retrieves the Google Cloud Console billing accounts and associates them with
projects.

## Constructors

### CloudBillingClientImpl(CloudBillingClient, CloudBillingSettings, ILogger)

    public CloudBillingClientImpl(CloudBilling.CloudBillingClient grpcClient, CloudBillingSettings settings, ILogger logger)

Constructs a client wrapper for the CloudBilling service, with the specified gRPC client and settings.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `grpcClient` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillinghttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBilling.CloudBillingClient` The underlying gRPC client. |
| `settings` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingSettings` The base [CloudBillingSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingSettings) used within this client. |
| `logger` | `https://learn.microsoft.com/dotnet/api/microsoft.extensions.logging.ilogger` Optional [ILogger](https://learn.microsoft.com/dotnet/api/microsoft.extensions.logging.ilogger) to use within this client. |

## Properties

### GrpcClient

    public override CloudBilling.CloudBillingClient GrpcClient { get; }

The underlying gRPC CloudBilling client

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillinghttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBilling.CloudBillingClient` |   |

**Overrides** [CloudBillingClient.GrpcClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_GrpcClient)

## Methods

### CreateBillingAccount(CreateBillingAccountRequest, CallSettings)

    public override BillingAccount CreateBillingAccount(CreateBillingAccountRequest request, CallSettings callSettings = null)

This method creates [billing
subaccounts](https://cloud.google.com/billing/docs/concepts#subaccounts).

Google Cloud resellers should use the
Channel Services APIs,
[accounts.customers.create](https://cloud.google.com/channel/docs/reference/rest/v1/accounts.customers/create)
and
[accounts.customers.entitlements.create](https://cloud.google.com/channel/docs/reference/rest/v1/accounts.customers.entitlements/create).

When creating a subaccount, the current authenticated user must have the
`billing.accounts.update` IAM permission on the parent account, which is
typically given to billing account
[administrators](https://cloud.google.com/billing/docs/how-to/billing-access).
This method will return an error if the parent account has not been
provisioned for subaccounts.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CreateBillingAccountRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.BillingAccount` | The RPC response. |

**Overrides** [CloudBillingClient.CreateBillingAccount(CreateBillingAccountRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_CreateBillingAccount_Google_Cloud_Billing_V1_CreateBillingAccountRequest_Google_Api_Gax_Grpc_CallSettings_)

### CreateBillingAccountAsync(CreateBillingAccountRequest, CallSettings)

    public override Task<BillingAccount> CreateBillingAccountAsync(CreateBillingAccountRequest request, CallSettings callSettings = null)

This method creates [billing
subaccounts](https://cloud.google.com/billing/docs/concepts#subaccounts).

Google Cloud resellers should use the
Channel Services APIs,
[accounts.customers.create](https://cloud.google.com/channel/docs/reference/rest/v1/accounts.customers/create)
and
[accounts.customers.entitlements.create](https://cloud.google.com/channel/docs/reference/rest/v1/accounts.customers.entitlements/create).

When creating a subaccount, the current authenticated user must have the
`billing.accounts.update` IAM permission on the parent account, which is
typically given to billing account
[administrators](https://cloud.google.com/billing/docs/how-to/billing-access).
This method will return an error if the parent account has not been
provisioned for subaccounts.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CreateBillingAccountRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.BillingAccount` | A Task containing the RPC response. |

**Overrides** [CloudBillingClient.CreateBillingAccountAsync(CreateBillingAccountRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_CreateBillingAccountAsync_Google_Cloud_Billing_V1_CreateBillingAccountRequest_Google_Api_Gax_Grpc_CallSettings_)

### GetBillingAccount(GetBillingAccountRequest, CallSettings)

    public override BillingAccount GetBillingAccount(GetBillingAccountRequest request, CallSettings callSettings = null)

Gets information about a billing account. The current authenticated user
must be a [viewer of the billing
account](https://cloud.google.com/billing/docs/how-to/billing-access).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.GetBillingAccountRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.BillingAccount` | The RPC response. |

**Overrides** [CloudBillingClient.GetBillingAccount(GetBillingAccountRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_GetBillingAccount_Google_Cloud_Billing_V1_GetBillingAccountRequest_Google_Api_Gax_Grpc_CallSettings_)

### GetBillingAccountAsync(GetBillingAccountRequest, CallSettings)

    public override Task<BillingAccount> GetBillingAccountAsync(GetBillingAccountRequest request, CallSettings callSettings = null)

Gets information about a billing account. The current authenticated user
must be a [viewer of the billing
account](https://cloud.google.com/billing/docs/how-to/billing-access).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.GetBillingAccountRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.BillingAccount` | A Task containing the RPC response. |

**Overrides** [CloudBillingClient.GetBillingAccountAsync(GetBillingAccountRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_GetBillingAccountAsync_Google_Cloud_Billing_V1_GetBillingAccountRequest_Google_Api_Gax_Grpc_CallSettings_)

### GetIamPolicy(GetIamPolicyRequest, CallSettings)

    public override Policy GetIamPolicy(GetIamPolicyRequest request, CallSettings callSettings = null)

Gets the access control policy for a billing account.
The caller must have the `billing.accounts.getIamPolicy` permission on the
account, which is often given to billing account
[viewers](https://cloud.google.com/billing/docs/how-to/billing-access).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.GetIamPolicyRequest.html` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.Policy.html` | The RPC response. |

**Overrides** [CloudBillingClient.GetIamPolicy(GetIamPolicyRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_GetIamPolicy_Google_Cloud_Iam_V1_GetIamPolicyRequest_Google_Api_Gax_Grpc_CallSettings_)

### GetIamPolicyAsync(GetIamPolicyRequest, CallSettings)

    public override Task<Policy> GetIamPolicyAsync(GetIamPolicyRequest request, CallSettings callSettings = null)

Gets the access control policy for a billing account.
The caller must have the `billing.accounts.getIamPolicy` permission on the
account, which is often given to billing account
[viewers](https://cloud.google.com/billing/docs/how-to/billing-access).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.GetIamPolicyRequest.html` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.Policy.html` | A Task containing the RPC response. |

**Overrides** [CloudBillingClient.GetIamPolicyAsync(GetIamPolicyRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_GetIamPolicyAsync_Google_Cloud_Iam_V1_GetIamPolicyRequest_Google_Api_Gax_Grpc_CallSettings_)

### GetProjectBillingInfo(GetProjectBillingInfoRequest, CallSettings)

    public override ProjectBillingInfo GetProjectBillingInfo(GetProjectBillingInfoRequest request, CallSettings callSettings = null)

Gets the billing information for a project. The current authenticated user
must have the `resourcemanager.projects.get` permission for the project,
which can be granted by assigning the [Project
Viewer](https://cloud.google.com/iam/docs/understanding-roles#predefined_roles)
role.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.GetProjectBillingInfoRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.ProjectBillingInfo` | The RPC response. |

**Overrides** [CloudBillingClient.GetProjectBillingInfo(GetProjectBillingInfoRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_GetProjectBillingInfo_Google_Cloud_Billing_V1_GetProjectBillingInfoRequest_Google_Api_Gax_Grpc_CallSettings_)

### GetProjectBillingInfoAsync(GetProjectBillingInfoRequest, CallSettings)

    public override Task<ProjectBillingInfo> GetProjectBillingInfoAsync(GetProjectBillingInfoRequest request, CallSettings callSettings = null)

Gets the billing information for a project. The current authenticated user
must have the `resourcemanager.projects.get` permission for the project,
which can be granted by assigning the [Project
Viewer](https://cloud.google.com/iam/docs/understanding-roles#predefined_roles)
role.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.GetProjectBillingInfoRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.ProjectBillingInfo` | A Task containing the RPC response. |

**Overrides** [CloudBillingClient.GetProjectBillingInfoAsync(GetProjectBillingInfoRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_GetProjectBillingInfoAsync_Google_Cloud_Billing_V1_GetProjectBillingInfoRequest_Google_Api_Gax_Grpc_CallSettings_)

### ListBillingAccounts(ListBillingAccountsRequest, CallSettings)

    public override PagedEnumerable<ListBillingAccountsResponse, BillingAccount> ListBillingAccounts(ListBillingAccountsRequest request, CallSettings callSettings = null)

Lists the billing accounts that the current authenticated user has
permission to
[view](https://cloud.google.com/billing/docs/how-to/billing-access).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.ListBillingAccountsRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.ListBillingAccountsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.BillingAccount` | A pageable sequence of [BillingAccount](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.BillingAccount) resources. |

**Overrides** [CloudBillingClient.ListBillingAccounts(ListBillingAccountsRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_ListBillingAccounts_Google_Cloud_Billing_V1_ListBillingAccountsRequest_Google_Api_Gax_Grpc_CallSettings_)

### ListBillingAccountsAsync(ListBillingAccountsRequest, CallSettings)

    public override PagedAsyncEnumerable<ListBillingAccountsResponse, BillingAccount> ListBillingAccountsAsync(ListBillingAccountsRequest request, CallSettings callSettings = null)

Lists the billing accounts that the current authenticated user has
permission to
[view](https://cloud.google.com/billing/docs/how-to/billing-access).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.ListBillingAccountsRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.ListBillingAccountsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.BillingAccount` | A pageable asynchronous sequence of [BillingAccount](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.BillingAccount) resources. |

**Overrides** [CloudBillingClient.ListBillingAccountsAsync(ListBillingAccountsRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_ListBillingAccountsAsync_Google_Cloud_Billing_V1_ListBillingAccountsRequest_Google_Api_Gax_Grpc_CallSettings_)

### ListProjectBillingInfo(ListProjectBillingInfoRequest, CallSettings)

    public override PagedEnumerable<ListProjectBillingInfoResponse, ProjectBillingInfo> ListProjectBillingInfo(ListProjectBillingInfoRequest request, CallSettings callSettings = null)

Lists the projects associated with a billing account. The current
authenticated user must have the `billing.resourceAssociations.list` IAM
permission, which is often given to billing account
[viewers](https://cloud.google.com/billing/docs/how-to/billing-access).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.ListProjectBillingInfoRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.ListProjectBillingInfoResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.ProjectBillingInfo` | A pageable sequence of [ProjectBillingInfo](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.ProjectBillingInfo) resources. |

**Overrides** [CloudBillingClient.ListProjectBillingInfo(ListProjectBillingInfoRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_ListProjectBillingInfo_Google_Cloud_Billing_V1_ListProjectBillingInfoRequest_Google_Api_Gax_Grpc_CallSettings_)

### ListProjectBillingInfoAsync(ListProjectBillingInfoRequest, CallSettings)

    public override PagedAsyncEnumerable<ListProjectBillingInfoResponse, ProjectBillingInfo> ListProjectBillingInfoAsync(ListProjectBillingInfoRequest request, CallSettings callSettings = null)

Lists the projects associated with a billing account. The current
authenticated user must have the `billing.resourceAssociations.list` IAM
permission, which is often given to billing account
[viewers](https://cloud.google.com/billing/docs/how-to/billing-access).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.ListProjectBillingInfoRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.ListProjectBillingInfoResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.ProjectBillingInfo` | A pageable asynchronous sequence of [ProjectBillingInfo](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.ProjectBillingInfo) resources. |

**Overrides** [CloudBillingClient.ListProjectBillingInfoAsync(ListProjectBillingInfoRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_ListProjectBillingInfoAsync_Google_Cloud_Billing_V1_ListProjectBillingInfoRequest_Google_Api_Gax_Grpc_CallSettings_)

### MoveBillingAccount(MoveBillingAccountRequest, CallSettings)

    public override BillingAccount MoveBillingAccount(MoveBillingAccountRequest request, CallSettings callSettings = null)

Changes which parent organization a billing account belongs to.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.MoveBillingAccountRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.BillingAccount` | The RPC response. |

**Overrides** [CloudBillingClient.MoveBillingAccount(MoveBillingAccountRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_MoveBillingAccount_Google_Cloud_Billing_V1_MoveBillingAccountRequest_Google_Api_Gax_Grpc_CallSettings_)

### MoveBillingAccountAsync(MoveBillingAccountRequest, CallSettings)

    public override Task<BillingAccount> MoveBillingAccountAsync(MoveBillingAccountRequest request, CallSettings callSettings = null)

Changes which parent organization a billing account belongs to.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.MoveBillingAccountRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.BillingAccount` | A Task containing the RPC response. |

**Overrides** [CloudBillingClient.MoveBillingAccountAsync(MoveBillingAccountRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_MoveBillingAccountAsync_Google_Cloud_Billing_V1_MoveBillingAccountRequest_Google_Api_Gax_Grpc_CallSettings_)

### SetIamPolicy(SetIamPolicyRequest, CallSettings)

    public override Policy SetIamPolicy(SetIamPolicyRequest request, CallSettings callSettings = null)

Sets the access control policy for a billing account. Replaces any existing
policy.
The caller must have the `billing.accounts.setIamPolicy` permission on the
account, which is often given to billing account
[administrators](https://cloud.google.com/billing/docs/how-to/billing-access).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.SetIamPolicyRequest.html` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.Policy.html` | The RPC response. |

**Overrides** [CloudBillingClient.SetIamPolicy(SetIamPolicyRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_SetIamPolicy_Google_Cloud_Iam_V1_SetIamPolicyRequest_Google_Api_Gax_Grpc_CallSettings_)

### SetIamPolicyAsync(SetIamPolicyRequest, CallSettings)

    public override Task<Policy> SetIamPolicyAsync(SetIamPolicyRequest request, CallSettings callSettings = null)

Sets the access control policy for a billing account. Replaces any existing
policy.
The caller must have the `billing.accounts.setIamPolicy` permission on the
account, which is often given to billing account
[administrators](https://cloud.google.com/billing/docs/how-to/billing-access).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.SetIamPolicyRequest.html` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.Policy.html` | A Task containing the RPC response. |

**Overrides** [CloudBillingClient.SetIamPolicyAsync(SetIamPolicyRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_SetIamPolicyAsync_Google_Cloud_Iam_V1_SetIamPolicyRequest_Google_Api_Gax_Grpc_CallSettings_)

### TestIamPermissions(TestIamPermissionsRequest, CallSettings)

    public override TestIamPermissionsResponse TestIamPermissions(TestIamPermissionsRequest request, CallSettings callSettings = null)

Tests the access control policy for a billing account. This method takes
the resource and a set of permissions as input and returns the subset of
the input permissions that the caller is allowed for that resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.TestIamPermissionsRequest.html` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.TestIamPermissionsResponse.html` | The RPC response. |

**Overrides** [CloudBillingClient.TestIamPermissions(TestIamPermissionsRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_TestIamPermissions_Google_Cloud_Iam_V1_TestIamPermissionsRequest_Google_Api_Gax_Grpc_CallSettings_)

### TestIamPermissionsAsync(TestIamPermissionsRequest, CallSettings)

    public override Task<TestIamPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsRequest request, CallSettings callSettings = null)

Tests the access control policy for a billing account. This method takes
the resource and a set of permissions as input and returns the subset of
the input permissions that the caller is allowed for that resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.TestIamPermissionsRequest.html` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.TestIamPermissionsResponse.html` | A Task containing the RPC response. |

**Overrides** [CloudBillingClient.TestIamPermissionsAsync(TestIamPermissionsRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_TestIamPermissionsAsync_Google_Cloud_Iam_V1_TestIamPermissionsRequest_Google_Api_Gax_Grpc_CallSettings_)

### UpdateBillingAccount(UpdateBillingAccountRequest, CallSettings)

    public override BillingAccount UpdateBillingAccount(UpdateBillingAccountRequest request, CallSettings callSettings = null)

Updates a billing account's fields.
Currently the only field that can be edited is `display_name`.
The current authenticated user must have the `billing.accounts.update`
IAM permission, which is typically given to the
[administrator](https://cloud.google.com/billing/docs/how-to/billing-access)
of the billing account.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.UpdateBillingAccountRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.BillingAccount` | The RPC response. |

**Overrides** [CloudBillingClient.UpdateBillingAccount(UpdateBillingAccountRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_UpdateBillingAccount_Google_Cloud_Billing_V1_UpdateBillingAccountRequest_Google_Api_Gax_Grpc_CallSettings_)

### UpdateBillingAccountAsync(UpdateBillingAccountRequest, CallSettings)

    public override Task<BillingAccount> UpdateBillingAccountAsync(UpdateBillingAccountRequest request, CallSettings callSettings = null)

Updates a billing account's fields.
Currently the only field that can be edited is `display_name`.
The current authenticated user must have the `billing.accounts.update`
IAM permission, which is typically given to the
[administrator](https://cloud.google.com/billing/docs/how-to/billing-access)
of the billing account.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.UpdateBillingAccountRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.BillingAccount` | A Task containing the RPC response. |

**Overrides** [CloudBillingClient.UpdateBillingAccountAsync(UpdateBillingAccountRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_UpdateBillingAccountAsync_Google_Cloud_Billing_V1_UpdateBillingAccountRequest_Google_Api_Gax_Grpc_CallSettings_)

### UpdateProjectBillingInfo(UpdateProjectBillingInfoRequest, CallSettings)

    public override ProjectBillingInfo UpdateProjectBillingInfo(UpdateProjectBillingInfoRequest request, CallSettings callSettings = null)

Sets or updates the billing account associated with a project. You specify
the new billing account by setting the `billing_account_name` in the
`ProjectBillingInfo` resource to the resource name of a billing account.
Associating a project with an open billing account enables billing on the
project and allows charges for resource usage. If the project already had a
billing account, this method changes the billing account used for resource
usage charges.

*Note:* Incurred charges that have not yet been reported in the transaction
history of the Google Cloud Console might be billed to the new billing
account, even if the charge occurred before the new billing account was
assigned to the project.

The current authenticated user must have ownership privileges for both
the
[project](https://cloud.google.com/docs/permissions-overview#h.bgs0oxofvnoo) and the [billing
account](https://cloud.google.com/billing/docs/how-to/billing-access).

You can disable billing on the project by setting the
`billing_account_name` field to empty. This action disassociates the
current billing account from the project. Any billable activity of your
in-use services will stop, and your application could stop functioning as
expected. Any unbilled charges to date will be billed to the previously
associated account. The current authenticated user must be either an owner
of the project or an owner of the billing account for the project.

Note that associating a project with a *closed* billing account will have
much the same effect as disabling billing on the project: any paid
resources used by the project will be shut down. Thus, unless you wish to
disable billing, you should always call this method with the name of an
*open* billing account.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.UpdateProjectBillingInfoRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.ProjectBillingInfo` | The RPC response. |

**Overrides** [CloudBillingClient.UpdateProjectBillingInfo(UpdateProjectBillingInfoRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_UpdateProjectBillingInfo_Google_Cloud_Billing_V1_UpdateProjectBillingInfoRequest_Google_Api_Gax_Grpc_CallSettings_)

### UpdateProjectBillingInfoAsync(UpdateProjectBillingInfoRequest, CallSettings)

    public override Task<ProjectBillingInfo> UpdateProjectBillingInfoAsync(UpdateProjectBillingInfoRequest request, CallSettings callSettings = null)

Sets or updates the billing account associated with a project. You specify
the new billing account by setting the `billing_account_name` in the
`ProjectBillingInfo` resource to the resource name of a billing account.
Associating a project with an open billing account enables billing on the
project and allows charges for resource usage. If the project already had a
billing account, this method changes the billing account used for resource
usage charges.

*Note:* Incurred charges that have not yet been reported in the transaction
history of the Google Cloud Console might be billed to the new billing
account, even if the charge occurred before the new billing account was
assigned to the project.

The current authenticated user must have ownership privileges for both
the
[project](https://cloud.google.com/docs/permissions-overview#h.bgs0oxofvnoo) and the [billing
account](https://cloud.google.com/billing/docs/how-to/billing-access).

You can disable billing on the project by setting the
`billing_account_name` field to empty. This action disassociates the
current billing account from the project. Any billable activity of your
in-use services will stop, and your application could stop functioning as
expected. Any unbilled charges to date will be billed to the previously
associated account. The current authenticated user must be either an owner
of the project or an owner of the billing account for the project.

Note that associating a project with a *closed* billing account will have
much the same effect as disabling billing on the project: any paid
resources used by the project will be shut down. Thus, unless you wish to
disable billing, you should always call this method with the name of an
*open* billing account.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.UpdateProjectBillingInfoRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.ProjectBillingInfo` | A Task containing the RPC response. |

**Overrides** [CloudBillingClient.UpdateProjectBillingInfoAsync(UpdateProjectBillingInfoRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.CloudBillingClient#Google_Cloud_Billing_V1_CloudBillingClient_UpdateProjectBillingInfoAsync_Google_Cloud_Billing_V1_UpdateProjectBillingInfoRequest_Google_Api_Gax_Grpc_CallSettings_)