/// <summary>Snippet for AllocateQuotaAsync</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 AllocateQuotaRequestObjectAsync()
        {
            // Create client
            QuotaControllerClient quotaControllerClient = await QuotaControllerClient.CreateAsync();

            // Initialize request argument(s)
            AllocateQuotaRequest request = new AllocateQuotaRequest
            {
                ServiceName       = "",
                AllocateOperation = new QuotaOperation(),
                ServiceConfigId   = "",
            };
            // Make the request
            AllocateQuotaResponse response = await quotaControllerClient.AllocateQuotaAsync(request);
        }
Exemple #2
0
        /// <summary>Snippet for AllocateQuotaAsync</summary>
        public async Task AllocateQuotaRequestObjectAsync()
        {
            // Snippet: AllocateQuotaAsync(AllocateQuotaRequest, CallSettings)
            // Additional: AllocateQuotaAsync(AllocateQuotaRequest, CancellationToken)
            // Create client
            QuotaControllerClient quotaControllerClient = await QuotaControllerClient.CreateAsync();

            // Initialize request argument(s)
            AllocateQuotaRequest request = new AllocateQuotaRequest
            {
                ServiceName       = "",
                AllocateOperation = new QuotaOperation(),
                ServiceConfigId   = "",
            };
            // Make the request
            AllocateQuotaResponse response = await quotaControllerClient.AllocateQuotaAsync(request);

            // End snippet
        }