Skip to content

Front Door add support for captcha #27395

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open
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
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.2, generator: @autorest/[email protected].703)
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/[email protected].734)
// Changes may cause incorrect behavior and will be lost if the code is regenerated.

namespace Microsoft.Azure.Management.FrontDoor
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.2, generator: @autorest/[email protected].703)
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/[email protected].734)
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
namespace Microsoft.Azure.Management.FrontDoor
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.2, generator: @autorest/[email protected].703)
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/[email protected].734)
// Changes may cause incorrect behavior and will be lost if the code is regenerated.

namespace Microsoft.Azure.Management.FrontDoor
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.2, generator: @autorest/[email protected].703)
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/[email protected].734)
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
namespace Microsoft.Azure.Management.FrontDoor
{
Expand Down
32 changes: 17 additions & 15 deletions src/FrontDoor/FrontDoor.Management.Sdk/Generated/FrontDoor.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.2, generator: @autorest/[email protected].703)
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/[email protected].734)
// Changes may cause incorrect behavior and will be lost if the code is regenerated.

namespace Microsoft.Azure.Management.FrontDoor
Expand All @@ -9,10 +9,9 @@ namespace Microsoft.Azure.Management.FrontDoor
using Models;

/// <summary>
/// The Microsoft Azure Network management API provides a RESTful set of web
/// services that interact with Microsoft Azure Networks service to manage your
/// network resources. The API has entities that capture the relationship
/// between an end user and the Microsoft Azure Networks service.
/// Use these APIs to manage Azure Front Door resources through the Azure
/// Resource Manager. You must make sure that requests made to these resources
/// are secure.
/// </summary>
public partial class FrontDoor : Microsoft.Rest.ServiceClient<FrontDoor>, IFrontDoor, IAzureClient
{
Expand Down Expand Up @@ -58,14 +57,6 @@ public partial class FrontDoor : Microsoft.Rest.ServiceClient<FrontDoor>, IFront
/// </summary>
public bool? GenerateClientRequestId { get; set;}

/// <summary>
/// Gets the IPoliciesOperations
/// </summary>
public virtual IPoliciesOperations Policies { get; private set; }
/// <summary>
/// Gets the IManagedRuleSetsOperations
/// </summary>
public virtual IManagedRuleSetsOperations ManagedRuleSets { get; private set; }
/// <summary>
/// Gets the IFrontDoorNameAvailabilityOperations
/// </summary>
Expand Down Expand Up @@ -107,6 +98,14 @@ public partial class FrontDoor : Microsoft.Rest.ServiceClient<FrontDoor>, IFront
/// </summary>
public virtual IReportsOperations Reports { get; private set; }
/// <summary>
/// Gets the IPoliciesOperations
/// </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 FrontDoor class.
/// </summary>
/// <param name='httpClient'>
Expand Down Expand Up @@ -310,6 +309,9 @@ public FrontDoor(System.Uri baseUri, Microsoft.Rest.ServiceClientCredentials cre
/// <param name='rootHandler'>
/// Optional. The http client handler used to handle http transport.
/// </param>
/// <param name='handlers'>
/// Optional. The delegating handlers to add to the http client pipeline.
/// </param>
/// <exception cref="System.ArgumentNullException">
/// Thrown when a required parameter is null
/// </exception>
Expand Down Expand Up @@ -341,8 +343,6 @@ public FrontDoor(System.Uri baseUri, Microsoft.Rest.ServiceClientCredentials cre
/// </summary>
private void Initialize()
{
this.Policies = new PoliciesOperations(this);
this.ManagedRuleSets = new ManagedRuleSetsOperations(this);
this.FrontDoorNameAvailability = new FrontDoorNameAvailabilityOperations(this);
this.FrontDoorNameAvailabilityWithSubscription = new FrontDoorNameAvailabilityWithSubscriptionOperations(this);
this.FrontDoors = new FrontDoorsOperations(this);
Expand All @@ -353,6 +353,8 @@ private void Initialize()
this.PreconfiguredEndpoints = new PreconfiguredEndpointsOperations(this);
this.Experiments = new ExperimentsOperations(this);
this.Reports = new ReportsOperations(this);
this.Policies = new PoliciesOperations(this);
this.ManagedRuleSets = new ManagedRuleSetsOperations(this);
this.BaseUri = new System.Uri("https://management.azure.com");
this.AcceptLanguage = "en-US";
this.LongRunningOperationRetryTimeout = 30;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.2, generator: @autorest/[email protected].703)
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/[email protected].734)
// Changes may cause incorrect behavior and will be lost if the code is regenerated.

namespace Microsoft.Azure.Management.FrontDoor
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.2, generator: @autorest/[email protected].703)
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/[email protected].734)
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
namespace Microsoft.Azure.Management.FrontDoor
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.2, generator: @autorest/[email protected].703)
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/[email protected].734)
// Changes may cause incorrect behavior and will be lost if the code is regenerated.

