Exemple #1
0
 /// <summary>Snippet for AllocateQuota</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void AllocateQuotaRequestObject()
 {
     // Create client
     QuotaControllerClient quotaControllerClient = QuotaControllerClient.Create();
     // Initialize request argument(s)
     AllocateQuotaRequest request = new AllocateQuotaRequest
     {
         ServiceName       = "",
         AllocateOperation = new QuotaOperation(),
         ServiceConfigId   = "",
     };
     // Make the request
     AllocateQuotaResponse response = quotaControllerClient.AllocateQuota(request);
 }
        /// <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 #3
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
        }