/// <summary>Snippet for GetAccountBudgetAsync</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 GetAccountBudgetAsync() { // Create client AccountBudgetServiceClient accountBudgetServiceClient = await AccountBudgetServiceClient.CreateAsync(); // Initialize request argument(s) string resourceName = "customers/[CUSTOMER]/accountBudgets/[ACCOUNT_BUDGET]"; // Make the request AccountBudget response = await accountBudgetServiceClient.GetAccountBudgetAsync(resourceName); }
/// <summary>Snippet for GetAccountBudgetAsync</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 GetAccountBudgetResourceNamesAsync() { // Create client AccountBudgetServiceClient accountBudgetServiceClient = await AccountBudgetServiceClient.CreateAsync(); // Initialize request argument(s) AccountBudgetName resourceName = AccountBudgetName.FromCustomerAccountBudget("[CUSTOMER]", "[ACCOUNT_BUDGET]"); // Make the request AccountBudget response = await accountBudgetServiceClient.GetAccountBudgetAsync(resourceName); }
/// <summary>Snippet for GetAccountBudgetAsync</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 GetAccountBudgetRequestObjectAsync() { // Create client AccountBudgetServiceClient accountBudgetServiceClient = await AccountBudgetServiceClient.CreateAsync(); // Initialize request argument(s) GetAccountBudgetRequest request = new GetAccountBudgetRequest { ResourceNameAsAccountBudgetName = AccountBudgetName.FromCustomerAccountBudget("[CUSTOMER_ID]", "[ACCOUNT_BUDGET_ID]"), }; // Make the request AccountBudget response = await accountBudgetServiceClient.GetAccountBudgetAsync(request); }
/// <summary>Snippet for GetAccountBudgetAsync</summary> public async Task GetAccountBudgetAsync() { // Snippet: GetAccountBudgetAsync(string, CallSettings) // Additional: GetAccountBudgetAsync(string, CancellationToken) // Create client AccountBudgetServiceClient accountBudgetServiceClient = await AccountBudgetServiceClient.CreateAsync(); // Initialize request argument(s) string resourceName = "customers/[CUSTOMER_ID]/accountBudgets/[ACCOUNT_BUDGET_ID]"; // Make the request AccountBudget response = await accountBudgetServiceClient.GetAccountBudgetAsync(resourceName); // End snippet }
/// <summary>Snippet for GetAccountBudgetAsync</summary> public async Task GetAccountBudgetResourceNamesAsync() { // Snippet: GetAccountBudgetAsync(AccountBudgetName, CallSettings) // Additional: GetAccountBudgetAsync(AccountBudgetName, CancellationToken) // Create client AccountBudgetServiceClient accountBudgetServiceClient = await AccountBudgetServiceClient.CreateAsync(); // Initialize request argument(s) AccountBudgetName resourceName = AccountBudgetName.FromCustomerAccountBudget("[CUSTOMER_ID]", "[ACCOUNT_BUDGET_ID]"); // Make the request AccountBudget response = await accountBudgetServiceClient.GetAccountBudgetAsync(resourceName); // End snippet }