예제 #1
0
 /// <summary>
 /// Create a certificate.  (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='parameters'>
 /// Required. The parameters supplied to the create certificate
 /// operation.
 /// </param>
 /// <returns>
 /// The response model for the create certificate operation.
 /// </returns>
 public static Task <CertificateCreateResponse> CreateAsync(this ICertificateOperations operations, string automationAccount, CertificateCreateParameters parameters)
 {
     return(operations.CreateAsync(automationAccount, parameters, CancellationToken.None));
 }
 /// <summary>
 /// Creates a new certificate inside the specified account.
 /// </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>
 /// <param name='parameters'>
 /// Additional parameters for certificate creation.
 /// </param>
 /// <param name='ifMatch'>
 /// The entity state (ETag) version of the certificate to update. A value of
 /// "*" can be used to apply the operation only if the certificate already
 /// exists. If omitted, this operation will always be applied.
 /// </param>
 /// <param name='ifNoneMatch'>
 /// Set to '*' to allow a new certificate to be created, but to prevent
 /// updating an existing certificate. Other values will be ignored.
 /// </param>
 public static Certificate Create(this ICertificateOperations operations, string resourceGroupName, string accountName, string certificateName, CertificateCreateOrUpdateParameters parameters, string ifMatch = default(string), string ifNoneMatch = default(string))
 {
     return(operations.CreateAsync(resourceGroupName, accountName, certificateName, parameters, ifMatch, ifNoneMatch).GetAwaiter().GetResult());
 }