/// <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> public static Rule Get(this IRulesOperations operations, string resourceGroupName, string profileName, string ruleSetName, string ruleName) { return(operations.GetAsync(resourceGroupName, profileName, ruleSetName, ruleName).GetAwaiter().GetResult()); }
/// <summary> /// Retrieves the description for the specified rule. /// </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='namespaceName'> /// The namespace name /// </param> /// <param name='topicName'> /// The topic name. /// </param> /// <param name='subscriptionName'> /// The subscription name. /// </param> /// <param name='ruleName'> /// The rule name. /// </param> public static Rule Get(this IRulesOperations operations, string resourceGroupName, string namespaceName, string topicName, string subscriptionName, string ruleName) { return(operations.GetAsync(resourceGroupName, namespaceName, topicName, subscriptionName, ruleName).GetAwaiter().GetResult()); }