/// <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());
 }
 /// <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>
 public static Certificate CancelDeletion(this ICertificateOperations operations, string resourceGroupName, string accountName, string certificateName)
 {
     return(operations.CancelDeletionAsync(resourceGroupName, accountName, certificateName).GetAwaiter().GetResult());
 }