Ejemplo n.º 1
0
 /// <summary>
 /// Retrieve protection policy with specified name within a resource group.
 /// </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='policyName'>
 /// The name of the Web Application Firewall Policy.
 /// </param>
 public static WebApplicationFirewallPolicy Get(this IPoliciesOperations operations, string resourceGroupName, string policyName)
 {
     return(operations.GetAsync(resourceGroupName, policyName).GetAwaiter().GetResult());
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Get policy.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='labName'>
 /// The name of the lab.
 /// </param>
 /// <param name='policySetName'>
 /// The name of the policy set.
 /// </param>
 /// <param name='name'>
 /// The name of the policy.
 /// </param>
 /// <param name='expand'>
 /// Specify the $expand query. Example: 'properties($select=description)'
 /// </param>
 public static Policy Get(this IPoliciesOperations operations, string resourceGroupName, string labName, string policySetName, string name, string expand = default(string))
 {
     return(operations.GetAsync(resourceGroupName, labName, policySetName, name, expand).GetAwaiter().GetResult());
 }