/// <summary> /// Will update the status of policy's signature overrides for IDPS /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='parameters'> /// Will contain all properties of the object to put /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='firewallPolicyName'> /// The name of the Firewall Policy. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <SignaturesOverrides> PatchAsync(this IFirewallPolicyIdpsSignaturesOverridesOperations operations, SignaturesOverrides parameters, string resourceGroupName, string firewallPolicyName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.PatchWithHttpMessagesAsync(parameters, resourceGroupName, firewallPolicyName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Will override/create a new signature overrides for the policy's IDPS /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='parameters'> /// Will contain all properties of the object to put /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='firewallPolicyName'> /// The name of the Firewall Policy. /// </param> public static SignaturesOverrides Put(this IFirewallPolicyIdpsSignaturesOverridesOperations operations, SignaturesOverrides parameters, string resourceGroupName, string firewallPolicyName) { return(operations.PutAsync(parameters, resourceGroupName, firewallPolicyName).GetAwaiter().GetResult()); }