/// <summary>Snippet for GetBillingAccountAsync</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 GetBillingAccountResourceNamesAsync()
        {
            // Create client
            CloudBillingClient cloudBillingClient = await CloudBillingClient.CreateAsync();

            // Initialize request argument(s)
            BillingAccountName name = BillingAccountName.FromBillingAccount("[BILLING_ACCOUNT]");
            // Make the request
            BillingAccount response = await cloudBillingClient.GetBillingAccountAsync(name);
        }
        /// <summary>Snippet for GetBillingAccountAsync</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 GetBillingAccountAsync()
        {
            // Create client
            CloudBillingClient cloudBillingClient = await CloudBillingClient.CreateAsync();

            // Initialize request argument(s)
            string name = "billingAccounts/[BILLING_ACCOUNT]";
            // Make the request
            BillingAccount response = await cloudBillingClient.GetBillingAccountAsync(name);
        }
Пример #3
0
        /// <summary>Snippet for GetBillingAccountAsync</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 GetBillingAccountRequestObjectAsync()
        {
            // Create client
            CloudBillingClient cloudBillingClient = await CloudBillingClient.CreateAsync();

            // Initialize request argument(s)
            GetBillingAccountRequest request = new GetBillingAccountRequest
            {
                BillingAccountName = BillingAccountName.FromBillingAccount("[BILLING_ACCOUNT]"),
            };
            // Make the request
            BillingAccount response = await cloudBillingClient.GetBillingAccountAsync(request);
        }