/// <summary>
 /// Updates an existing delivery rule within a 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='ruleUpdateProperties'>
 /// Delivery rule properties
 /// </param>
 public static Rule BeginUpdate(this IRulesOperations operations, string resourceGroupName, string profileName, string ruleSetName, string ruleName, RuleUpdateParameters ruleUpdateProperties)
 {
     return(operations.BeginUpdateAsync(resourceGroupName, profileName, ruleSetName, ruleName, ruleUpdateProperties).GetAwaiter().GetResult());
 }