namespace Microsoft.Azure.Management.FrontDoor
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.2, generator: @autorest/[email protected].703)
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/[email protected].734)
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
namespace Microsoft.Azure.Management.FrontDoor
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.2, generator: @autorest/[email protected].703)
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/[email protected].734)
// Changes may cause incorrect behavior and will be lost if the code is regenerated.

namespace Microsoft.Azure.Management.FrontDoor
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.2, generator: @autorest/[email protected].703)
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/[email protected].734)
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
namespace Microsoft.Azure.Management.FrontDoor
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.2, generator: @autorest/[email protected].703)
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/[email protected].734)
// Changes may cause incorrect behavior and will be lost if the code is regenerated.

namespace Microsoft.Azure.Management.FrontDoor
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.2, generator: @autorest/[email protected].703)
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/[email protected].734)
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
namespace Microsoft.Azure.Management.FrontDoor
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.2, generator: @autorest/[email protected].703)
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/[email protected].734)
// Changes may cause incorrect behavior and will be lost if the code is regenerated.

namespace Microsoft.Azure.Management.FrontDoor
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.2, generator: @autorest/[email protected].703)
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/[email protected].734)
// Changes may cause incorrect behavior and will be lost if the code is regenerated.

namespace Microsoft.Azure.Management.FrontDoor
Expand Down
29 changes: 14 additions & 15 deletions src/FrontDoor/FrontDoor.Management.Sdk/Generated/IFrontDoor.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.2, generator: @autorest/[email protected].703)
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/[email protected].734)
// Changes may cause incorrect behavior and will be lost if the code is regenerated.

namespace Microsoft.Azure.Management.FrontDoor
Expand All @@ -8,10 +8,9 @@ namespace Microsoft.Azure.Management.FrontDoor
using Models;

/// <summary>
/// The Microsoft Azure Network management API provides a RESTful set of web
/// services that interact with Microsoft Azure Networks service to manage your
/// network resources. The API has entities that capture the relationship
/// between an end user and the Microsoft Azure Networks service.
/// Use these APIs to manage Azure Front Door resources through the Azure
/// Resource Manager. You must make sure that requests made to these resources
/// are secure.
/// </summary>
public partial interface IFrontDoor : System.IDisposable
{
Expand Down Expand Up @@ -65,16 +64,6 @@ public partial interface IFrontDoor : System.IDisposable
bool? GenerateClientRequestId { get; set;}


/// <summary>
/// Gets the IPoliciesOperations
/// </summary>
IPoliciesOperations Policies { get; }

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

/// <summary>
/// Gets the IFrontDoorNameAvailabilityOperations
/// </summary>
Expand Down Expand Up @@ -125,5 +114,15 @@ public partial interface IFrontDoor : System.IDisposable
/// </summary>
IReportsOperations Reports { get; }

/// <summary>
/// Gets the IPoliciesOperations
/// </summary>
IPoliciesOperations Policies { get; }

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

}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.2, generator: @autorest/[email protected].703)
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/[email protected].734)
// Changes may cause incorrect behavior and will be lost if the code is regenerated.

namespace Microsoft.Azure.Management.FrontDoor
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.2, generator: @autorest/[email protected].703)
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/[email protected].734)
// Changes may cause incorrect behavior and will be lost if the code is regenerated.

namespace Microsoft.Azure.Management.FrontDoor
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.2, generator: @autorest/[email protected].703)
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/[email protected].734)
// Changes may cause incorrect behavior and will be lost if the code is regenerated.

namespace Microsoft.Azure.Management.FrontDoor
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.2, generator: @autorest/[email protected].703)
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/[email protected].734)
// Changes may cause incorrect behavior and will be lost if the code is regenerated.

namespace Microsoft.Azure.Management.FrontDoor
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.2, generator: @autorest/[email protected].703)
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/[email protected].734)
// Changes may cause incorrect behavior and will be lost if the code is regenerated.

namespace Microsoft.Azure.Management.FrontDoor
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.2, generator: @autorest/[email protected].703)
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/[email protected].734)
// Changes may cause incorrect behavior and will be lost if the code is regenerated.

namespace Microsoft.Azure.Management.FrontDoor
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.2, generator: @autorest/[email protected].703)
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/[email protected].734)
// Changes may cause incorrect behavior and will be lost if the code is regenerated.

namespace Microsoft.Azure.Management.FrontDoor
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.2, generator: @autorest/[email protected].703)
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/[email protected].734)
// Changes may cause incorrect behavior and will be lost if the code is regenerated.

namespace Microsoft.Azure.Management.FrontDoor
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.2, generator: @autorest/[email protected].703)
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/[email protected].734)
// Changes may cause incorrect behavior and will be lost if the code is regenerated.

namespace Microsoft.Azure.Management.FrontDoor
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.2, generator: @autorest/[email protected].703)
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/[email protected].734)
// Changes may cause incorrect behavior and will be lost if the code is regenerated.

namespace Microsoft.Azure.Management.FrontDoor
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.2, generator: @autorest/[email protected].703)
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/[email protected].734)
// Changes may cause incorrect behavior and will be lost if the code is regenerated.

namespace Microsoft.Azure.Management.FrontDoor
Expand Down Expand Up @@ -71,7 +71,7 @@ internal ManagedRuleSetsOperations (FrontDoor client)
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}

string apiVersion = "2024-02-01";
string apiVersion = "2025-03-01";
// Tracing
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.2, generator: @autorest/[email protected].703)
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/[email protected].734)
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
namespace Microsoft.Azure.Management.FrontDoor
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.2, generator: @autorest/[email protected].703)
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/[email protected].734)
// Changes may cause incorrect behavior and will be lost if the code is regenerated.

namespace Microsoft.Azure.Management.FrontDoor.Models
Expand All @@ -17,5 +17,6 @@ public static class ActionType
public const string Redirect = "Redirect";
public const string AnomalyScoring = "AnomalyScoring";
public const string JSChallenge = "JSChallenge";
public const string Captcha = "CAPTCHA";
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.2, generator: @autorest/[email protected].703)
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/[email protected].734)
// Changes may cause incorrect behavior and will be lost if the code is regenerated.

namespace Microsoft.Azure.Management.FrontDoor.Models
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.2, generator: @autorest/[email protected].703)
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/[email protected].734)
// Changes may cause incorrect behavior and will be lost if the code is regenerated.

namespace Microsoft.Azure.Management.FrontDoor.Models
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.2, generator: @autorest/[email protected].703)
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/[email protected].734)
// Changes may cause incorrect behavior and will be lost if the code is regenerated.

namespace Microsoft.Azure.Management.FrontDoor.Models
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.2, generator: @autorest/[email protected].703)
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/[email protected].734)
// Changes may cause incorrect behavior and will be lost if the code is regenerated.

namespace Microsoft.Azure.Management.FrontDoor.Models
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.2, generator: @autorest/[email protected].703)
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/[email protected].734)
// Changes may cause incorrect behavior and will be lost if the code is regenerated.

namespace Microsoft.Azure.Management.FrontDoor.Models
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.2, generator: @autorest/[email protected].703)
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/[email protected].734)
// Changes may cause incorrect behavior and will be lost if the code is regenerated.

namespace Microsoft.Azure.Management.FrontDoor.Models
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.2, generator: @autorest/[email protected].703)
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/[email protected].734)
// Changes may cause incorrect behavior and will be lost if the code is regenerated.

namespace Microsoft.Azure.Management.FrontDoor.Models
Expand Down
Loading
Loading