/// <summary> /// Modify properties of policies. /// </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='policy'> /// A Policy. /// </param> public static Policy Update(this IPoliciesOperations operations, string resourceGroupName, string labName, string policySetName, string name, PolicyFragment policy) { return(operations.UpdateAsync(resourceGroupName, labName, policySetName, name, policy).GetAwaiter().GetResult()); }
/// <summary> /// The operation to update a policy. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='billingAccountName'> /// billing Account Id. /// </param> /// <param name='billingProfileName'> /// Billing Profile Id. /// </param> /// <param name='parameters'> /// Parameters supplied to the update policy operation. /// </param> public static Policy Update(this IPoliciesOperations operations, string billingAccountName, string billingProfileName, Policy parameters) { return(operations.UpdateAsync(billingAccountName, billingProfileName, parameters).GetAwaiter().GetResult()); }
/// <summary> /// Update an existing CdnWebApplicationFirewallPolicy with the specified /// policy name under the specified subscription and 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 CdnWebApplicationFirewallPolicy. /// </param> /// <param name='tags'> /// CdnWebApplicationFirewallPolicy tags /// </param> public static CdnWebApplicationFirewallPolicy Update(this IPoliciesOperations operations, string resourceGroupName, string policyName, IDictionary <string, string> tags = default(IDictionary <string, string>)) { return(operations.UpdateAsync(resourceGroupName, policyName, tags).GetAwaiter().GetResult()); }