From 4cf5ba027d2b7365849b559c11197a508203027d Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Mon, 12 May 2025 02:27:48 +0000 Subject: [PATCH] CodeGen from PR 34447 in Azure/azure-rest-api-specs Merge 7886ed738e7b5343e7642ea521432768520ff4f2 into 5802c95f18bfba1003be50e545d07f8bb679c857 --- .../Azure.ResourceManager.FrontDoor.net8.0.cs | 3 +++ ...esourceManager.FrontDoor.netstandard2.0.cs | 3 +++ .../Extensions/FrontDoorExtensions.cs | 12 +++++----- .../MockableFrontDoorResourceGroupResource.cs | 4 ++-- .../MockableFrontDoorSubscriptionResource.cs | 8 +++---- ...rWebApplicationFirewallPolicyCollection.cs | 20 ++++++++-------- ...oorWebApplicationFirewallPolicyResource.cs | 24 +++++++++---------- ...ionFirewallPolicySettings.Serialization.cs | 16 +++++++++++++ ...oorWebApplicationFirewallPolicySettings.cs | 10 +++++--- .../Generated/Models/RuleMatchActionType.cs | 3 +++ .../Models/WebApplicationRuleMatchOperator.cs | 3 +++ .../ManagedRuleSetsRestOperations.cs | 2 +- .../RestOperations/PoliciesRestOperations.cs | 2 +- .../src/autorest.md | 2 +- ...rWebApplicationFirewallPolicyCollection.cs | 18 ++++++++++---- ...oorWebApplicationFirewallPolicyResource.cs | 6 ++--- .../Sample_SubscriptionResourceExtensions.cs | 4 ++-- sdk/storage/ci.yml | 2 ++ 18 files changed, 92 insertions(+), 50 deletions(-) diff --git a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/api/Azure.ResourceManager.FrontDoor.net8.0.cs b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/api/Azure.ResourceManager.FrontDoor.net8.0.cs index 66389584328c..7b0ac6bba2e5 100644 --- a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/api/Azure.ResourceManager.FrontDoor.net8.0.cs +++ b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/api/Azure.ResourceManager.FrontDoor.net8.0.cs @@ -1283,6 +1283,7 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public partial class FrontDoorWebApplicationFirewallPolicySettings : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public FrontDoorWebApplicationFirewallPolicySettings() { } + public int? CaptchaExpirationInMinutes { get { throw null; } set { } } public string CustomBlockResponseBody { get { throw null; } set { } } public int? CustomBlockResponseStatusCode { get { throw null; } set { } } public Azure.ResourceManager.FrontDoor.Models.PolicyEnabledState? EnabledState { get { throw null; } set { } } @@ -1759,6 +1760,7 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write public static Azure.ResourceManager.FrontDoor.Models.RuleMatchActionType Allow { get { throw null; } } public static Azure.ResourceManager.FrontDoor.Models.RuleMatchActionType AnomalyScoring { get { throw null; } } public static Azure.ResourceManager.FrontDoor.Models.RuleMatchActionType Block { get { throw null; } } + public static Azure.ResourceManager.FrontDoor.Models.RuleMatchActionType Captcha { get { throw null; } } public static Azure.ResourceManager.FrontDoor.Models.RuleMatchActionType JSChallenge { get { throw null; } } public static Azure.ResourceManager.FrontDoor.Models.RuleMatchActionType Log { get { throw null; } } public static Azure.ResourceManager.FrontDoor.Models.RuleMatchActionType Redirect { get { throw null; } } @@ -2087,6 +2089,7 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public static Azure.ResourceManager.FrontDoor.Models.WebApplicationRuleMatchOperator LessThan { get { throw null; } } public static Azure.ResourceManager.FrontDoor.Models.WebApplicationRuleMatchOperator LessThanOrEqual { get { throw null; } } public static Azure.ResourceManager.FrontDoor.Models.WebApplicationRuleMatchOperator RegEX { get { throw null; } } + public static Azure.ResourceManager.FrontDoor.Models.WebApplicationRuleMatchOperator ServiceTagMatch { get { throw null; } } public bool Equals(Azure.ResourceManager.FrontDoor.Models.WebApplicationRuleMatchOperator other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } diff --git a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/api/Azure.ResourceManager.FrontDoor.netstandard2.0.cs b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/api/Azure.ResourceManager.FrontDoor.netstandard2.0.cs index 66389584328c..7b0ac6bba2e5 100644 --- a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/api/Azure.ResourceManager.FrontDoor.netstandard2.0.cs +++ b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/api/Azure.ResourceManager.FrontDoor.netstandard2.0.cs @@ -1283,6 +1283,7 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public partial class FrontDoorWebApplicationFirewallPolicySettings : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public FrontDoorWebApplicationFirewallPolicySettings() { } + public int? CaptchaExpirationInMinutes { get { throw null; } set { } } public string CustomBlockResponseBody { get { throw null; } set { } } public int? CustomBlockResponseStatusCode { get { throw null; } set { } } public Azure.ResourceManager.FrontDoor.Models.PolicyEnabledState? EnabledState { get { throw null; } set { } } @@ -1759,6 +1760,7 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write public static Azure.ResourceManager.FrontDoor.Models.RuleMatchActionType Allow { get { throw null; } } public static Azure.ResourceManager.FrontDoor.Models.RuleMatchActionType AnomalyScoring { get { throw null; } } public static Azure.ResourceManager.FrontDoor.Models.RuleMatchActionType Block { get { throw null; } } + public static Azure.ResourceManager.FrontDoor.Models.RuleMatchActionType Captcha { get { throw null; } } public static Azure.ResourceManager.FrontDoor.Models.RuleMatchActionType JSChallenge { get { throw null; } } public static Azure.ResourceManager.FrontDoor.Models.RuleMatchActionType Log { get { throw null; } } public static Azure.ResourceManager.FrontDoor.Models.RuleMatchActionType Redirect { get { throw null; } } @@ -2087,6 +2089,7 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public static Azure.ResourceManager.FrontDoor.Models.WebApplicationRuleMatchOperator LessThan { get { throw null; } } public static Azure.ResourceManager.FrontDoor.Models.WebApplicationRuleMatchOperator LessThanOrEqual { get { throw null; } } public static Azure.ResourceManager.FrontDoor.Models.WebApplicationRuleMatchOperator RegEX { get { throw null; } } + public static Azure.ResourceManager.FrontDoor.Models.WebApplicationRuleMatchOperator ServiceTagMatch { get { throw null; } } public bool Equals(Azure.ResourceManager.FrontDoor.Models.WebApplicationRuleMatchOperator other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } diff --git a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Extensions/FrontDoorExtensions.cs b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Extensions/FrontDoorExtensions.cs index 4c098990e460..0109fb660df2 100644 --- a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Extensions/FrontDoorExtensions.cs +++ b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Extensions/FrontDoorExtensions.cs @@ -182,7 +182,7 @@ public static FrontDoorWebApplicationFirewallPolicyCollection GetFrontDoorWebApp /// /// /// Default Api Version - /// 2024-02-01 + /// 2025-05-01 /// /// /// Resource @@ -220,7 +220,7 @@ public static async Task /// /// /// Default Api Version - /// 2024-02-01 + /// 2025-05-01 /// /// /// Resource @@ -444,7 +444,7 @@ public static Response GetFrontDoorNe /// /// /// Default Api Version - /// 2024-02-01 + /// 2025-05-01 /// /// /// Resource @@ -480,7 +480,7 @@ public static AsyncPageable GetFr /// /// /// Default Api Version - /// 2024-02-01 + /// 2025-05-01 /// /// /// Resource @@ -516,7 +516,7 @@ public static Pageable GetFrontDo /// /// /// Default Api Version - /// 2024-02-01 + /// 2025-05-01 /// /// /// @@ -548,7 +548,7 @@ public static AsyncPageable GetManagedRuleSetsAsync(th /// /// /// Default Api Version - /// 2024-02-01 + /// 2025-05-01 /// /// /// diff --git a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Extensions/MockableFrontDoorResourceGroupResource.cs b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Extensions/MockableFrontDoorResourceGroupResource.cs index afbaccb86d67..fdec08d50d45 100644 --- a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Extensions/MockableFrontDoorResourceGroupResource.cs +++ b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Extensions/MockableFrontDoorResourceGroupResource.cs @@ -53,7 +53,7 @@ public virtual FrontDoorWebApplicationFirewallPolicyCollection GetFrontDoorWebAp /// /// /// Default Api Version - /// 2024-02-01 + /// 2025-05-01 /// /// /// Resource @@ -84,7 +84,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-02-01 + /// 2025-05-01 /// /// /// Resource diff --git a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Extensions/MockableFrontDoorSubscriptionResource.cs b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Extensions/MockableFrontDoorSubscriptionResource.cs index f0e084f70b17..449ef1c54d4b 100644 --- a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Extensions/MockableFrontDoorSubscriptionResource.cs +++ b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Extensions/MockableFrontDoorSubscriptionResource.cs @@ -71,7 +71,7 @@ private string GetApiVersionOrNull(ResourceType resourceType) /// /// /// Default Api Version - /// 2024-02-01 + /// 2025-05-01 /// /// /// Resource @@ -101,7 +101,7 @@ public virtual AsyncPageable GetF /// /// /// Default Api Version - /// 2024-02-01 + /// 2025-05-01 /// /// /// Resource @@ -131,7 +131,7 @@ public virtual Pageable GetFrontD /// /// /// Default Api Version - /// 2024-02-01 + /// 2025-05-01 /// /// /// @@ -157,7 +157,7 @@ public virtual AsyncPageable GetManagedRuleSetsAsync(C /// /// /// Default Api Version - /// 2024-02-01 + /// 2025-05-01 /// /// /// diff --git a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/FrontDoorWebApplicationFirewallPolicyCollection.cs b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/FrontDoorWebApplicationFirewallPolicyCollection.cs index c6576151adc5..adbabb56f8bb 100644 --- a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/FrontDoorWebApplicationFirewallPolicyCollection.cs +++ b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/FrontDoorWebApplicationFirewallPolicyCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-02-01 + /// 2025-05-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-02-01 + /// 2025-05-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation Creat /// /// /// Default Api Version - /// 2024-02-01 + /// 2025-05-01 /// /// /// Resource @@ -208,7 +208,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-02-01 + /// 2025-05-01 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual Response Get(strin /// /// /// Default Api Version - /// 2024-02-01 + /// 2025-05-01 /// /// /// Resource @@ -283,7 +283,7 @@ public virtual AsyncPageable GetA /// /// /// Default Api Version - /// 2024-02-01 + /// 2025-05-01 /// /// /// Resource @@ -313,7 +313,7 @@ public virtual Pageable GetAll(Ca /// /// /// Default Api Version - /// 2024-02-01 + /// 2025-05-01 /// /// /// Resource @@ -356,7 +356,7 @@ public virtual async Task> ExistsAsync(string policyName, Cancell /// /// /// Default Api Version - /// 2024-02-01 + /// 2025-05-01 /// /// /// Resource @@ -399,7 +399,7 @@ public virtual Response Exists(string policyName, CancellationToken cancel /// /// /// Default Api Version - /// 2024-02-01 + /// 2025-05-01 /// /// /// Resource @@ -444,7 +444,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-02-01 + /// 2025-05-01 /// /// /// Resource diff --git a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/FrontDoorWebApplicationFirewallPolicyResource.cs b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/FrontDoorWebApplicationFirewallPolicyResource.cs index df381e13d134..0418448407ea 100644 --- a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/FrontDoorWebApplicationFirewallPolicyResource.cs +++ b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/FrontDoorWebApplicationFirewallPolicyResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-02-01 + /// 2025-05-01 /// /// /// Resource @@ -143,7 +143,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-02-01 + /// 2025-05-01 /// /// /// Resource @@ -183,7 +183,7 @@ public virtual Response Get(Cance /// /// /// Default Api Version - /// 2024-02-01 + /// 2025-05-01 /// /// /// Resource @@ -225,7 +225,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-02-01 + /// 2025-05-01 /// /// /// Resource @@ -267,7 +267,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-02-01 + /// 2025-05-01 /// /// /// Resource @@ -313,7 +313,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-02-01 + /// 2025-05-01 /// /// /// Resource @@ -359,7 +359,7 @@ public virtual ArmOperation Updat /// /// /// Default Api Version - /// 2024-02-01 + /// 2025-05-01 /// /// /// Resource @@ -421,7 +421,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-02-01 + /// 2025-05-01 /// /// /// Resource @@ -483,7 +483,7 @@ public virtual Response AddTag(st /// /// /// Default Api Version - /// 2024-02-01 + /// 2025-05-01 /// /// /// Resource @@ -540,7 +540,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-02-01 + /// 2025-05-01 /// /// /// Resource @@ -597,7 +597,7 @@ public virtual Response SetTags(I /// /// /// Default Api Version - /// 2024-02-01 + /// 2025-05-01 /// /// /// Resource @@ -657,7 +657,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-02-01 + /// 2025-05-01 /// /// /// Resource diff --git a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/FrontDoorWebApplicationFirewallPolicySettings.Serialization.cs b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/FrontDoorWebApplicationFirewallPolicySettings.Serialization.cs index de917a630dd4..3f6d4d1f81b7 100644 --- a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/FrontDoorWebApplicationFirewallPolicySettings.Serialization.cs +++ b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/FrontDoorWebApplicationFirewallPolicySettings.Serialization.cs @@ -69,6 +69,11 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("javascriptChallengeExpirationInMinutes"u8); writer.WriteNumberValue(JavascriptChallengeExpirationInMinutes.Value); } + if (Optional.IsDefined(CaptchaExpirationInMinutes)) + { + writer.WritePropertyName("captchaExpirationInMinutes"u8); + writer.WriteNumberValue(CaptchaExpirationInMinutes.Value); + } writer.WritePropertyName("logScrubbing"u8); writer.WriteStartObject(); if (Optional.IsDefined(State)) @@ -131,6 +136,7 @@ internal static FrontDoorWebApplicationFirewallPolicySettings DeserializeFrontDo string customBlockResponseBody = default; PolicyRequestBodyCheck? requestBodyCheck = default; int? javascriptChallengeExpirationInMinutes = default; + int? captchaExpirationInMinutes = default; WebApplicationFirewallScrubbingState? state = default; IList scrubbingRules = default; IDictionary serializedAdditionalRawData = default; @@ -196,6 +202,15 @@ internal static FrontDoorWebApplicationFirewallPolicySettings DeserializeFrontDo javascriptChallengeExpirationInMinutes = property.Value.GetInt32(); continue; } + if (property.NameEquals("captchaExpirationInMinutes"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + captchaExpirationInMinutes = property.Value.GetInt32(); + continue; + } if (property.NameEquals("logScrubbing"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -245,6 +260,7 @@ internal static FrontDoorWebApplicationFirewallPolicySettings DeserializeFrontDo customBlockResponseBody, requestBodyCheck, javascriptChallengeExpirationInMinutes, + captchaExpirationInMinutes, state, scrubbingRules ?? new ChangeTrackingList(), serializedAdditionalRawData); diff --git a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/FrontDoorWebApplicationFirewallPolicySettings.cs b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/FrontDoorWebApplicationFirewallPolicySettings.cs index d8ca2927551c..d884ffb74a1f 100644 --- a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/FrontDoorWebApplicationFirewallPolicySettings.cs +++ b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/FrontDoorWebApplicationFirewallPolicySettings.cs @@ -58,11 +58,12 @@ public FrontDoorWebApplicationFirewallPolicySettings() /// If the action type is block, customer can override the response status code. /// If the action type is block, customer can override the response body. The body must be specified in base64 encoding. /// Describes if policy managed rules will inspect the request body content. - /// Defines the JavaScript challenge cookie validity lifetime in minutes. Value must be an integer between 5 and 1440 with the default value being 30. + /// Defines the JavaScript challenge cookie validity lifetime in minutes. This setting is only applicable to Premium_AzureFrontDoor. Value must be an integer between 5 and 1440 with the default value being 30. + /// Defines the Captcha cookie validity lifetime in minutes. This setting is only applicable to Premium_AzureFrontDoor. Value must be an integer between 5 and 1440 with the default value being 30. /// State of the log scrubbing config. Default value is Enabled. /// List of log scrubbing rules applied to the Web Application Firewall logs. /// Keeps track of any properties unknown to the library. - internal FrontDoorWebApplicationFirewallPolicySettings(PolicyEnabledState? enabledState, FrontDoorWebApplicationFirewallPolicyMode? mode, Uri redirectUri, int? customBlockResponseStatusCode, string customBlockResponseBody, PolicyRequestBodyCheck? requestBodyCheck, int? javascriptChallengeExpirationInMinutes, WebApplicationFirewallScrubbingState? state, IList scrubbingRules, IDictionary serializedAdditionalRawData) + internal FrontDoorWebApplicationFirewallPolicySettings(PolicyEnabledState? enabledState, FrontDoorWebApplicationFirewallPolicyMode? mode, Uri redirectUri, int? customBlockResponseStatusCode, string customBlockResponseBody, PolicyRequestBodyCheck? requestBodyCheck, int? javascriptChallengeExpirationInMinutes, int? captchaExpirationInMinutes, WebApplicationFirewallScrubbingState? state, IList scrubbingRules, IDictionary serializedAdditionalRawData) { EnabledState = enabledState; Mode = mode; @@ -71,6 +72,7 @@ internal FrontDoorWebApplicationFirewallPolicySettings(PolicyEnabledState? enabl CustomBlockResponseBody = customBlockResponseBody; RequestBodyCheck = requestBodyCheck; JavascriptChallengeExpirationInMinutes = javascriptChallengeExpirationInMinutes; + CaptchaExpirationInMinutes = captchaExpirationInMinutes; State = state; ScrubbingRules = scrubbingRules; _serializedAdditionalRawData = serializedAdditionalRawData; @@ -88,8 +90,10 @@ internal FrontDoorWebApplicationFirewallPolicySettings(PolicyEnabledState? enabl public string CustomBlockResponseBody { get; set; } /// Describes if policy managed rules will inspect the request body content. public PolicyRequestBodyCheck? RequestBodyCheck { get; set; } - /// Defines the JavaScript challenge cookie validity lifetime in minutes. Value must be an integer between 5 and 1440 with the default value being 30. + /// Defines the JavaScript challenge cookie validity lifetime in minutes. This setting is only applicable to Premium_AzureFrontDoor. Value must be an integer between 5 and 1440 with the default value being 30. public int? JavascriptChallengeExpirationInMinutes { get; set; } + /// Defines the Captcha cookie validity lifetime in minutes. This setting is only applicable to Premium_AzureFrontDoor. Value must be an integer between 5 and 1440 with the default value being 30. + public int? CaptchaExpirationInMinutes { get; set; } /// State of the log scrubbing config. Default value is Enabled. public WebApplicationFirewallScrubbingState? State { get; set; } /// List of log scrubbing rules applied to the Web Application Firewall logs. diff --git a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/RuleMatchActionType.cs b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/RuleMatchActionType.cs index 9769c72095b8..1c5095e54fd2 100644 --- a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/RuleMatchActionType.cs +++ b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/RuleMatchActionType.cs @@ -28,6 +28,7 @@ public RuleMatchActionType(string value) private const string RedirectValue = "Redirect"; private const string AnomalyScoringValue = "AnomalyScoring"; private const string JSChallengeValue = "JSChallenge"; + private const string CaptchaValue = "CAPTCHA"; /// Allow. public static RuleMatchActionType Allow { get; } = new RuleMatchActionType(AllowValue); @@ -41,6 +42,8 @@ public RuleMatchActionType(string value) public static RuleMatchActionType AnomalyScoring { get; } = new RuleMatchActionType(AnomalyScoringValue); /// JSChallenge. public static RuleMatchActionType JSChallenge { get; } = new RuleMatchActionType(JSChallengeValue); + /// CAPTCHA. + public static RuleMatchActionType Captcha { get; } = new RuleMatchActionType(CaptchaValue); /// Determines if two values are the same. public static bool operator ==(RuleMatchActionType left, RuleMatchActionType right) => left.Equals(right); /// Determines if two values are not the same. diff --git a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/WebApplicationRuleMatchOperator.cs b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/WebApplicationRuleMatchOperator.cs index 499907d51b15..c21b673f6ba0 100644 --- a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/WebApplicationRuleMatchOperator.cs +++ b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/Models/WebApplicationRuleMatchOperator.cs @@ -34,6 +34,7 @@ public WebApplicationRuleMatchOperator(string value) private const string BeginsWithValue = "BeginsWith"; private const string EndsWithValue = "EndsWith"; private const string RegEXValue = "RegEx"; + private const string ServiceTagMatchValue = "ServiceTagMatch"; /// Any. public static WebApplicationRuleMatchOperator Any { get; } = new WebApplicationRuleMatchOperator(AnyValue); @@ -59,6 +60,8 @@ public WebApplicationRuleMatchOperator(string value) public static WebApplicationRuleMatchOperator EndsWith { get; } = new WebApplicationRuleMatchOperator(EndsWithValue); /// RegEx. public static WebApplicationRuleMatchOperator RegEX { get; } = new WebApplicationRuleMatchOperator(RegEXValue); + /// ServiceTagMatch. + public static WebApplicationRuleMatchOperator ServiceTagMatch { get; } = new WebApplicationRuleMatchOperator(ServiceTagMatchValue); /// Determines if two values are the same. public static bool operator ==(WebApplicationRuleMatchOperator left, WebApplicationRuleMatchOperator right) => left.Equals(right); /// Determines if two values are not the same. diff --git a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/RestOperations/ManagedRuleSetsRestOperations.cs b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/RestOperations/ManagedRuleSetsRestOperations.cs index 77bf17549cc3..d6857b773c26 100644 --- a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/RestOperations/ManagedRuleSetsRestOperations.cs +++ b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/RestOperations/ManagedRuleSetsRestOperations.cs @@ -32,7 +32,7 @@ public ManagedRuleSetsRestOperations(HttpPipeline pipeline, string applicationId { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-02-01"; + _apiVersion = apiVersion ?? "2025-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/RestOperations/PoliciesRestOperations.cs b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/RestOperations/PoliciesRestOperations.cs index 1b0c02ba0c70..36465cc96313 100644 --- a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/RestOperations/PoliciesRestOperations.cs +++ b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/Generated/RestOperations/PoliciesRestOperations.cs @@ -32,7 +32,7 @@ public PoliciesRestOperations(HttpPipeline pipeline, string applicationId, Uri e { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-02-01"; + _apiVersion = apiVersion ?? "2025-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/autorest.md b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/autorest.md index a37f2eabbc35..e898d6f504c6 100644 --- a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/autorest.md +++ b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/src/autorest.md @@ -7,7 +7,7 @@ azure-arm: true csharp: true library-name: FrontDoor namespace: Azure.ResourceManager.FrontDoor -require: https://github.com/Azure/azure-rest-api-specs/blob/2d973fccf9f28681a481e9760fa12b2334216e21/specification/frontdoor/resource-manager/readme.md +require: /mnt/vss/_work/1/s/azure-rest-api-specs/specification/frontdoor/resource-manager/readme.md output-folder: $(this-folder)/Generated clear-output-folder: true sample-gen: diff --git a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/tests/Generated/Samples/Sample_FrontDoorWebApplicationFirewallPolicyCollection.cs b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/tests/Generated/Samples/Sample_FrontDoorWebApplicationFirewallPolicyCollection.cs index c064ec6559e5..61a0ba70680c 100644 --- a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/tests/Generated/Samples/Sample_FrontDoorWebApplicationFirewallPolicyCollection.cs +++ b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/tests/Generated/Samples/Sample_FrontDoorWebApplicationFirewallPolicyCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_FrontDoorWebApplicationFirewallPolicyCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreatesSpecificPolicy() { - // Generated from example definition: specification/frontdoor/resource-manager/Microsoft.Network/stable/2024-02-01/examples/WafPolicyCreateOrUpdate.json + // Generated from example definition: specification/frontdoor/resource-manager/Microsoft.Network/stable/2025-05-01/examples/WafPolicyCreateOrUpdate.json // this example is just showing the usage of "Policies_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -53,6 +53,7 @@ public async Task CreateOrUpdate_CreatesSpecificPolicy() CustomBlockResponseBody = "PGh0bWw+CjxoZWFkZXI+PHRpdGxlPkhlbGxvPC90aXRsZT48L2hlYWRlcj4KPGJvZHk+CkhlbGxvIHdvcmxkCjwvYm9keT4KPC9odG1sPg==", RequestBodyCheck = PolicyRequestBodyCheck.Disabled, JavascriptChallengeExpirationInMinutes = 30, + CaptchaExpirationInMinutes = 30, State = WebApplicationFirewallScrubbingState.Enabled, ScrubbingRules = {new WebApplicationFirewallScrubbingRules(ScrubbingRuleEntryMatchVariable.RequestIPAddress, ScrubbingRuleEntryMatchOperator.EqualsAny) { @@ -78,6 +79,13 @@ public async Task CreateOrUpdate_CreatesSpecificPolicy() }, RuleMatchActionType.Block) { Name = "Rule2", +}, new WebApplicationCustomRule(1, WebApplicationRuleType.RateLimitRule, new WebApplicationRuleMatchCondition[] +{ +new WebApplicationRuleMatchCondition(WebApplicationRuleMatchVariable.RemoteAddr, WebApplicationRuleMatchOperator.ServiceTagMatch, new string[]{"AzureBackup", "AzureBotService"}) +}, RuleMatchActionType.Captcha) +{ +Name = "Rule3", +RateLimitThreshold = 1000, }}, ManagedRuleSets = {new ManagedRuleSet("DefaultRuleSet", "1.0") { @@ -112,7 +120,7 @@ public async Task CreateOrUpdate_CreatesSpecificPolicy() [Ignore("Only validating compilation of examples")] public async Task Get_GetPolicy() { - // Generated from example definition: specification/frontdoor/resource-manager/Microsoft.Network/stable/2024-02-01/examples/WafPolicyGet.json + // Generated from example definition: specification/frontdoor/resource-manager/Microsoft.Network/stable/2025-05-01/examples/WafPolicyGet.json // this example is just showing the usage of "Policies_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -145,7 +153,7 @@ public async Task Get_GetPolicy() [Ignore("Only validating compilation of examples")] public async Task GetAll_GetAllPoliciesInAResourceGroup() { - // Generated from example definition: specification/frontdoor/resource-manager/Microsoft.Network/stable/2024-02-01/examples/WafListPolicies.json + // Generated from example definition: specification/frontdoor/resource-manager/Microsoft.Network/stable/2025-05-01/examples/WafListPolicies.json // this example is just showing the usage of "Policies_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -180,7 +188,7 @@ public async Task GetAll_GetAllPoliciesInAResourceGroup() [Ignore("Only validating compilation of examples")] public async Task Exists_GetPolicy() { - // Generated from example definition: specification/frontdoor/resource-manager/Microsoft.Network/stable/2024-02-01/examples/WafPolicyGet.json + // Generated from example definition: specification/frontdoor/resource-manager/Microsoft.Network/stable/2025-05-01/examples/WafPolicyGet.json // this example is just showing the usage of "Policies_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -209,7 +217,7 @@ public async Task Exists_GetPolicy() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetPolicy() { - // Generated from example definition: specification/frontdoor/resource-manager/Microsoft.Network/stable/2024-02-01/examples/WafPolicyGet.json + // Generated from example definition: specification/frontdoor/resource-manager/Microsoft.Network/stable/2025-05-01/examples/WafPolicyGet.json // this example is just showing the usage of "Policies_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/tests/Generated/Samples/Sample_FrontDoorWebApplicationFirewallPolicyResource.cs b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/tests/Generated/Samples/Sample_FrontDoorWebApplicationFirewallPolicyResource.cs index 966b0bcf1912..67724c2f47e9 100644 --- a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/tests/Generated/Samples/Sample_FrontDoorWebApplicationFirewallPolicyResource.cs +++ b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/tests/Generated/Samples/Sample_FrontDoorWebApplicationFirewallPolicyResource.cs @@ -20,7 +20,7 @@ public partial class Sample_FrontDoorWebApplicationFirewallPolicyResource [Ignore("Only validating compilation of examples")] public async Task Get_GetPolicy() { - // Generated from example definition: specification/frontdoor/resource-manager/Microsoft.Network/stable/2024-02-01/examples/WafPolicyGet.json + // Generated from example definition: specification/frontdoor/resource-manager/Microsoft.Network/stable/2025-05-01/examples/WafPolicyGet.json // this example is just showing the usage of "Policies_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -50,7 +50,7 @@ public async Task Get_GetPolicy() [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteProtectionPolicy() { - // Generated from example definition: specification/frontdoor/resource-manager/Microsoft.Network/stable/2024-02-01/examples/WafPolicyDelete.json + // Generated from example definition: specification/frontdoor/resource-manager/Microsoft.Network/stable/2025-05-01/examples/WafPolicyDelete.json // this example is just showing the usage of "Policies_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -76,7 +76,7 @@ public async Task Delete_DeleteProtectionPolicy() [Ignore("Only validating compilation of examples")] public async Task Update_PatchesSpecificPolicy() { - // Generated from example definition: specification/frontdoor/resource-manager/Microsoft.Network/stable/2024-02-01/examples/WafPolicyPatch.json + // Generated from example definition: specification/frontdoor/resource-manager/Microsoft.Network/stable/2025-05-01/examples/WafPolicyPatch.json // this example is just showing the usage of "Policies_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/tests/Generated/Samples/Sample_SubscriptionResourceExtensions.cs b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/tests/Generated/Samples/Sample_SubscriptionResourceExtensions.cs index 685931fce4f0..20ad173f1350 100644 --- a/sdk/frontdoor/Azure.ResourceManager.FrontDoor/tests/Generated/Samples/Sample_SubscriptionResourceExtensions.cs +++ b/sdk/frontdoor/Azure.ResourceManager.FrontDoor/tests/Generated/Samples/Sample_SubscriptionResourceExtensions.cs @@ -21,7 +21,7 @@ public partial class Sample_SubscriptionResourceExtensions [Ignore("Only validating compilation of examples")] public async Task GetFrontDoorWebApplicationFirewallPoliciesByFrontDoorWebApplicationFirewallPolicy_GetAllPoliciesInAResourceGroup() { - // Generated from example definition: specification/frontdoor/resource-manager/Microsoft.Network/stable/2024-02-01/examples/WafListPoliciesUnderSubscription.json + // Generated from example definition: specification/frontdoor/resource-manager/Microsoft.Network/stable/2025-05-01/examples/WafListPoliciesUnderSubscription.json // this example is just showing the usage of "Policies_ListBySubscription" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -52,7 +52,7 @@ public async Task GetFrontDoorWebApplicationFirewallPoliciesByFrontDoorWebApplic [Ignore("Only validating compilation of examples")] public async Task GetManagedRuleSets_ListPoliciesManagedRuleSetsInAResourceGroup() { - // Generated from example definition: specification/frontdoor/resource-manager/Microsoft.Network/stable/2024-02-01/examples/WafListManagedRuleSets.json + // Generated from example definition: specification/frontdoor/resource-manager/Microsoft.Network/stable/2025-05-01/examples/WafListManagedRuleSets.json // this example is just showing the usage of "ManagedRuleSets_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/storage/ci.yml b/sdk/storage/ci.yml index 2ca0501b60bd..4e749e6b85b1 100644 --- a/sdk/storage/ci.yml +++ b/sdk/storage/ci.yml @@ -12,6 +12,8 @@ trigger: - sdk/storage/Azure.Storage.DataMovement/ - sdk/storage/Azure.Storage.DataMovement.Blobs/ - sdk/storage/Azure.Storage.DataMovement.Files/ + exclude: + - sdk/storage/Azure.ResourceManager.Storage/ - sdk/storage/Azure.Storage.DataMovement.Blobs.Files.Shares/ exclude: - sdk/storage/Azure.ResourceManager.Storage/