/// <summary>Snippet for GetBudget</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetBudgetResourceNames()
 {
     // Create client
     BudgetServiceClient budgetServiceClient = BudgetServiceClient.Create();
     // Initialize request argument(s)
     BudgetName name = BudgetName.FromBillingAccountBudget("[BILLING_ACCOUNT]", "[BUDGET]");
     // Make the request
     Budget response = budgetServiceClient.GetBudget(name);
 }
Exemplo n.º 2
0
 /// <summary>Snippet for GetBudget</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetBudget()
 {
     // Create client
     BudgetServiceClient budgetServiceClient = BudgetServiceClient.Create();
     // Initialize request argument(s)
     string name = "billingAccounts/[BILLING_ACCOUNT]/budgets/[BUDGET]";
     // Make the request
     Budget response = budgetServiceClient.GetBudget(name);
 }
 /// <summary>Snippet for GetBudget</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetBudgetRequestObject()
 {
     // Create client
     BudgetServiceClient budgetServiceClient = BudgetServiceClient.Create();
     // Initialize request argument(s)
     GetBudgetRequest request = new GetBudgetRequest
     {
         BudgetName = BudgetName.FromBillingAccountBudget("[BILLING_ACCOUNT]", "[BUDGET]"),
     };
     // Make the request
     Budget response = budgetServiceClient.GetBudget(request);
 }