/// <summary>Snippet for CreateBudgetAsync</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 CreateBudgetAsync()
        {
            // Create client
            BudgetServiceClient budgetServiceClient = await BudgetServiceClient.CreateAsync();

            // Initialize request argument(s)
            string parent = "billingAccounts/[BILLING_ACCOUNT]";
            Budget budget = new Budget();
            // Make the request
            Budget response = await budgetServiceClient.CreateBudgetAsync(parent, budget);
        }
コード例 #2
0
        /// <summary>Snippet for CreateBudgetAsync</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 CreateBudgetResourceNamesAsync()
        {
            // Create client
            BudgetServiceClient budgetServiceClient = await BudgetServiceClient.CreateAsync();

            // Initialize request argument(s)
            BillingAccountName parent = BillingAccountName.FromBillingAccount("[BILLING_ACCOUNT]");
            Budget             budget = new Budget();
            // Make the request
            Budget response = await budgetServiceClient.CreateBudgetAsync(parent, budget);
        }
コード例 #3
0
        /// <summary>Snippet for CreateBudgetAsync</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 CreateBudgetRequestObjectAsync()
        {
            // Create client
            BudgetServiceClient budgetServiceClient = await BudgetServiceClient.CreateAsync();

            // Initialize request argument(s)
            CreateBudgetRequest request = new CreateBudgetRequest
            {
                ParentAsBillingAccountName = BillingAccountName.FromBillingAccount("[BILLING_ACCOUNT]"),
                Budget = new Budget(),
            };
            // Make the request
            Budget response = await budgetServiceClient.CreateBudgetAsync(request);
        }
コード例 #4
0
        /// <summary>Snippet for CreateBudgetAsync</summary>
        public async Task CreateBudgetAsync()
        {
            // Snippet: CreateBudgetAsync(string, Budget, CallSettings)
            // Additional: CreateBudgetAsync(string, Budget, CancellationToken)
            // Create client
            BudgetServiceClient budgetServiceClient = await BudgetServiceClient.CreateAsync();

            // Initialize request argument(s)
            string parent = "billingAccounts/[BILLING_ACCOUNT]";
            Budget budget = new Budget();
            // Make the request
            Budget response = await budgetServiceClient.CreateBudgetAsync(parent, budget);

            // End snippet
        }
コード例 #5
0
        /// <summary>Snippet for CreateBudgetAsync</summary>
        public async Task CreateBudgetResourceNamesAsync()
        {
            // Snippet: CreateBudgetAsync(BillingAccountName, Budget, CallSettings)
            // Additional: CreateBudgetAsync(BillingAccountName, Budget, CancellationToken)
            // Create client
            BudgetServiceClient budgetServiceClient = await BudgetServiceClient.CreateAsync();

            // Initialize request argument(s)
            BillingAccountName parent = BillingAccountName.FromBillingAccount("[BILLING_ACCOUNT]");
            Budget             budget = new Budget();
            // Make the request
            Budget response = await budgetServiceClient.CreateBudgetAsync(parent, budget);

            // End snippet
        }
コード例 #6
0
        /// <summary>Snippet for CreateBudgetAsync</summary>
        public async Task CreateBudgetRequestObjectAsync()
        {
            // Snippet: CreateBudgetAsync(CreateBudgetRequest, CallSettings)
            // Additional: CreateBudgetAsync(CreateBudgetRequest, CancellationToken)
            // Create client
            BudgetServiceClient budgetServiceClient = await BudgetServiceClient.CreateAsync();

            // Initialize request argument(s)
            CreateBudgetRequest request = new CreateBudgetRequest
            {
                ParentAsBillingAccountName = BillingAccountName.FromBillingAccount("[BILLING_ACCOUNT]"),
                Budget = new Budget(),
            };
            // Make the request
            Budget response = await budgetServiceClient.CreateBudgetAsync(request);

            // End snippet
        }