/// <summary>
 /// Gets information about the specified Certificate.
 /// </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 get.
 /// </param>
 /// <param name='certificateGetOptions'>
 /// Additional parameters for the operation
 /// </param>
 public static Certificate Get(this ICertificateOperations operations, string thumbprintAlgorithm, string thumbprint, CertificateGetOptions certificateGetOptions = default(CertificateGetOptions))
 {
     return(operations.GetAsync(thumbprintAlgorithm, thumbprint, certificateGetOptions).GetAwaiter().GetResult());
 }
Example #2
0
 /// <summary>
 /// Gets the details of the certificate specified by its identifier.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='serviceName'>
 /// The name of the API Management service.
 /// </param>
 /// <param name='certificateId'>
 /// Identifier of the certificate entity. Must be unique in the current API
 /// Management service instance.
 /// </param>
 public static CertificateContract Get(this ICertificateOperations operations, string resourceGroupName, string serviceName, string certificateId)
 {
     return(operations.GetAsync(resourceGroupName, serviceName, certificateId).GetAwaiter().GetResult());
 }
Example #3
0
 /// <summary>
 /// Retrieve the certificate identified by certificate name.  (see
 /// http://aka.ms/azureautomationsdk/certificateoperations for more
 /// information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.Automation.ICertificateOperations.
 /// </param>
 /// <param name='automationAccount'>
 /// Required. The automation account name.
 /// </param>
 /// <param name='certificateName'>
 /// Required. The name of certificate.
 /// </param>
 /// <returns>
 /// The response model for the get certificate operation.
 /// </returns>
 public static Task <CertificateGetResponse> GetAsync(this ICertificateOperations operations, string automationAccount, string certificateName)
 {
     return(operations.GetAsync(automationAccount, certificateName, CancellationToken.None));
 }
 /// <summary>
 /// Gets information about the specified certificate.
 /// </summary>
 /// <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 Get(this ICertificateOperations operations, string resourceGroupName, string accountName, string certificateName)
 {
     return(operations.GetAsync(resourceGroupName, accountName, certificateName).GetAwaiter().GetResult());
 }