示例#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>
 public static Certificate BeginCreate(this ICertificateOperations operations, string resourceGroupName, string accountName, string certificateName, CertificateCreateOrUpdateParameters parameters, string ifMatch = default(string), string ifNoneMatch = default(string))
 {
     return(operations.BeginCreateAsync(resourceGroupName, accountName, certificateName, parameters, ifMatch, ifNoneMatch).GetAwaiter().GetResult());
 }