/// <summary>Snippet for GetBillingAccount</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void GetBillingAccountRequestObject() { // Create client CloudBillingClient cloudBillingClient = CloudBillingClient.Create(); // Initialize request argument(s) GetBillingAccountRequest request = new GetBillingAccountRequest { BillingAccountName = BillingAccountName.FromBillingAccount("[BILLING_ACCOUNT]"), }; // Make the request BillingAccount response = cloudBillingClient.GetBillingAccount(request); }
/// <summary>Snippet for GetBillingAccountAsync</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public async Task GetBillingAccountRequestObjectAsync() { // Create client CloudBillingClient cloudBillingClient = await CloudBillingClient.CreateAsync(); // Initialize request argument(s) GetBillingAccountRequest request = new GetBillingAccountRequest { BillingAccountName = BillingAccountName.FromBillingAccount("[BILLING_ACCOUNT]"), }; // Make the request BillingAccount response = await cloudBillingClient.GetBillingAccountAsync(request); }