/// <summary>Snippet for GetBudgetAsync</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 GetBudgetAsync() { // Create client BudgetServiceClient budgetServiceClient = await BudgetServiceClient.CreateAsync(); // Initialize request argument(s) string name = "billingAccounts/[BILLING_ACCOUNT]/budgets/[BUDGET]"; // Make the request Budget response = await budgetServiceClient.GetBudgetAsync(name); }
/// <summary>Snippet for GetBudgetAsync</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 GetBudgetResourceNamesAsync() { // Create client BudgetServiceClient budgetServiceClient = await BudgetServiceClient.CreateAsync(); // Initialize request argument(s) BudgetName name = BudgetName.FromBillingAccountBudget("[BILLING_ACCOUNT]", "[BUDGET]"); // Make the request Budget response = await budgetServiceClient.GetBudgetAsync(name); }
/// <summary>Snippet for GetBudgetAsync</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 GetBudgetRequestObjectAsync() { // Create client BudgetServiceClient budgetServiceClient = await BudgetServiceClient.CreateAsync(); // Initialize request argument(s) GetBudgetRequest request = new GetBudgetRequest { BudgetName = BudgetName.FromBillingAccountBudget("[BILLING_ACCOUNT]", "[BUDGET]"), }; // Make the request Budget response = await budgetServiceClient.GetBudgetAsync(request); }
/// <summary>Snippet for GetBudgetAsync</summary> public async Task GetBudgetResourceNamesAsync() { // Snippet: GetBudgetAsync(BudgetName, CallSettings) // Additional: GetBudgetAsync(BudgetName, CancellationToken) // Create client BudgetServiceClient budgetServiceClient = await BudgetServiceClient.CreateAsync(); // Initialize request argument(s) BudgetName name = BudgetName.FromBillingAccountBudget("[BILLING_ACCOUNT]", "[BUDGET]"); // Make the request Budget response = await budgetServiceClient.GetBudgetAsync(name); // End snippet }
/// <summary>Snippet for GetBudgetAsync</summary> public async Task GetBudgetAsync() { // Snippet: GetBudgetAsync(string, CallSettings) // Additional: GetBudgetAsync(string, CancellationToken) // Create client BudgetServiceClient budgetServiceClient = await BudgetServiceClient.CreateAsync(); // Initialize request argument(s) string name = "billingAccounts/[BILLING_ACCOUNT]/budgets/[BUDGET]"; // Make the request Budget response = await budgetServiceClient.GetBudgetAsync(name); // End snippet }