示例#1
0
 /// <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>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <CertificateInner> BeginCreateAsync(this ICertificateOperations operations, string resourceGroupName, string accountName, string certificateName, CertificateCreateOrUpdateParametersInner parameters, string ifMatch = default(string), string ifNoneMatch = default(string), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.BeginCreateWithHttpMessagesAsync(resourceGroupName, accountName, certificateName, parameters, ifMatch, ifNoneMatch, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }