/// <summary>Snippet for CreateBudget</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void CreateBudgetResourceNames() { // Create client BudgetServiceClient budgetServiceClient = BudgetServiceClient.Create(); // Initialize request argument(s) BillingAccountName parent = BillingAccountName.FromBillingAccount("[BILLING_ACCOUNT]"); Budget budget = new Budget(); // Make the request Budget response = budgetServiceClient.CreateBudget(parent, budget); }
/// <summary>Snippet for CreateBudget</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void CreateBudget() { // Create client BudgetServiceClient budgetServiceClient = BudgetServiceClient.Create(); // Initialize request argument(s) string parent = "billingAccounts/[BILLING_ACCOUNT]"; Budget budget = new Budget(); // Make the request Budget response = budgetServiceClient.CreateBudget(parent, budget); }
/// <summary>Snippet for CreateBudget</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void CreateBudgetRequestObject() { // Create client BudgetServiceClient budgetServiceClient = BudgetServiceClient.Create(); // Initialize request argument(s) CreateBudgetRequest request = new CreateBudgetRequest { ParentAsBillingAccountName = BillingAccountName.FromBillingAccount("[BILLING_ACCOUNT]"), Budget = new Budget(), }; // Make the request Budget response = budgetServiceClient.CreateBudget(request); }