/// <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='resourceGroupName'>
 /// The name of the resource group that contains the Batch account.
 /// </param>
 /// <param name='accountName'>
 /// The name of the Batch account.
 /// </param>
 /// <param name='certificateName'>
 /// The identifier for the certificate. This must be made up of algorithm and
 /// thumbprint separated by a dash, and must match the certificate data in the
 /// request. For example SHA1-a3d1c5.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <Certificate> CancelDeletionAsync(this ICertificateOperations operations, string resourceGroupName, string accountName, string certificateName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.CancelDeletionWithHttpMessagesAsync(resourceGroupName, accountName, certificateName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }