Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/SDKs/FrontDoor/AzSdk.RP.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!--This file and it's contents are updated at build time moving or editing might result in build failure. Take due deligence while editing this file-->
<PropertyGroup>
<AzureApiTag>Network_2018-08-01;</AzureApiTag>
<AzureApiTag>Network_2018-08-01;Network_2019-03-01;</AzureApiTag>
<PackageTags>$(PackageTags);$(CommonTags);$(AzureApiTag);</PackageTags>
</PropertyGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,11 @@ public partial class FrontDoorManagementClient : ServiceClient<FrontDoorManageme
/// </summary>
public virtual IPoliciesOperations Policies { get; private set; }

/// <summary>
/// Gets the IManagedRuleSetsOperations.
/// </summary>
public virtual IManagedRuleSetsOperations ManagedRuleSets { get; private set; }

/// <summary>
/// Initializes a new instance of the FrontDoorManagementClient class.
/// </summary>
Expand Down Expand Up @@ -362,6 +367,7 @@ private void Initialize()
FrontendEndpoints = new FrontendEndpointsOperations(this);
Endpoints = new EndpointsOperations(this);
Policies = new PoliciesOperations(this);
ManagedRuleSets = new ManagedRuleSetsOperations(this);
BaseUri = new System.Uri("https://management.azure.com");
AcceptLanguage = "en-US";
LongRunningOperationRetryTimeout = 30;
Expand Down Expand Up @@ -392,8 +398,6 @@ private void Initialize()
new Iso8601TimeSpanConverter()
}
};
SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter<ManagedRuleSet>("ruleSetType"));
DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter<ManagedRuleSet>("ruleSetType"));
CustomInitialize();
DeserializationSettings.Converters.Add(new TransformationJsonConverter());
DeserializationSettings.Converters.Add(new CloudErrorJsonConverter());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,11 @@ public partial interface IFrontDoorManagementClient : System.IDisposable
/// </summary>
IPoliciesOperations Policies { get; }

/// <summary>
/// Gets the IManagedRuleSetsOperations.
/// </summary>
IManagedRuleSetsOperations ManagedRuleSets { get; }

/// <summary>
/// Check the availability of a Front Door resource name.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
// <auto-generated>
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// </auto-generated>

namespace Microsoft.Azure.Management.FrontDoor
{
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
using System.Collections;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;

/// <summary>
/// ManagedRuleSetsOperations operations.
/// </summary>
public partial interface IManagedRuleSetsOperations
{
/// <summary>
/// Lists all available managed rule sets.
/// </summary>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="ErrorResponseException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<IPage<ManagedRuleSetDefinition>>> ListWithHttpMessagesAsync(Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Lists all available managed rule sets.
/// </summary>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="ErrorResponseException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<IPage<ManagedRuleSetDefinition>>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public partial interface IPoliciesOperations
/// Lists all of the protection policies within a resource group.
/// </summary>
/// <param name='resourceGroupName'>
/// The name of the resource group.
/// Name of the Resource group within the Azure subscription.
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
Expand All @@ -44,16 +44,16 @@ public partial interface IPoliciesOperations
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<IPage<WebApplicationFirewallPolicy1>>> ListWithHttpMessagesAsync(string resourceGroupName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
Task<AzureOperationResponse<IPage<WebApplicationFirewallPolicy>>> ListWithHttpMessagesAsync(string resourceGroupName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Retrieve protection policy with specified name within a resource
/// group.
/// </summary>
/// <param name='resourceGroupName'>
/// The name of the resource group.
/// Name of the Resource group within the Azure subscription.
/// </param>
/// <param name='policyName'>
/// The name of the resource group.
/// The name of the Web Application Firewall Policy.
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
Expand All @@ -70,16 +70,16 @@ public partial interface IPoliciesOperations
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<WebApplicationFirewallPolicy1>> GetWithHttpMessagesAsync(string resourceGroupName, string policyName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
Task<AzureOperationResponse<WebApplicationFirewallPolicy>> GetWithHttpMessagesAsync(string resourceGroupName, string policyName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Creates or update policy with specified rule set name within a
/// Create or update policy with specified ruleset name within a
/// resource group.
/// </summary>
/// <param name='resourceGroupName'>
/// The name of the resource group.
/// Name of the Resource group within the Azure subscription.
/// </param>
/// <param name='policyName'>
/// The name of the resource group.
/// The name of the Web Application Firewall Policy.
/// </param>
/// <param name='parameters'>
/// Policy to be created.
Expand All @@ -99,15 +99,15 @@ public partial interface IPoliciesOperations
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<WebApplicationFirewallPolicy1>> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string policyName, WebApplicationFirewallPolicy1 parameters, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
Task<AzureOperationResponse<WebApplicationFirewallPolicy>> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string policyName, WebApplicationFirewallPolicy parameters, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Deletes Policy
/// </summary>
/// <param name='resourceGroupName'>
/// The name of the resource group.
/// Name of the Resource group within the Azure subscription.
/// </param>
/// <param name='policyName'>
/// The name of the resource group.
/// The name of the Web Application Firewall Policy.
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
Expand All @@ -123,13 +123,42 @@ public partial interface IPoliciesOperations
/// </exception>
Task<AzureOperationResponse> DeleteWithHttpMessagesAsync(string resourceGroupName, string policyName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Create or update policy with specified ruleset name within a
/// resource group.
/// </summary>
/// <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>
/// <param name='parameters'>
/// Policy to be created.
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="ErrorResponseException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<WebApplicationFirewallPolicy>> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string policyName, WebApplicationFirewallPolicy parameters, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Deletes Policy
/// </summary>
/// <param name='resourceGroupName'>
/// The name of the resource group.
/// Name of the Resource group within the Azure subscription.
/// </param>
/// <param name='policyName'>
/// The name of the resource group.
/// The name of the Web Application Firewall Policy.
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
Expand Down Expand Up @@ -165,6 +194,6 @@ public partial interface IPoliciesOperations
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<IPage<WebApplicationFirewallPolicy1>>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
Task<AzureOperationResponse<IPage<WebApplicationFirewallPolicy>>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
}
}
Loading