/// <summary>
 /// Gets 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='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <Rule> GetAsync(this IRulesOperations operations, string resourceGroupName, string profileName, string ruleSetName, string ruleName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, profileName, ruleSetName, ruleName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }