/// <summary>
 /// Creates a new delivery rule within the specified rule set.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Name of the Resource group within the Azure subscription.
 /// </param>
 /// <param name='profileName'>
 /// Name of the CDN profile which is unique within the resource group.
 /// </param>
 /// <param name='ruleSetName'>
 /// Name of the rule set under the profile.
 /// </param>
 /// <param name='ruleName'>
 /// Name of the delivery rule which is unique within the endpoint.
 /// </param>
 /// <param name='rule'>
 /// The delivery rule properties.
 /// </param>
 public static Rule Create(this IRulesOperations operations, string resourceGroupName, string profileName, string ruleSetName, string ruleName, Rule rule)
 {
     return(operations.CreateAsync(resourceGroupName, profileName, ruleSetName, ruleName, rule).GetAwaiter().GetResult());
 }