/// <summary>
 /// Long running post request, service returns a 500, then a 202 to the initial
 /// request, with an entity that contains ProvisioningState=’Creating’. Poll
 /// the endpoint indicated in the Azure-AsyncOperation header for operation
 /// status
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='product'>
 /// Product to put
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <LRORetrysPostAsyncRelativeRetrySucceededHeadersInner> BeginPostAsyncRelativeRetrySucceededAsync(this ILRORetrysOperations operations, ProductInner product = default(ProductInner), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.BeginPostAsyncRelativeRetrySucceededWithHttpMessagesAsync(product, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Headers);
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Long running post request, service returns a 500, then a 202 to the initial
 /// request, with 'Location' and 'Retry-After' headers, Polls return a 200 with
 /// a response body after success
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='product'>
 /// Product to put
 /// </param>
 public static LRORetrysPost202Retry200Headers Post202Retry200(this ILRORetrysOperations operations, Product product = default(Product))
 {
     return(System.Threading.Tasks.Task.Factory.StartNew(s => ((ILRORetrysOperations)s).Post202Retry200Async(product), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Long running put request, service returns a 500, then a 201 to the initial
 /// request, with an entity that contains ProvisioningState=’Creating’.  Polls
 /// return this value until the last poll returns a ‘200’ with
 /// ProvisioningState=’Succeeded’
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='product'>
 /// Product to put
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async System.Threading.Tasks.Task <Product> BeginPut201CreatingSucceeded200Async(this ILRORetrysOperations operations, Product product = default(Product), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
 {
     using (var _result = await operations.BeginPut201CreatingSucceeded200WithHttpMessagesAsync(product, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Long running delete request, service returns a 500, then a  202 to the
 /// initial request, with an entity that contains ProvisioningState=’Accepted’.
 /// Polls return this value until the last poll returns a ‘200’ with
 /// ProvisioningState=’Succeeded’
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 public static Product DeleteProvisioning202Accepted200Succeeded(this ILRORetrysOperations operations)
 {
     return(System.Threading.Tasks.Task.Factory.StartNew(s => ((ILRORetrysOperations)s).DeleteProvisioning202Accepted200SucceededAsync(), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Long running delete request, service returns a 500, then a 202 to the
 /// initial request. Polls return this value until the last poll returns a
 /// ‘200’ with ProvisioningState=’Succeeded’
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async System.Threading.Tasks.Task <LRORetrysDelete202Retry200Headers> Delete202Retry200Async(this ILRORetrysOperations operations, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
 {
     using (var _result = await operations.Delete202Retry200WithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Headers);
     }
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Long running post request, service returns a 500, then a 202 to the initial
 /// request, with 'Location' and 'Retry-After' headers, Polls return a 200 with
 /// a response body after success
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='product'>
 /// Product to put
 /// </param>
 public static LRORetrysPost202Retry200Headers BeginPost202Retry200(this ILRORetrysOperations operations, Product product = default(Product))
 {
     return(operations.BeginPost202Retry200Async(product).GetAwaiter().GetResult());
 }
Ejemplo n.º 7
0
 /// <summary>
 /// Long running post request, service returns a 500, then a 202 to the initial
 /// request, with an entity that contains ProvisioningState=’Creating’. Poll
 /// the endpoint indicated in the Azure-AsyncOperation header for operation
 /// status
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='product'>
 /// Product to put
 /// </param>
 public static LRORetrysPostAsyncRelativeRetrySucceededHeaders BeginPostAsyncRelativeRetrySucceeded(this ILRORetrysOperations operations, Product product = default(Product))
 {
     return(operations.BeginPostAsyncRelativeRetrySucceededAsync(product).GetAwaiter().GetResult());
 }
Ejemplo n.º 8
0
 /// <summary>
 /// Long running post request, service returns a 500, then a 202 to the
 /// initial request, with 'Location' and 'Retry-After' headers, Polls return
 /// a 200 with a response body after success
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='product'>
 /// Product to put
 /// </param>
 public static void Post202Retry200(this ILRORetrysOperations operations, Product product = default(Product))
 {
     Task.Factory.StartNew(s => ((ILRORetrysOperations)s).Post202Retry200Async(product), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
 }
Ejemplo n.º 9
0
 /// <summary>
 /// Long running post request, service returns a 500, then a 202 to the
 /// initial request, with 'Location' and 'Retry-After' headers, Polls return
 /// a 200 with a response body after success
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='product'>
 /// Product to put
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task Post202Retry200Async(this ILRORetrysOperations operations, Product product = default(Product), CancellationToken cancellationToken = default(CancellationToken))
 {
     await operations.Post202Retry200WithHttpMessagesAsync(product, null, cancellationToken).ConfigureAwait(false);
 }
Ejemplo n.º 10
0
 /// <summary>
 /// Long running delete request, service returns a 500, then a 202 to the
 /// initial request. Poll the endpoint indicated in the Azure-AsyncOperation
 /// header for operation status
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 public static void DeleteAsyncRelativeRetrySucceeded(this ILRORetrysOperations operations)
 {
     Task.Factory.StartNew(s => ((ILRORetrysOperations)s).DeleteAsyncRelativeRetrySucceededAsync(), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
 }
Ejemplo n.º 11
0
 /// <summary>
 /// Long running delete request, service returns a 500, then a 202 to the
 /// initial request. Poll the endpoint indicated in the Azure-AsyncOperation
 /// header for operation status
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task DeleteAsyncRelativeRetrySucceededAsync(this ILRORetrysOperations operations, CancellationToken cancellationToken = default(CancellationToken))
 {
     await operations.DeleteAsyncRelativeRetrySucceededWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false);
 }
Ejemplo n.º 12
0
 /// <summary>
 /// Long running delete request, service returns a 500, then a 202 to the
 /// initial request. Polls return this value until the last poll returns a
 /// ‘200’ with ProvisioningState=’Succeeded’
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task BeginDelete202Retry200Async(this ILRORetrysOperations operations, CancellationToken cancellationToken = default(CancellationToken))
 {
     await operations.BeginDelete202Retry200WithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false);
 }
Ejemplo n.º 13
0
 /// <summary>
 /// Long running delete request, service returns a 500, then a 202 to the
 /// initial request. Polls return this value until the last poll returns a
 /// ‘200’ with ProvisioningState=’Succeeded’
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 public static void BeginDelete202Retry200(this ILRORetrysOperations operations)
 {
     Task.Factory.StartNew(s => ((ILRORetrysOperations)s).BeginDelete202Retry200Async(), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
 }
Ejemplo n.º 14
0
        /// <summary>
        /// Long running delete request, service returns a 500, then a  202 to the
        /// initial request, with an entity that contains
        /// ProvisioningState=’Accepted’.  Polls return this value until the last
        /// poll returns a ‘200’ with ProvisioningState=’Succeeded’
        /// </summary>
        /// <param name='operations'>
        /// The operations group for this extension method.
        /// </param>
        /// <param name='cancellationToken'>
        /// The cancellation token.
        /// </param>
        public static async Task <Product> BeginDeleteProvisioning202Accepted200SucceededAsync(this ILRORetrysOperations operations, CancellationToken cancellationToken = default(CancellationToken))
        {
            AzureOperationResponse <Product> result = await operations.BeginDeleteProvisioning202Accepted200SucceededWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false);

            return(result.Body);
        }
Ejemplo n.º 15
0
 /// <summary>
 /// Long running delete request, service returns a 500, then a 202 to the
 /// initial request. Poll the endpoint indicated in the Azure-AsyncOperation
 /// header for operation status
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 public static LRORetrysDeleteAsyncRelativeRetrySucceededHeaders BeginDeleteAsyncRelativeRetrySucceeded(this ILRORetrysOperations operations)
 {
     return(operations.BeginDeleteAsyncRelativeRetrySucceededAsync().GetAwaiter().GetResult());
 }
Ejemplo n.º 16
0
 /// <summary>
 /// Long running post request, service returns a 500, then a 202 to the
 /// initial request, with an entity that contains
 /// ProvisioningState=’Creating’. Poll the endpoint indicated in the
 /// Azure-AsyncOperation header for operation status
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='product'>
 /// Product to put
 /// </param>
 public static void BeginPostAsyncRelativeRetrySucceeded(this ILRORetrysOperations operations, Product product = default(Product))
 {
     Task.Factory.StartNew(s => ((ILRORetrysOperations)s).BeginPostAsyncRelativeRetrySucceededAsync(product), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
 }
Ejemplo n.º 17
0
 /// <summary>
 /// Long running delete request, service returns a 500, then a 202 to the
 /// initial request. Poll the endpoint indicated in the Azure-AsyncOperation
 /// header for operation status
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <LRORetrysDeleteAsyncRelativeRetrySucceededHeaders> BeginDeleteAsyncRelativeRetrySucceededAsync(this ILRORetrysOperations operations, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.BeginDeleteAsyncRelativeRetrySucceededWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Headers);
     }
 }
Ejemplo n.º 18
0
 /// <summary>
 /// Long running post request, service returns a 500, then a 202 to the
 /// initial request, with an entity that contains
 /// ProvisioningState=’Creating’. Poll the endpoint indicated in the
 /// Azure-AsyncOperation header for operation status
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='product'>
 /// Product to put
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task BeginPostAsyncRelativeRetrySucceededAsync(this ILRORetrysOperations operations, Product product = default(Product), CancellationToken cancellationToken = default(CancellationToken))
 {
     await operations.BeginPostAsyncRelativeRetrySucceededWithHttpMessagesAsync(product, null, cancellationToken).ConfigureAwait(false);
 }
Ejemplo n.º 19
0
 /// <summary>
 /// Long running post request, service returns a 500, then a 202 to the initial
 /// request, with 'Location' and 'Retry-After' headers, Polls return a 200 with
 /// a response body after success
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='product'>
 /// Product to put
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <LRORetrysPost202Retry200Headers> BeginPost202Retry200Async(this ILRORetrysOperations operations, Product product = default(Product), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.BeginPost202Retry200WithHttpMessagesAsync(product, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Headers);
     }
 }
Ejemplo n.º 20
0
 /// <summary>
 /// Long running put request, service returns a 500, then a 201 to the initial
 /// request, with an entity that contains ProvisioningState=’Creating’.
 /// Polls return this value until the last poll returns a ‘200’ with
 /// ProvisioningState=’Succeeded’
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='product'>
 /// Product to put
 /// </param>
 public static Product BeginPut201CreatingSucceeded200(this ILRORetrysOperations operations, Product product = default(Product))
 {
     return(Task.Factory.StartNew(s => ((ILRORetrysOperations)s).BeginPut201CreatingSucceeded200Async(product), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
Ejemplo n.º 21
0
 /// <summary>
 /// Long running put request, service returns a 500, then a 200 to the initial
 /// request, with an entity that contains ProvisioningState=’Creating’. Poll
 /// the endpoint indicated in the Azure-AsyncOperation header for operation
 /// status
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='product'>
 /// Product to put
 /// </param>
 public static Product PutAsyncRelativeRetrySucceeded(this ILRORetrysOperations operations, Product product = default(Product))
 {
     return(operations.PutAsyncRelativeRetrySucceededAsync(product).GetAwaiter().GetResult());
 }
Ejemplo n.º 22
0
        /// <summary>
        /// Long running put request, service returns a 500, then a 201 to the initial
        /// request, with an entity that contains ProvisioningState=’Creating’.
        /// Polls return this value until the last poll returns a ‘200’ with
        /// ProvisioningState=’Succeeded’
        /// </summary>
        /// <param name='operations'>
        /// The operations group for this extension method.
        /// </param>
        /// <param name='product'>
        /// Product to put
        /// </param>
        /// <param name='cancellationToken'>
        /// The cancellation token.
        /// </param>
        public static async Task <Product> BeginPut201CreatingSucceeded200Async(this ILRORetrysOperations operations, Product product = default(Product), CancellationToken cancellationToken = default(CancellationToken))
        {
            AzureOperationResponse <Product> result = await operations.BeginPut201CreatingSucceeded200WithHttpMessagesAsync(product, null, cancellationToken).ConfigureAwait(false);

            return(result.Body);
        }
Ejemplo n.º 23
0
 /// <summary>
 /// Long running delete request, service returns a 500, then a  202 to the
 /// initial request, with an entity that contains ProvisioningState=’Accepted’.
 /// Polls return this value until the last poll returns a ‘200’ with
 /// ProvisioningState=’Succeeded’
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async System.Threading.Tasks.Task <Product> DeleteProvisioning202Accepted200SucceededAsync(this ILRORetrysOperations operations, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
 {
     using (var _result = await operations.DeleteProvisioning202Accepted200SucceededWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Ejemplo n.º 24
0
 /// <summary>
 /// Long running put request, service returns a 500, then a 201 to the initial
 /// request, with an entity that contains ProvisioningState=’Creating’.  Polls
 /// return this value until the last poll returns a ‘200’ with
 /// ProvisioningState=’Succeeded’
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='product'>
 /// Product to put
 /// </param>
 public static Product Put201CreatingSucceeded200(this ILRORetrysOperations operations, Product product = default(Product))
 {
     return(operations.Put201CreatingSucceeded200Async(product).GetAwaiter().GetResult());
 }
Ejemplo n.º 25
0
 /// <summary>
 /// Long running delete request, service returns a 500, then a 202 to the
 /// initial request. Poll the endpoint indicated in the Azure-AsyncOperation
 /// header for operation status
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 public static LRORetrysDeleteAsyncRelativeRetrySucceededHeaders DeleteAsyncRelativeRetrySucceeded(this ILRORetrysOperations operations)
 {
     return(System.Threading.Tasks.Task.Factory.StartNew(s => ((ILRORetrysOperations)s).DeleteAsyncRelativeRetrySucceededAsync(), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
Ejemplo n.º 26
0
 /// <summary>
 /// Long running delete request, service returns a 500, then a  202 to the
 /// initial request, with an entity that contains ProvisioningState=’Accepted’.
 /// Polls return this value until the last poll returns a ‘200’ with
 /// ProvisioningState=’Succeeded’
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 public static Product BeginDeleteProvisioning202Accepted200Succeeded(this ILRORetrysOperations operations)
 {
     return(operations.BeginDeleteProvisioning202Accepted200SucceededAsync().GetAwaiter().GetResult());
 }
Ejemplo n.º 27
0
 /// <summary>
 /// Long running post request, service returns a 500, then a 202 to the initial
 /// request, with an entity that contains ProvisioningState=’Creating’. Poll
 /// the endpoint indicated in the Azure-AsyncOperation header for operation
 /// status
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='product'>
 /// Product to put
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async System.Threading.Tasks.Task <LRORetrysPostAsyncRelativeRetrySucceededHeaders> PostAsyncRelativeRetrySucceededAsync(this ILRORetrysOperations operations, Product product = default(Product), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
 {
     using (var _result = await operations.PostAsyncRelativeRetrySucceededWithHttpMessagesAsync(product, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Headers);
     }
 }
Ejemplo n.º 28
0
 /// <summary>
 /// Long running delete request, service returns a 500, then a 202 to the
 /// initial request. Polls return this value until the last poll returns a
 /// ‘200’ with ProvisioningState=’Succeeded’
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 public static LRORetrysDelete202Retry200Headers BeginDelete202Retry200(this ILRORetrysOperations operations)
 {
     return(operations.BeginDelete202Retry200Async().GetAwaiter().GetResult());
 }
Ejemplo n.º 29
0
 /// <summary>
 /// Long running put request, service returns a 500, then a 200 to the initial
 /// request, with an entity that contains ProvisioningState=’Creating’. Poll
 /// the endpoint indicated in the Azure-AsyncOperation header for operation
 /// status
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='product'>
 /// Product to put
 /// </param>
 public static Product BeginPutAsyncRelativeRetrySucceeded(this ILRORetrysOperations operations, Product product = default(Product))
 {
     return(System.Threading.Tasks.Task.Factory.StartNew(s => ((ILRORetrysOperations)s).BeginPutAsyncRelativeRetrySucceededAsync(product), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
 /// <summary>
 /// Long running delete request, service returns a 500, then a 202 to the
 /// initial request. Polls return this value until the last poll returns a
 /// ‘200’ with ProvisioningState=’Succeeded’
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <LRORetrysDelete202Retry200HeadersInner> BeginDelete202Retry200Async(this ILRORetrysOperations operations, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.BeginDelete202Retry200WithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Headers);
     }
 }