/// <summary>
 /// Deletes a Certificate from the specified Account.
 /// </summary>
 /// <remarks>
 /// You cannot delete a Certificate if a resource (Pool or Compute Node) is
 /// using it. Before you can delete a Certificate, you must therefore make sure
 /// that the Certificate is not associated with any existing Pools, the
 /// Certificate is not installed on any Nodes (even if you remove a Certificate
 /// from a Pool, it is not removed from existing Compute Nodes in that Pool
 /// until they restart), and no running Tasks depend on the Certificate. If you
 /// try to delete a Certificate that is in use, the deletion fails. The
 /// Certificate status changes to deleteFailed. You can use Cancel Delete
 /// Certificate to set the status back to active if you decide that you want to
 /// continue using 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 to be deleted.
 /// </param>
 /// <param name='certificateDeleteOptions'>
 /// Additional parameters for the operation
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <CertificateDeleteHeaders> DeleteAsync(this ICertificateOperations operations, string thumbprintAlgorithm, string thumbprint, CertificateDeleteOptions certificateDeleteOptions = default(CertificateDeleteOptions), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.DeleteWithHttpMessagesAsync(thumbprintAlgorithm, thumbprint, certificateDeleteOptions, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Headers);
     }
 }
 /// <summary>
 /// Deletes a Certificate from the specified Account.
 /// </summary>
 /// <remarks>
 /// You cannot delete a Certificate if a resource (Pool or Compute Node) is
 /// using it. Before you can delete a Certificate, you must therefore make sure
 /// that the Certificate is not associated with any existing Pools, the
 /// Certificate is not installed on any Nodes (even if you remove a Certificate
 /// from a Pool, it is not removed from existing Compute Nodes in that Pool
 /// until they restart), and no running Tasks depend on the Certificate. If you
 /// try to delete a Certificate that is in use, the deletion fails. The
 /// Certificate status changes to deleteFailed. You can use Cancel Delete
 /// Certificate to set the status back to active if you decide that you want to
 /// continue using 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 to be deleted.
 /// </param>
 /// <param name='certificateDeleteOptions'>
 /// Additional parameters for the operation
 /// </param>
 public static CertificateDeleteHeaders Delete(this ICertificateOperations operations, string thumbprintAlgorithm, string thumbprint, CertificateDeleteOptions certificateDeleteOptions = default(CertificateDeleteOptions))
 {
     return(operations.DeleteAsync(thumbprintAlgorithm, thumbprint, certificateDeleteOptions).GetAwaiter().GetResult());
 }
 public virtual Response Delete(string thumbprintAlgorithm, string thumbprint, CertificateDeleteOptions certificateDeleteOptions, CancellationToken cancellationToken = default)
 {
     return(RestClient.Delete(thumbprintAlgorithm, thumbprint, certificateDeleteOptions, cancellationToken).GetRawResponse());
 }
 /// <summary>
 /// Deletes 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 to be deleted.
 /// </param>
 /// <param name='certificateDeleteOptions'>
 /// Additional parameters for the operation
 /// </param>
 public static CertificateDeleteHeaders Delete(this ICertificateOperations operations, string thumbprintAlgorithm, string thumbprint, CertificateDeleteOptions certificateDeleteOptions = default(CertificateDeleteOptions))
 {
     return(System.Threading.Tasks.Task.Factory.StartNew(s => ((ICertificateOperations)s).DeleteAsync(thumbprintAlgorithm, thumbprint, certificateDeleteOptions), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
 public virtual async Task <Response> DeleteAsync(string thumbprintAlgorithm, string thumbprint, CertificateDeleteOptions certificateDeleteOptions, CancellationToken cancellationToken = default)
 {
     return((await RestClient.DeleteAsync(thumbprintAlgorithm, thumbprint, certificateDeleteOptions, cancellationToken).ConfigureAwait(false)).GetRawResponse());
 }