/// <summary>
 /// Cancels a failed deletion of a Certificate from the specified Account.
 /// </summary>
 /// <remarks>
 /// If you try to delete a Certificate that is being used by a Pool or Compute
 /// Node, the status of the Certificate changes to deleteFailed. If you decide
 /// that you want to continue using the Certificate, you can use this operation
 /// to set the status of the Certificate back to active. If you intend to
 /// delete the Certificate, you do not need to run this operation after the
 /// deletion failed. You must make sure that the Certificate is not being used
 /// by any resources, and then you can try again to delete the Certificate.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='thumbprintAlgorithm'>
 /// The algorithm used to derive the thumbprint parameter. This must be sha1.
 /// </param>
 /// <param name='thumbprint'>
 /// The thumbprint of the Certificate being deleted.
 /// </param>
 /// <param name='certificateCancelDeletionOptions'>
 /// Additional parameters for the operation
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <CertificateCancelDeletionHeaders> CancelDeletionAsync(this ICertificateOperations operations, string thumbprintAlgorithm, string thumbprint, CertificateCancelDeletionOptions certificateCancelDeletionOptions = default(CertificateCancelDeletionOptions), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.CancelDeletionWithHttpMessagesAsync(thumbprintAlgorithm, thumbprint, certificateCancelDeletionOptions, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Headers);
     }
 }
 /// <summary>
 /// Cancels a failed deletion of a Certificate from the specified Account.
 /// </summary>
 /// <remarks>
 /// If you try to delete a Certificate that is being used by a Pool or Compute
 /// Node, the status of the Certificate changes to deleteFailed. If you decide
 /// that you want to continue using the Certificate, you can use this operation
 /// to set the status of the Certificate back to active. If you intend to
 /// delete the Certificate, you do not need to run this operation after the
 /// deletion failed. You must make sure that the Certificate is not being used
 /// by any resources, and then you can try again to delete the Certificate.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='thumbprintAlgorithm'>
 /// The algorithm used to derive the thumbprint parameter. This must be sha1.
 /// </param>
 /// <param name='thumbprint'>
 /// The thumbprint of the Certificate being deleted.
 /// </param>
 /// <param name='certificateCancelDeletionOptions'>
 /// Additional parameters for the operation
 /// </param>
 public static CertificateCancelDeletionHeaders CancelDeletion(this ICertificateOperations operations, string thumbprintAlgorithm, string thumbprint, CertificateCancelDeletionOptions certificateCancelDeletionOptions = default(CertificateCancelDeletionOptions))
 {
     return(operations.CancelDeletionAsync(thumbprintAlgorithm, thumbprint, certificateCancelDeletionOptions).GetAwaiter().GetResult());
 }
 public virtual Response CancelDeletion(string thumbprintAlgorithm, string thumbprint, CertificateCancelDeletionOptions certificateCancelDeletionOptions, CancellationToken cancellationToken = default)
 {
     return(RestClient.CancelDeletion(thumbprintAlgorithm, thumbprint, certificateCancelDeletionOptions, cancellationToken).GetRawResponse());
 }
 /// <summary>
 /// Cancels a failed deletion of a certificate from the specified account.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='thumbprintAlgorithm'>
 /// The algorithm used to derive the thumbprint parameter. This must be sha1.
 /// </param>
 /// <param name='thumbprint'>
 /// The thumbprint of the certificate being deleted.
 /// </param>
 /// <param name='certificateCancelDeletionOptions'>
 /// Additional parameters for the operation
 /// </param>
 public static CertificateCancelDeletionHeaders CancelDeletion(this ICertificateOperations operations, string thumbprintAlgorithm, string thumbprint, CertificateCancelDeletionOptions certificateCancelDeletionOptions = default(CertificateCancelDeletionOptions))
 {
     return(System.Threading.Tasks.Task.Factory.StartNew(s => ((ICertificateOperations)s).CancelDeletionAsync(thumbprintAlgorithm, thumbprint, certificateCancelDeletionOptions), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
 public virtual async Task <Response> CancelDeletionAsync(string thumbprintAlgorithm, string thumbprint, CertificateCancelDeletionOptions certificateCancelDeletionOptions, CancellationToken cancellationToken = default)
 {
     return((await RestClient.CancelDeletionAsync(thumbprintAlgorithm, thumbprint, certificateCancelDeletionOptions, cancellationToken).ConfigureAwait(false)).GetRawResponse());
 }